Hi,i’m sorry if my english will be bad
I’m requesting help because i’m stacking with a problem : i’m developing a telegram bot that automatically kick user that is not subscribed to a channel,in this moment i use the channel csv subscriber list.
Now, what i want to achieve is : get the list of subscriber from the twitch api, i alredy have the client_secret and client_id of the twitch channel of which I want to get the subscriber list and i have alredy tested the api to obtain the token
GET https://id.twitch.tv/oauth2/authorize ?client_id=<your client ID> &redirect_uri=<your registered redirect URI> &response_type=code &scope=<space-separated list of scopes>
but when i use thi endpoint and pass the token i get 401 Unauthorized
curl -X GET 'https://api.twitch.tv/helix/subscriptions?broadcaster_id=141981764' \ -H 'Authorization: Bearer cfabdegwdoklmawdzdo98xt2fo512y' \ -H 'Client-Id: uo6dggojyb8d6soh92zknwmi5ej1q2'
I hope you could help me