Hello,
I’ve got this PHP script that grabs my list of live people I’m following using the following line of code:
$result = file_get_contents(‘https://api.twitch.tv/kraken/streams/followed?limit=100&offset=0&oauth_token=*******************&stream_type=live’, false);
(Reference: https://github.com/justintv/Twitch-API/blob/master/v3_resources/users.md#get-streamsfollowed )
It used to work fine, but it seems to have not found anyone since the end of April, and I’m getting a 401 error (“Token invalid or missing required scope”) when I try testing it. I used to be able to just put that link in a browser and get the JSON back. Did anything change in the API to cause this to start failing? I see a pinned topic about requiring a client_id in August, but it’s not August yet.
I may’ve changed my Twitch password around the time it started failing, but I forget when I did it, and my email junk folder only goes back ten days. I’ve tried plugging in a new oauth token, and still no luck. It’s been a while since I’ve set this up, though; is my URL correct? Also, is the oauth token I use for the URL the same thing I use to connect to chat through IRC, or is it related to a Developer Application? Do tokens expire? I’ve got some code in an older application that grabs developer-stuff, but I don’t remember using it to set this up (shoulda left better code comments…).
Thanks in advance,
TheCowness