My token have the scopes:
content: b’{“client_id”:“…”,“scopes”: “channel:read:subscriptions”,“channel_subscriptions”],“expires_in”:4916437}\n’
When y call endpoint ‘https://api.twitch.tv/helix/subscriptions’
mycode.py
header = {‘Authorization’: ‘Bearer r2nsg1pcge49x…qqwatz7yu5’}
params = {‘broadcaster_id’: 149278888}
requests.get(_url, headers=header, params=params)
I have the return:
_content: b’{“error”:“Unauthorized”,“status”:401,“message”:“Missing scope: channel:read:subscriptions or channel_subscriptions”}’
The same token is used in oauth2/validate, /user and /videos with success.
Can anyone help me with this?