twitch_api2 0.6.0-rc.1

Library for talking with the new Twitch API aka. "Helix", TMI and more!
Documentation

Twitch API2 | Rust library for talking with the new Twitch API aka. "Helix", TMI and more!

githubcrates-iodocs-rs-big

See documentation for more info.

You can see current unpublished docs here: local-docs

See examples for examples.

use twitch_api2::helix::HelixClient;
use twitch_oauth2::{AccessToken, UserToken, client::reqwest_http_client};

#[tokio::main]
async fn main() -> Result<(), Box<dyn std::error::Error + Send + Sync + 'static>> {
    let token = UserToken::from_existing(
        reqwest_http_client,
        AccessToken::new("mytoken".to_string()),
        None, // Refresh Token
        None, // Client Secret
    )
    .await?;
    let client: HelixClient<reqwest::Client> =  HelixClient::default();

    println!("Channel: {:?}",
            client.get_channel_from_login("twitchdev", &token).await?
    );

    Ok(())
}

Goals

This crate aims to target

This crate should also be able to be used for

There are no current plans to support