![github] ![crates-io] ![docs-rs-big]
See documentation for more info.
You can see current unpublished docs here: ![local-docs]
See examples for examples.
```rust ,norun use twitchapi::helix::HelixClient; use twitch_oauth2::{AccessToken, UserToken}; use reqwest::Client as ReqwestClient;
async fn main() -> Result<(), Box
let token = UserToken::from_existing(
&client,
AccessToken::new("mytoken".to_string()),
None, // Refresh Token
None, // Client Secret
)
.await?;
println!("Channel: {:?}",
client.get_channel_from_login("twitchdev", &token).await?
);
Ok(())
} ```
This crate was previously available as twitch_api2
and has since been renamed to twitch_api
This crate aims to target
Get Chatters
replacing the remaining functionalityThis crate should also be able to be used for
There are no current plans to support
Licensed under either of Apache License, Version 2.0 or MIT license at your option.
Unless you explicitly state otherwise, any contribution intentionally submitted for inclusion in this crate by you, as defined in the Apache-2.0 license, shall be dual licensed as above, without any additional terms or conditions.