![github] ![crates-io] ![docs-rs-big]
See documentation for more info.
You can see current unpublished docs here: ![local-docs]
See examples for examples.
```rust ,norun use twitchapi2::{TwitchClient, helix::channels::GetChannelInformationRequest}; use twitchoauth2::{AccessToken, Scope, TwitchToken, tokens::errors::TokenError, UserToken, client::reqwesthttp_client};
async fn main() -> Result<(), Box
println!("{:?}", &client.helix.req_get(req, &token).await?.data.unwrap().title);
Ok(())
} ```
This crate aims to target
This crate should also be able to be used for
There are no current plans to support
| Endpoint | | |
| :--------------------- | :---------------------------------------------------------------- | :--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| ✔ Check AutoMod Status | POST https://api.twitch.tv/helix/moderation/enforcements/status
| ![docs-rs] ![twitch-reference] |
| ✔ Get Banned Users | GET https://api.twitch.tv/helix/moderation/banned
| ![docs-rs] ![twitch-reference] |
| ✔ Get Banned Events | GET https://api.twitch.tv/helix/moderation/banned/events
| ![docs-rs] ![twitch-reference] |
| ✔ Get Moderators | GET https://api.twitch.tv/helix/moderation/moderators
| ![docs-rs] ![twitch-reference] |
| ✔ Get Moderator Events | GET https://api.twitch.tv/helix/moderation/moderators/events
| ![docs-rs] ![twitch-reference] |
| Endpoint | | |
| :--------------------------- | :----------------------------------------------------- | :------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| ✔ Start Commercial | POST https://api.twitch.tv/helix/channels/commercial
| ![docs-rs] ![twitch-reference] |
| ✔ Get Channel Information | GET https://api.twitch.tv/helix/channels
| ![docs-rs] ![twitch-reference] |
| ✔ Modify Channel Information | PATCH https://api.twitch.tv/helix/channels
| ![docs-rs] ![twitch-reference] |
| Endpoint | | |
| :------------------------ | :----------------------------------------------------- | :--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| 🔨 Get Extension Analytics | GET https://api.twitch.tv/helix/analytics/extensions
| ![twitch-reference] |
| 🔨 Get Game Analytics | GET https://api.twitch.tv/helix/analytics/games
| ![twitch-reference] |
| Endpoint | | |
| :--------------------- | :------------------------------------------------- | :--------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| ✔ Get Cheermotes | GET https://api.twitch.tv/helix/bits/cheermotes
| ![docs-rs] ![twitch-reference] |
| ✔ Get Bits Leaderboard | GET https://api.twitch.tv/helix/bits/leaderboard
| ![docs-rs] ![twitch-reference] |
| Endpoint | | |
| :--------------------------- | :-------------------------------------------------------- | :---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| 🔨 Get Extension Transactions | GET https://api.twitch.tv/helix/extensions/transactions
| ![twitch-reference] |
| Endpoint | | |
| :------------ | :--------------------------------------- | :----------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| 🔨 Create Custom Rewards | POST https://api.twitch.tv/helix/channel_points/custom_rewards
| ![twitch-reference] |
| 🔨 Delete Custom Rewards | DELETE https://api.twitch.tv/helix/channel_points/custom_rewards
| ![twitch-reference] |
| 🔨 Get Custom Reward | GET https://api.twitch.tv/helix/channel_points/custom_rewards
| ![twitch-reference] |
| ✔ Get Custom Reward Redemption | GET https://api.twitch.tv/helix/channel_points/custom_rewards/redemptions
| ![docs-rs] ![twitch-reference] |
| 🔨 Update Custom Reward | PATCH https://api.twitch.tv/helix/channel_points/custom_rewards
| ![twitch-reference] |
| ✔ Update Redemption Status | PATCH https://api.twitch.tv/helix/channel_points/custom_rewards/redemptions
| ![docs-rs] ![twitch-reference] |
| Endpoint | | |
| :------------ | :--------------------------------------- | :----------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| 🔨 Create Clip | POST https://api.twitch.tv/helix/clips
| ![twitch-reference] |
| ✔ Get Clips | GET https://api.twitch.tv/helix/clips
| ![docs-rs] ![twitch-reference] |
| Endpoint | | |
| :------------------------------------- | :----------------------------------------------------- | :------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| 🔨 Create Entitlement Grants Upload URL | POST https://api.twitch.tv/helix/entitlements/upload
| ![twitch-reference] |
| 🔨 Get Code Status | GET https://api.twitch.tv/helix/entitlements/codes
| ![twitch-reference] |
| 🔨 Redeem Code | POST https://api.twitch.tv/helix/entitlements/code
| ![twitch-reference] |
| Endpoint | | |
| :------------------------------------- | :----------------------------------------------------- | :------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| 🔨 Create EventSub Subscription | POST https://api.twitch.tv/helix/eventsub/subscriptions
| ![docs-rs] ![twitch-reference] |
| 🔨 Delete EventSub Subscription | DELETE https://api.twitch.tv/helix/eventsub/subscriptions
| ![docs-rs] ![twitch-reference] |
| 🔨 Get EventSub Subscriptions | GET https://api.twitch.tv/helix/eventsub/subscriptions
| ![docs-rs] ![twitch-reference] |
| Endpoint | | |
| :-------------- | :------------------------------------------ | :-------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| ✔ Get Top Games | GET https://api.twitch.tv/helix/games/top
| ![docs-rs] ![twitch-reference] |
| ✔ Get Games | GET https://api.twitch.tv/helix/games
| ![docs-rs] ![twitch-reference] |
| Endpoint | | |
| :------------------ | :-------------------------------------------------- | :----------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| ✔ Search Categories | GET https://api.twitch.tv/helix/search/categories
| ![docs-rs] ![twitch-reference] |
| ✔ Search Channels | GET https://api.twitch.tv/helix/search/channels
| ![docs-rs] ![twitch-reference] |
| Endpoint | | |
| :--------------------- | :------------------------------------------------- | :------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| 🔨 Get Stream Key | https://api.twitch.tv/helix/streams/key
| ![twitch-reference] |
| ✔ Get Streams | GET https://api.twitch.tv/helix/streams
| ![docs-rs] ![twitch-reference] |
| 🔨 Create Stream Marker | POST https://api.twitch.tv/helix/streams/markers
| ![twitch-reference] |
| 🔨 Get Stream Markers | GET https://api.twitch.tv/helix/streams/markers
| ![twitch-reference] |
| ✔ Get Stream Tags | GET https://api.twitch.tv/helix/streams/tags
| ![docs-rs] ![twitch-reference] |
| 🔨 Replace Stream Tags | PUT https://api.twitch.tv/helix/streams/tags
| ![twitch-reference] |
| Endpoint | | |
| :------------------------------ | :---------------------------------------------- | :------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
| ✔ Get Broadcaster Subscriptions | GET https://api.twitch.tv/helix/subscriptions
| ![docs-rs] ![twitch-reference] |
| ✔ Get Broadcaster Subscriptions Events | GET https://api.twitch.tv/helix/subscriptions/events
| ![docs-rs] ![twitch-reference] |
| Endpoint | | |
| :-------------------- | :--------------------------------------------- | :------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| ✔ Get All Stream Tags | GET https://api.twitch.tv/helix/tags/streams
| ![docs-rs] ![twitch-reference] |
| Endpoint | | |
| :--------------------------- | :------------------------------------------------------ | :----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| ✔ Create User Follows | POST https://api.twitch.tv/helix/users/follows
| ![docs-rs] ![twitch-reference] |
| ✔ Delete User Follows | DELETE https://api.twitch.tv/helix/users/follows
| ![docs-rs] ![twitch-reference] |
| ✔ Get Users | GET https://api.twitch.tv/helix/users
| ![docs-rs] ![twitch-reference] |
| ✔ Get Users Follows | GET https://api.twitch.tv/helix/users/follows
| ![docs-rs] ![twitch-reference] |
| 🔨 Update User | PUT https://api.twitch.tv/helix/users
| ![twitch-reference] |
| 🔨 Get User Extensions | GET https://api.twitch.tv/helix/users/extensions/list
| ![twitch-reference] |
| 🔨 Get User Active Extensions | GET https://api.twitch.tv/helix/users/extensions
| ![twitch-reference] |
| 🔨 Update User Extensions | PUT https://api.twitch.tv/helix/users/extensions
| ![twitch-reference] |
| Endpoint | | |
| :----------- | :--------------------------------------- | :--------------------------------------------------------------------------------------------------------------------------------------------------------- |
| ✔ Get Videos | GET https://api.twitch.tv/helix/videos
| ![docs-rs] ![twitch-reference] |
| Endpoint | | |
| :-------------------------- | :------------------------------------------------------- | :------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
| ✔ Get Webhook Subscriptions | GET https://api.twitch.tv/helix/webhooks/subscriptions
| ![docs-rs] ![twitch-reference] |
| Endpoint | | |
| :---------------------- | :------------------------------------------------- | :----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| ✔ Get Hype Train Events | GET https://api.twitch.tv/helix/hypetrain/events
| ![docs-rs] ![twitch-reference] |
| Endpoint | |
| :------------- | :-------------------------------------------------------- |
| ✔ Get Chatters | https://tmi.twitch.tv/group/user/{broadcaster}/chatters
|
| ✔ Get Hosts | https://tmi.twitch.tv/hosts
|
| Endpoint | Topic | |
| :-------------------------------------- | :---------------------------------------------- | :----------------------------------------------------------------------------------- |
| 🔨 Bits V1 | channel-bits-events-v1.<channel ID>
| |
| ✔ Bits V2 | channel-bits-events-v2.<channel ID>
| ![docs-rs] |
| ✔ Bits Badge Notificaton | channel-bits-badge-unlocks.<channel_id>
| ![docs-rs] |
| ✔ Channel Points | channel-points-channel-v1.<channel_id>
| ![docs-rs] |
| ✔ Channel Subscriptions | channel-subscribe-events-v1.<channel ID>
| ![docs-rs] |
| ✔ Chat Moderator Actions | chat_moderator_actions.<channel ID>
| ![docs-rs] |
| ✔ Chat Moderator Actions (undocumented) | chat_moderator_actions.<channel ID>.<user_id>
| ![docs-rs] |
| 🔨 Whispers | whispers.<user ID>
| |
| ✔ Channel Cheer Events | channel-cheer-events-public-v1.<user ID>
| ![docs-rs] |
| ✔ Channel Sub Gifts V1 | channel-sub-gifts-v1.<user ID>
| ![docs-rs] |
| ✔ Following | following.<user ID>
| ![docs-rs] |
| ✔ Hype Train Events V1 | hype-train-events-v1.<user ID>
| ![docs-rs] |
| ✔ Hype Train Events V1 Rewards | hype-train-events-v1.<user ID>
| ![docs-rs] |
| ✔ Raid | raid.<user ID>
| ![docs-rs] |
| ✔ Video Playback | video-playback.<username>
| ![docs-rs] |
| ✔ Video Playback By ID | video-playback-by-id.<user ID>
| ![docs-rs] |
| Endpoint | Topic | |
| :-------------------------------------- | :--------------------------------------------------------- | :----------------------------------------------------------------------------------------------------------------- |
| ✔ Topic: User Follows | https://api.twitch.tv/helix/users/follows
| ![docs-rs] |
| ✔ Topic: Stream Changed | https://api.twitch.tv/helix/streams
| ![docs-rs] |
| ✔ Topic: User Changed | https://api.twitch.tv/helix/users
| ![docs-rs] |
| 🔨 Topic: Extension Transaction Created | https://api.twitch.tv/helix/extensions/transactions
| |
| ✔ Topic: Moderator Change Events | https://api.twitch.tv/helix/moderation/moderators/events
| ![docs-rs] |
| ✔ Topic: Channel Ban Change Events | https://api.twitch.tv/helix/moderation/banned/events
| ![docs-rs] |
| ✔ Topic: Subscription Events | https://api.twitch.tv/helix/subscriptions/events
| ![docs-rs] |
| ✔ Topic: Hype Train Event | https://api.twitch.tv/helix/hypetrain/events
| ![docs-rs] |
Licensed under either of Apache License, Version 2.0 or MIT license at your option.
Unless you explicitly state otherwise, any contribution intentionally submitted for inclusion in this crate by you, as defined in the Apache-2.0 license, shall be dual licensed as above, without any additional terms or conditions.