1.I get accessToken from
https://id.twitch.tv/oauth2/token
Post https://id.twitch.tv/oauth2/token?client_id=Client_id&client_secret=Client_secret&grant_type=client_credentials&scope=analytics%3Aread%3Agames
Response:
{
“access_token”: “[REDACTED]”,
“expires_in”: 4808526,
“scope”: [
“analytics:read:games”
],
“token_type”: “bearer”
}
Response is right.
2.I get Game Analytics interface
https://api.twitch.tv/helix/analytics/games?first=5
Header Authorization: Bearer [REDACTED]
Response:
{
“error”: “Unauthorized”,
“status”: 401,
“message”: “Missing analytics:read:games scope”
}
Please help me ,tks!