Honestly, I’m not sure how to tell. I’m getting the access token by POSTing my client_id, client_secret, grant_type (client_credentials), and scope (user:read:email) to https://api.twitch.tv/kraken/oauth2/token.
Twitch responds with something like this:
{
"access_token": "0og<redacted>p16",
"refresh_token":"",
"scope":["user:read:email"],
"expires_in":5423695
}
Finally, I take the given access_token and pass it on to the function described above. Does that sound correct? And my Client-ID header should be correct, since it’s the same ID that I pass to get my token.