Nightbot able to update stream info with user_read scope?

I noticed Nightbot is able to update people’s stream titles and games using the user_read scope with channel_editor? I have tried the same but end up having to use channel_read for it to work. I wouldn’t mind using channel_read but it asks that a user gives permission for the app to also view their stream key when authenticating which is something my app does not require.

You only need channel_editor to modify title and game via v5 API.

$ curl -s -H 'Authorization: OAuth -snip-' \
   -H 'Accept: application/vnd.twitchtv.v5+json' \
   https://api.twitch.tv/kraken/ | jq .
{
  "token": {
    "valid": true,
    "authorization": {
      "scopes": [
        "channel_editor"
      ],
      "created_at": "2018-01-26T09:24:35Z",
      "updated_at": "2018-01-26T09:24:35Z"
    },
    "user_name": "3v",
    "user_id": "17089325",
    -snip-
  }
}
$ curl -s -H 'Authorization: OAuth -snip-' \
   -H 'Accept: application/vnd.twitchtv.v5+json' \
   -H 'Content-Type: application/json' \
   -d '{"channel": {"status": "from API"} }' \
   -X PUT https://api.twitch.tv/kraken/channels/17089325 | jq .
{
  "mature": false,
  "status": "from API",
  "broadcaster_language": "fi",
  "display_name": "3v",
  -snip-
}

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.