Want some Bit Revenue data and Viewer data

Twitch uses standard oAuth.

For a user token the steps are, normally

  1. Construct the authorize URL
  2. Redirect user offsite to that URL
  3. user accepts/declines your apps access to their account
  4. user is returned to your website
  5. if the user accepted the link you extract the code from the URL
  6. exchange the code for an access/refresh token(s) and store those tokens for use