- ( Create twitch bot account ) and login to
https://dev.twitch.tv/
- Add application in console page (
OAuth Redirect URLs
:http://localhost:3000
) - Get
Client ID
andClient Secret
- Get OAuth token
- Authorize code
https://id.twitch.tv/oauth2/authorize
https://dev.twitch.tv/docs/authentication/getting-tokens-oauth/#client-credentials-grant-flow - from redirected url get
code
- POST to get token
https://id.twitch.tv/oauth2/token
- refresh token
https://id.twitch.tv/oauth2/token
https://dev.twitch.tv/docs/authentication/refresh-tokens/
- Authorize code
Code chatbot with token: https://dev.twitch.tv/docs/irc/get-started/
for python (twitchio) https://github.com/PythonistaGuild/TwitchIO
pip install -U twitchio