twitch_highway 0.1.0

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

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();
}

Features

  • [AdsAPI]
  • [AnalyticsAPI]
  • [BitsAPI]
  • [CclsAPI]
  • [ChannelPointsAPI]
  • [ChannelsAPI]
  • [CharityAPI]
  • [ChatAPI]
  • [ClipsAPI]
  • Conduits
  • [CclsAPI]
  • [EntitlementsAPI]
  • [ExtensionsAPI]
  • EventSub
  • [GamesAPI]
  • [GoalsAPI]
  • [GuestStarAPI]
  • [HypeTrainAPI]
  • [ModerationAPI]
  • [PollsAPI]
  • [PredictionsAPI]
  • [RaidAPI]
  • [ScheduleAPI]
  • [SearchAPI]
  • [StreamsAPI]
  • [SubscriptionsAPI]
  • Tags
  • [TeamsAPI]
  • [UserAPI]
  • [VideosAPI]
  • [WhisperAPI]