c# - Get 401 Error if i try to change twitch.tv status or game title -


i oauth token implicit grant flow , scope channel_editor. if try change the channel title answer twitch server 401 token invalid or missing required scope.

thats code try change channel status:

var client = new restclient("https://api.twitch.tv/kraken/channels/innoszorn83");         var request = new restrequest(method.put);         request.addheader("cache-control", "no-cache");         request.addheader("content-type", "application/json");         request.addheader("authorization", "oauth " + cs_globals.oauth);         request.addheader("accept", "application/vnd.twitchtv.v3+json");         request.addparameter("application/json", "{\"channel\":{\"status\":\"hello world\"}}",             parametertype.requestbody);          irestresponse response = client.execute(request); 

i oauth webbrowser control in c# programm.

i found solution. have 1 error in code. doesn't change scope channel_editor


Comments

Popular posts from this blog

java - pagination of xlsx file to XSSFworkbook using apache POI -

Unlimited choices in BASH case statement -

apache - How do I stop my index.php being run twice for every user -