Does anyone have an example of the authentication process in Python using the requests module rather than curl? I’m having trouble. I’m relatively new to coding so I might be making a simple mistake.
I’m able to get a 200 Response but I’m not getting the clips:edit scope
class TwitchBot():
def __init__(self):
self.headers = {
'client_id': config.twitch_id,
'redirect_uri': 'http://localhost',
'response_type': 'token',
'scope': 'clips:edit'
}
def clips(self):
url = 'https://id.twitch.tv/oauth2/authorize'
response = requests.get(url, params=self.headers)
print(response)
x=TwitchBot()
x.clips()