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
691 downloads per month
Used in twitch_ircv3_parse
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
-
Conduits: coming soom
-
EventSub: coming soom
-
Tags: deprecated
Dependencies
~7–20MB
~279K SLoC