Hello, I have a twitch bot programmed in python. I want to use the Twitch API to check if the user who sent the command follows my channel. I’ve created this function to retrieve the followers, but the request only returns the total count of followers, de data object is empty:
Researching a bit, I see that I need a User token to get that information. In the documentation found how to get a user token by grant flow using a link, and I’ve created this function:
if this occurs after hitting [accept] on the oAuth dialog.
this indicates that your redirect URI leads to a server that is not running.
Using code flow auth expects a server to be running at the stated redirect URI in order to capture the code and then exchange the code for a user access and refresh token
Also the user that is logging in needs to be the broadcaster or a moderator for the channel you wish to read the names of…
The redirect URI that I used is “http:localhost/3000”. I justo Locked the url that appears: localhost
Apparently the URI of my code, does not mach with the application registeres, but I already cheched it and its fine
Sorry my mistake. I used http://localhost:3000 in both. The code of my bot is running in my pc. I need upload the bot to a server and run it from there or only need a server to recieve a responses?