This example covers a way to create an app access token in Python, then use that token to check a streams status. It doesn't cover how to store/reuse that token which you should do
- Open
generate.pyin a text editor - Visit Twitch Dev Console
- Visit Applications
- Manage your Application, or create one if you don't have one
- Copy the Client ID into the
''ofclient_id - Hit
New Secretand then Ok - Then copy the now Displayed Client Secret into the
''ofclient_secret - Add a streamer name in the
''ofstreamer_name
You may need to pip install requests first as a dependency
In a console/terminal, run python generate.py