I’ve done it… now i can take the user id. I am trying now to get subs list…
on Curl it works:
curl -X GET 'https://api.twitch.tv/helix/subscriptions/user?broadcaster_id=MYID&user_id=MYID -H ‘Authorization: Bearer ACCESS_TOKEN’ -H ‘Client-Id: CLIENT-ID’
on python i don’t know why but i get this:
{‘error’: ‘Unauthorized’, ‘status’: 401, ‘message’: ‘user_id should match the user in the token’}
using this:
headers = {
‘Authorization’: 'Bearer '+token_id,
‘Client-Id’: client_id
}
link=“https://api.twitch.tv/helix/subscriptions/user?broadcaster_id="+MYID+"&user_id=+”+MYID
I tried to take the value of token_id and user_id from my python script, build a string to do a curl commands and it works on command… but not in python script