For my extension I need to check if viewer follows the channel to show him content only for followers.
There is a deprecated method which works with helix token (for now) /helix/users/follows?to_id=
, but if will be disabled in August.
There are also the following method (but they require token scopes):
/helix/channels/followed?user_id=123456
requires user:read:follows
/helix/channels/followers?broadcaster_id=123456
requires moderator:read:followers
/helix/streams/followed?user_id=141981764
requires user:read:follows
Maybe there is a way to obtain one of these scopes with extension helper library? (like window.Twitch.ext.actions.requestIdShare
)
Also for subscribers we can enable (in twitch developer console) flag “Subscription Support” and use window.Twitch.ext.features.isSubscriptionStatusAvailable
with window.Twitch.ext.viewer.subscriptionStatus
to check if viewer is subscribed, is there a similar way to check if viewer follows the broadcaster?