Hey everyone
I was trying to use the API to create polls from my nodejs app, so I proceeded to create a new OAuth token with the “channel:manage:polls” scope. Since then, I can’t do anything with my new token : polls don’t work, “channel:manage:broadcast” scope don’t work anymore (I used it to change stream title / category).
All I get are “401 Unauthorized : missing required oauth scope” errors.
Create poll call :
request({
url: ‘https://api.twitch.tv/helix/polls’,
method: ‘POST’,
headers: {
Accept: ‘application/vnd.twitchtv.v5+json’,
Authorization: 'OAuth ’ + ,
‘Client-ID’:
},
json: true,
body: { }
}
Change title call :
request({
baseUrl: ‘https://api.twitch.tv/kraken/’,
url: ‘channels/’ + ,
method: ‘PUT’,
headers: {
Accept: ‘application/vnd.twitchtv.v5+json’,
Authorization: 'OAuth ’ + ,
‘Client-ID’:
},
json: true,
body: {
channel: { status: }
}
}
Is there something I’m missing?
Thanks for the help