Why is there so much random bold and weird formatting in your posts.
The code should be:
var url=‘https://api.twitch.tv/kraken/channel’;
request({
url: url,
method: 'GET',
headers: {
'Authorization': 'OAuth ' + req.user.accessToken,
'Accept': 'application/vnd.twitchtv.v5+json'
}
}, function (error, response, body) {
if (error) throw error;
console.log(body);
} );
As you are providing an oAuth, you don’t need to specific a clientID so I have ommitted this header