Skip to content

Commit ab5b962

Browse files
committed
add client secret to readme and helix documentation
1 parent e541ec6 commit ab5b962

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

README.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,8 @@ async fn main() -> Result<(), Box<dyn std::error::Error + Send + Sync + 'static>
2525
let token = UserToken::from_existing(
2626
reqwest_http_client,
2727
AccessToken::new("mytoken".to_string()),
28-
None,
28+
None, // Client ID
29+
None, // Client Secret
2930
)
3031
.await?;
3132
let client: TwitchClient<reqwest::Client> = TwitchClient::default();

src/helix/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -122,7 +122,7 @@ impl<'a, C: crate::HttpClient<'a>> HelixClient<'a, C> {
122122
/// # use twitch_api2::helix::{HelixClient, channels};
123123
/// # let token = Box::new(twitch_oauth2::UserToken::from_existing_unchecked(
124124
/// # twitch_oauth2::AccessToken::new("totallyvalidtoken".to_string()), None,
125-
/// # twitch_oauth2::ClientId::new("validclientid".to_string()), None, None));
125+
/// # twitch_oauth2::ClientId::new("validclientid".to_string()), None, None, None));
126126
/// let req = channels::GetChannelInformationRequest::builder().broadcaster_id("123456").build();
127127
/// let client = HelixClient::new();
128128
/// # let _: &HelixClient<twitch_api2::DummyHttpClient> = &client;

0 commit comments

Comments
 (0)