Greetings,
Awhile back, I put a lot of effort into a script that would allow me to pull the streams I follow from the Twitch API. It turned out to be extremely useful to me. So much that ended up making a wall fixture out of a Raspberry Pi (development board) to watch the streams.
It was all coming together so smoothly. Then, I took a bit of a break, and tried the script only to get a 401 Unauthorized response. After some research, I found the “scope” I need to access now requires “user_read.” Where previous I had just chat_login or null.
Docs say I need user_read:
GET /streams/followed
Returns a list of stream objects that the authenticated user is following.
Authenticated, required scope: user_read
Source: https://github. com/justintv/Twitch-API/blob/master/v3_resources/users.md#get-streamsfollowed
This is what I used previously:
curl -s -H “Accept: application/vnd.twitchtv.v3+json” -H “Authorization: OAuth ${o_auth}” \ -X GET https://api.twitch.tv/kraken/streams/followed
I can’t seem to figure out a way to do that request locally. I use this script for my own personal use. I don’t run a server (which is a resource consideration on a platform like an RPi). I noticed the client_ID sticky as well. Side note I tried: https://twitchapps.com/tmi/#access_token=(token here)&scope=user_read. Didn’t work
Can someone point me in the right direction that fits my use?
Thank you,