Hi guys, i’ve read the documentation but i’m a bit unsure on how to proceed with the creation of an App.
I gotta get the chatters of a channel i’m not the broadcaster at.
I was reading the doc and i saw: Requires a user access token that includes the moderator:read:chatters scope.
So, how do i proceed? I created the app and now i should generate the token.
Should i send him the link(obv with the correct parameter) to authorize me to do that or should he make me a moderator?
I don’t wanna keep asking to generate the token when it expires(however, i saw that you could verify the token or am i wrong?) but i didn’t understand if, becoming a mod, make me able to do it by myself.
Either approach is valid.
Neither one is 100% better than the other.
If the tool is just for that one streamer and no one else I’d likely get a broadcaster token.
Assuming you are using code flow, that will return an access and a refresh token.
When the access token expires, use the refresh token to get a new access and refresh token.
Verify just tells you
if a token is valid
if it is valid the clientID it’s for
if it is valid the user it’s for
if it is valid the expiry time left on it
Regardless of you being a mod, if the refresh token is invalid, your tool will need to get a new set of keys from a user. if the system dies as the access and refresh tokens are dead, the caster will have to wait for you to be available to provide new tokens.
So since Get Chatters you need any channel moderators token or better, which user you get is irrelevant as any moderator on the channel (or better) will suffice.
So you could support any mod logging into your tool to provide a token, in order to read Get Chatters, in the event the access/refresh token key set is dead.
And the link to provide tokens should be available at all times so that if the access/refresh token keyset dies mid stream, any mod can reseed the system.