Changing stream title and game name (javascript)

Ok, I believe there must be something wrong with your access token then. I’ve just tested the following code and it works fine:

                 $.ajax({
                    url: 'https://api.twitch.tv/kraken/channels/btm_pl?channel[status]=TESTING_STUFF&_method=put&oauth_token=9c66pnqc474s87yx2cqjs7imbzrAAAA',
                    type: 'GET',
                    contentType: 'application/json',
                    dataType: 'jsonp',
                    success: function(data) {
                      console.log(data.status);
                      console.log(data)
                    }
            });

Make sure you request the channel_editor scope when asking for oauth token. Remember that asking for a different oauth token (with different scopes) further in the app flow will invalidate the previous token.

1 Like