twitch_highway 0.1.3

Twitch API
Documentation

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

  • [ads][crate::ads::AdsAPI]

  • [analytics][crate::analytics::AnalyticsAPI]

  • [bits][crate::bits::BitsAPI]

  • [channels][crate::channels::ChannelsAPI]

  • [channel-points][crate::channel_points::ChannelPointsAPI]

  • [charity][crate::charity::CharityAPI]

  • [Chat][crate::chat::ChatAPI]

  • [clips][crate::clips::ClipsAPI]

  • [ccls][crate::ccls::CclsAPI]

  • [entitlements][crate::entitlements::EntitlementsAPI]

  • [extensions][crate::extensions::ExtensionsAPI]

  • [games][crate::games::GamesAPI]

  • [goals][crate::goals::GoalsAPI]

  • [guest-star][crate::guest_star::GuestStarAPI]

  • [hype-train][crate::hype_train::HypeTrainAPI]

  • [moderation][crate::moderation::ModerationAPI]

  • [polls][crate::polls::PollsAPI]

  • [predictions][crate::predictions::PredictionsAPI]

  • [raid][crate::raid::RaidAPI]

  • [schedule][crate::schedule::ScheduleAPI]

  • [search][crate::search::SearchAPI]

  • [streams][crate::streams::StreamsAPI]

  • [subscriptions][crate::subscriptions::SubscriptionsAPI]

  • [teams][crate::teams::TeamsAPI]

  • [users][crate::users::UserAPI]

  • [videos][crate::videos::VideosAPI]

  • [whispers][crate::whispers::WhisperAPI]

  • Conduits: coming soom

  • EventSub: coming soom

  • Tags: deprecated