Following Scope

Hello,

I want to make an access token for a minecraft modification (ingame events like lucky blocks) but I can only use the “channel_subscriptions”-scope because there is no scope like “channel_followers” and I’m not a twitch partner, so I can’t make this… :confused: Any help?^^

You don’t need authentication to access someone’s followers: https://github.com/justintv/Twitch-API/blob/master/v3_resources/follows.md#get-channelschannelfollows

If you wish to make a user follow a channel, that’s documented here: https://github.com/justintv/Twitch-API/blob/master/v3_resources/follows.md#put-usersuserfollowschannelstarget and requires the users_follows_edit scope.

This is the link for the authorisation (subs/twitch partners): https://api.twitch.tv/kraken/oauth2/authorize?response_type=token&client_id=3sibr6mi895cevo4azix780iixhyuu9&redirect_uri=http://localhost&scope=channel_subscriptions <- “users_follows_edit” will not help there :confused:

If you are after who follows a given channel you do not NEED any scopes.

So what Data are you actually after?

If someone follows a channel (e.g. mine) then it should trigger the event in game, but there is no scope like “channel_followers/following” existant, only the “channel_subscriptions”-scope (if someone subscribes to a channel (not me because I’m not a twitch partner)…^^

When you would call https://api.twitch.tv/kraken/channels/wiiarctus/follows every X number of minutes and see if there is anything in the list that wasn’t before. This url does not require any scope.

https://github.com/justintv/Twitch-API/blob/master/v3_resources/follows.md#get-channelschannelfollows

https://api.twitch.tv/kraken/oauth2/authorize?response_type=token&client_id=3sibr6mi895cevo4azix780iixhyuu9&redirect_uri=http://localhost&scope=*** I have to use this link to give the mod permissions but this (***) don’t work because I can’t call a scope like “channel_followers/following” (doesn’t exist). There is only the way to do this with the “channel_subscriptions”-scope but I’m not a twitch partner…^^

Please read the other comments in this thread. To get the followers for a channel you don’t need to use that url since you don’t need any scope. Just https://api.twitch.tv/kraken/channels/wiiarctus/follows nothing else. You can acces it, your mods can access it, anyone can access it.

If that’s not what you want to do, please try restating your intentions more clearly.

Or to put it another way.

To get the followers of a channel YOU DO NOT NEED TO SEND AN OAUTH ACCESS KEY IN THE HEADER

You can do it without authentication, you just need the channel name.
You do not need ANY permissions

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