Closed jw0711qt closed 4 years ago
@jw0711qt A number of things to fix: 1) If we're trying to search by game, the url should be an f-string 'https://api.twitch.tv/helix/streams?game_id={game_id}'
2) make sure your environment variables are all uppercase like everyone else's code (i.e. 'CLIENT_ID')
3) It should be a get request with the Twitch API, not a post. (Youssef's and mine are post because we're using the IGDB API)
4) You should return the json response instead of True/False so we can retrieve the streamers and search for their URL in a separate function
@haselfine @YoussefMIbrahim @cjdufault
I did get current streamer from twitch please check my codes.