Using your new Twitch api I came across a question which I am desperately trying to find the answer to.
I’m trying to display the moderators of my Twitch channel. I read on your Documentation that there are two mandatory parameters:
There must be the “moderation: read” Scope in my Token.
There must also be the ‘client_id’ corresponding the ‘boradcaster_id’
I have a question, espacially regarding that second part. How to add the ‘clien_id’ in the OAuth token? Because in the token recovery parameters you do not specify anything in relation to the ‘client_id’ parameter of the OAuth token. I’m confused, could I get help please?
broadcaster_id Provided broadcaster_id must match the user_id in the auth token.
It’s the Auth token that has to match the broadcaster. Meaning that you need the broadcaster (if this is for your own channel, this’ll be you) to go through the OAuth process for a User Access Token, that way the token will be for that channel.
I wanted to thank you first.
Secondly everything that you told me I understood it well but despite that when I pass the cUrl request for moderation I have a message that I am not authorized in the Token.
By inspecting the two tokens the only difference is that the generator Token contains a “clien_id”. I don’t know how they put this clien_id in the Token. But I can’t do it.
It’s not advised to use this tool as you don’t have it’s client Secret.
So when you key dies you have to manually go get a new token from the website/tool and restart your scripts.
Both the ClientID and the Access Token are provided to the API with your call as headers. If you are using the token generator site, you’d need to use their ClientID
Infact, precisely the problem is that when I make the call to receive a twitch token, the token does not contain the client_id. So therein lies the problem. When I use the generator it puts the client_id which suits mine.