hmmm thanks but I tried that and it still doesn’t seem to be working? aha yea I have changed it to my channel to test (AidanDaniel97)
$.ajax({
url: 'https://api.twitch.tv/kraken/channels/aidandaniel97?channel[status]='+titleStr+'&_method=put',
type: 'GET',
contentType: 'application/json',
dataType: 'jsonp',
headers: {
'Authorization': token // the "OAuth " is important too!
},
success: function(data) {
console.log(data.status);
console.log(data)
}
});
then I get this error:
Object {error: “Unauthorized”, status: 401, message: “Token invalid or missing required scope”}
I have also found this:
but that does not work at all, the code still gives the 500 error