because we have to comply with the new twitch policy we need to know if the user is banned/timedout for our extension.
As far as I understood, we need to get this information on our own by using the:
But to use this API we need a token with the moderation:read scope.
We can get this token like this:
So I have two curls:
Firs getting the token with OUR_ID and OUR_SECRET.
This seems to work I get the answer (MY_TOKEN is the generated token) :
Now I use MY_TOKEN and OUR_ID to make the API call for banned users for a channel:
curl -H ‘Client-ID: OUR_ID’ -H ‘Authorization: Bearer MY_TOKEN’ -X GET ‘https://api.twitch.tv/helix/moderation/banned?broadcaster_id=241303739’
But I always get:
What am I missing here?