After the recent changes to the Twitch API, useful tools like this twitchuptime script, which allowed to easily show on stream the uptime of any stream, have completely stopped working https://github.com/adrianschofield/twitchuptime
Is there any way to resolve this or a possible replacement for this tool? Thank you
If anyone knows a possible solution to this issue or if this is even fixable after the recent changes it would be amazing. If something similar already exists it would be even better; what i’m basically looking for is a simple script that shows the uptime of any stream in a browser (ex. 01:00:05), so that i can add that to my OBS screen.
It can be updated/revised to use an App Access Token if the intent is to make it work for singular peoples. But each streamer using the script (in just obs) would need their own Twitch ClientID/secret.
TLDR: the script needs to be changed to talk to a backend server, and the backend server handles authentication and calling the API
Thank you a lot for the reply and clarifying. As of right now i see that Twitch extensions like FFZ still show the uptime for any stream, without the need to have each individual Twitch ClientID. Would it possible to have something similar in a browser format?
FFZ is a client-Side application that runs in the context of the Twitch Website thanks to how modern Browser Extensions work. This allows it to have access to the user’s credentials and act on the user’s behalf without further authentication, effectively giving access to all data the twitch page itself has access to.
This allows it to poll such information with relative ease, but this is an undocumented (and thus unsupported / may break at any time) approach.
If you want a local solution, you could build a simple script that prompts for an implicit oauth token and uses that to access the api, manually renewing said token once every 2 months when the token expires.