Try this
$.ajax({
url: 'https://api.twitch.tv/kraken/channel',
type: 'GET',
contentType: 'application/json',
dataType: 'json',
headers: {
'Client-ID': '<your client id>',
'Authorization': 'OAuth <your oauth token with channel_read scope>',
'Accept': 'application/vnd.twitchtv.v5+json'
}
});
I removed dataType: jsonp since Kraken supports CORS so there isn’t much of a need for jsonp. Also, I don’t think that works with headers, added the Accept header to specific the latest API version, and also changed the url to remove the “s” in channels. I think there is an error in the v5 docs since this request was singular in previous API versions.
@TrainerTimmy http://twitchapps.com/tmi is only for generating a token capable of logging into IRC. It will not have the necessary scopes to make the request @GrimtrisharaLok is trying to do.