Skip to content

Latest commit

 

History

History

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 

What is this example

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

Reference Documentation

Setting up the example

  • Open generate.py in 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 '' of client_id
  • Hit New Secret and then Ok
  • Then copy the now Displayed Client Secret into the '' of client_secret
  • Add a streamer name in the '' of streamer_name

Running the example

You may need to pip install requests first as a dependency

In a console/terminal, run python generate.py