pororia
3
Thank you for your answer!
I met error this time.
{“error”:“Bad Request”,“status”:400,“message”:“No client id specified”}
I tested below code.
var url=‘https://api.twitch.tv/kraken/channel’;
request({
url: url,
method: ‘GET’,
headers: [
{
‘Authorization’: 'OAuth ’ + req.user.refreshToken.access_token,
‘Accept’: ‘application/vnd.twitchtv.v5+json’,
‘Client_ID’: config.twitchtv.clientID
}
],
},
function (error, response, body) {
if (error) throw error;
console.log(body);
}
);