16 releases

new 0.1.5 Jan 22, 2025
0.1.4 Jan 21, 2025
0.0.10 Jan 2, 2025
0.0.9 Dec 24, 2024
0.0.2 Mar 2, 2024

#542 in Web programming

Download history 1/week @ 2024-10-04 164/week @ 2024-10-11 5/week @ 2024-10-18 108/week @ 2024-11-08 20/week @ 2024-11-15 3/week @ 2024-11-22 9/week @ 2024-11-29 10/week @ 2024-12-06 1/week @ 2024-12-13 560/week @ 2024-12-20 131/week @ 2024-12-27 89/week @ 2025-01-03 7/week @ 2025-01-10 447/week @ 2025-01-17

691 downloads per month
Used in twitch_ircv3_parse

MIT license

290KB
8K SLoC

I'm on the highway to hell

By default, no API endpoints are enabled.

https://dev.twitch.tv/docs/api/reference/

Usage

[dependencies]
twitch_highway = { version = "0.1", features = ["users"] }
asknothingx2-util = { version = "0.0.28", features = ["oauth"] }
use asknothingx2_util::oauth::{AccessToken, ClientId};
use twitch_highway::{
    types::UserId,
    users::{request::BlockReason, UserAPI},
    TwitchAPI,
};

#[tokio::main]
async fn main() {
    let api = TwitchAPI::new(
        AccessToken::new("access_token".to_string()),
        ClientId::new("client_id".to_string()),
    );

    let user_block = api.block_user(UserId::new("user_id"), None, Some(BlockReason::Harassment));
    let response = user_block.request().await.unwrap();
    let response = response.parse_response().unwrap();
}

Features

Dependencies

~7–20MB
~279K SLoC