- EventSub and PubSub callbacks are now executed non blocking, this fixes that long running callbacks stop the library to respond to heartbeats etc. - EventSub subscription can now throw a TwitchBackendException when the API returns a Error 500 - added the following EventSub topics (thanks d7415!) - "Goal Begin" - "Goal Progress" - "Goal End"
2.4.2
- Fixed EventSub not keeping local state in sync on unsubscribe - Added proper exception if authentication via oauth fails
2.4.1
- EventSub now uses a random 20 letter secret by default - EventSub now verifies the send signature
2.4.0
- **Implemented EventSub** - Marked Webhook as deprecated - added the following new endpoints - "Get Followed Streams" - "Get Polls" - "End Poll" - "Get Predictions" - "Create Prediction" - "End Prediction" - "Manage held AutoMod Messages" - "Get Channel Badges" - "Get Global Chat Badges" - "Get Channel Emotes" - "Get Global Emotes" - "Get Emote Sets" - "Delete EventSub Subscription" - "Get Channel Stream Schedule" - "Get Channel iCalendar" - "Update Channel Stream Schedule" - "Create Channel Stream Schedule Segment" - "Update Channel Stream Schedule Segment" - "Delete Channel Stream Schedule Segment" - "Update Drops Entitlements" - Added the following new AuthScopes - USER_READ_FOLLOWS - CHANNEL_READ_POLLS - CHANNEL_MANAGE_POLLS - CHANNEL_READ_PREDICTIONS - CHANNEL_MANAGE_PREDICTIONS - MODERATOR_MANAGE_AUTOMOD - CHANNEL_MANAGE_SCHEDULE - removed deprecated Endpoints - "Create User Follows" - "Delete User Follows" - Added Topics to PubSub - "AutoMod Queue" - "User Moderation Notifications" - Check if at least one of status or id is provided in get_custom_reward_redemption - reverted change that made reward_id optional in get_custom_reward_redemption - get_extension_transactions now takes up to 100 transaction ids - added delay parameter to modify_channel_information - made parameter prompt of create_custom_reward optional and changed parameter order - made reward_id of get_custom_reward take either a list of str or str - made parameter title, prompt and cost optional in update_custom_reward - made parameter redemption_ids of update_redemption_status take either a list of str or str - fixed exception in block_user - allowed Twitch.check_automod_status to take in more that one entry
2.3.0
* Initializing the Twitch API now automatically creates a app authorization (can be disabled via flag) * Made it possible to not set a app secret in cases where only user authentication is required * added helper function `validate_token` to OAuth * added helper function `revoke_token` to OAuth * User OAuth Token is now automatically validated for correct scope and validity when being set * added new "Get Drops Entitlement" endpoint * added new "Get Teams" endpoint * added new "Get Chattel teams" endpoint * added new AuthScope USER_READ_SUBSCRIPTIONS * fixed exception in Webhook if no Authentication is set and also not required * refactored Authentication handling, making it more versatile * added more debugging logs * improved documentation
2.2.5
* added optional callback to Twitch for user and app access token refresh * added additional check for non empty title in Twitch.modify_channel_information * changed required scope of PubSub.listen_channel_subscriptions from CHANNEL_SUBSCRIPTIONS to CHANNEL_READ_SUBSCRIPTIONS