I have been recently reading about the Twitch API reference to figure out getting channel ids by username, but have no idea how to use it. https://api.twitch.tv/helix/users is the link where I was sending my params.
URL = "https://api.twitch.tv/helix/users"
channelName = {'OAuth': os.environ["Oauth"]}
r = requests.get(url=URL, params=channelName)
print(r.text)
Message:
{"error":"Unauthorized","status":401,"message":"OAuth token is missing"}
I provided the token so I don't know where I went wrong. Any ideas?