Hi, ty for answer me!,
Like you said before about scopes, now Im trying to get the user access token with OAuth Authorization Code Flow that allow me to see the subscriber’s list:
request ({
url : “https://id.twitch.tv/oauth2/authorize?client_id=XXXXX&redirect_uri=http://localhost&response_type=token&scope=channel_subscriptions” ,
method: “GET”
}, function (err, res, body) {
console.log(body);
…
}
I was expecting get the Oauth Token directly for use it here:
request ({
url : “https://api.twitch.tv/kraken/channels/b4kus1n/subscriptions?direction=DESC&limit=5”,
method: “GET”,
json: true,
headers : {
“Client-ID”: clientIdTwitch,
“Authorization”: “OAuth XXXTOKEN HEREXXX”
}
}, function (err, res, body) {
console.log(body);
}
But instead of getting the TOKEN, I get an HTML code which I think is for the user to give permissions.
Is there any way to get the TOKEN automatically without signing up every time I open the application?