api icon indicating copy to clipboard operation
api copied to clipboard

Add Helix API endpoints for anonymous users

Open RAnders00 opened this issue 5 years ago • 0 comments

Anonymous users of Chatterino will not be able to use certain features of Chatterino, if the underlying API is migrated to the Twitch Helix API: https://github.com/Chatterino/chatterino2/issues/1915

Chatterino currently uses these methods: https://github.com/Chatterino/chatterino2/tree/master/src/providers/twitch/api#helix - "get users", "get user follows", "get streams". And if https://github.com/Chatterino/chatterino2/issues/1928 is implemented, also "get channel" and "get cheeremotes"

The API simply has to provide a forwarder, allowing anybody to make anonymous requests to fetch from these endpoints. The request is then forwarded to Twitch, with an App Access Token used for authentication to be able to access the API.

The modification can then be applied here: https://github.com/Chatterino/chatterino2/blob/c7a2f4cc929681662e3ff0cf7e8d8e2f872039cf/src/providers/twitch/api/Helix.cpp#L335

RAnders00 avatar Sep 11 '20 12:09 RAnders00