You can create clips with `/clip` command, `Alt+X` keybind or `Create a clip` option in split header's context menu. This requires a new authentication scope so re-authentication will be required to use it. Co-authored-by: Leon Richardt <leon.richardt@gmail.com> Co-authored-by: pajlada <rasmus.karlsson@pajlada.com>
4.4 KiB
Twitch API
this folder describes what sort of API requests we do, what permissions are required for the requests etc
Kraken (V5)
We use a bunch of Kraken (V5) in Chatterino2.
Get Channel
URL: https://dev.twitch.tv/docs/v5/reference/channels#get-channel
Migration path: Unknown
- We implement this in
providers/twitch/api/Kraken.cpp getChannel
Used in:TwitchChannel::refreshTitleto check the current stream title/game of offline channels
Get Cheermotes
URL: https://dev.twitch.tv/docs/v5/reference/bits#get-cheermotes
Migration path: Not checked
- We implement this API in
providers/twitch/TwitchChannel.cppto resolve a chats available cheer emotes. This helps us parse incoming messages likepajaCheer1000
Get User Block List
URL: https://dev.twitch.tv/docs/v5/reference/users#get-user-block-list
Migration path: Unknown
- We use this in
providers/twitch/TwitchAccount.cpp loadIgnores
Block User
URL: https://dev.twitch.tv/docs/v5/reference/users#block-user
Requires user_blocks_edit scope
Migration path: Unknown
- We use this in
providers/twitch/TwitchAccount.cpp ignoreByID
Unblock User
URL: https://dev.twitch.tv/docs/v5/reference/users#unblock-user
Requires user_blocks_edit scope
Migration path: Unknown
- We use this in
providers/twitch/TwitchAccount.cpp unignoreByID
Get User Emotes
URL: https://dev.twitch.tv/docs/v5/reference/users#get-user-emotes
Requires user_subscriptions scope
Migration path: Unknown
- We use this in
providers/twitch/TwitchAccount.cpp loadEmotesto figure out which emotes a user is allowed to use!
AUTOMOD APPROVE
Unofficial documentation: https://discuss.dev.twitch.tv/t/allowing-others-aka-bots-to-use-twitchbot-reject/8508/2
- We use this in
providers/twitch/TwitchAccount.cpp autoModAllowto approve an automod deny/allow question
AUTOMOD DENY
Unofficial documentation: https://discuss.dev.twitch.tv/t/allowing-others-aka-bots-to-use-twitchbot-reject/8508/2
- We use this in
providers/twitch/TwitchAccount.cpp autoModDenyto deny an automod deny/allow question
Helix
Full Helix API reference: https://dev.twitch.tv/docs/api/reference
Get Users
URL: https://dev.twitch.tv/docs/api/reference#get-users
- We implement this in
providers/twitch/api/Helix.cpp fetchUsers.
Used in:UserInfoPopupto get ID, viewCount, displayName, createdAt of username we clickedCommandControllerto power any commands that need to get a user IDToaststo get the profile picture of a streamer who just went liveTwitchAccountignore and unignore features to translate user name to user ID
Get Users Follows
URL: https://dev.twitch.tv/docs/api/reference#get-users-follows
- We implement this in
providers/twitch/api/Helix.cpp fetchUsersFollows
Used in:UserInfoPopupto get number of followers a user has
Get Streams
URL: https://dev.twitch.tv/docs/api/reference#get-streams
- We implement this in
providers/twitch/api/Helix.cpp fetchStreams
Used in:TwitchChannelto get live status, game, title, and viewer count of a channelNotificationControllerto provide notifications for channels you might not have open in Chatterino, but are still interested in getting notifications for
Follow User
URL: https://dev.twitch.tv/docs/api/reference#create-user-follows
Requires user:edit:follows scope
- We implement this in
providers/twitch/api/Helix.cpp followUserUsed in:widgets/dialogs/UserInfoPopup.cppto follow a user by ticking follow checkbox in usercardcontrollers/commands/CommandController.cppin /follow command
Unfollow User
URL: https://dev.twitch.tv/docs/api/reference#delete-user-follows
Requires user:edit:follows scope
- We implement this in
providers/twitch/api/Helix.cpp unfollowUserUsed in:widgets/dialogs/UserInfoPopup.cppto unfollow a user by unticking follow checkbox in usercardcontrollers/commands/CommandController.cppin /unfollow command
Create Clip
URL: https://dev.twitch.tv/docs/api/reference#create-clip
Requires clips:edit scope
- We implement this in
providers/twitch/api/Helix.cpp createClipUsed in:TwitchChannelto create a clip of a live broadcast
TMI
The TMI api is undocumented.
Get Chatters
Undocumented
- We use this in
widgets/splits/Split.cpp showViewerList - We use this in
providers/twitch/TwitchChannel.cpp refreshChatters