Good day. Im trying to change stream title via this code:
titleStr = "Playing cool new game!";
$.ajax({
url: 'https://api.twitch.tv/kraken/channels/my_channel?channel[status]='+titleStr+'&oauth_token=' +token,
type: 'PUT',
dataType : 'jsonp',
contentType: 'application/json',
success: function(data) {
console.log(data.status);
}
});
It returns succsess (current title), but nothing changes. However i tested url with Chrome App named Postman and its perfectly works.
UPD: Twitch API