Hi Everyone,
I am trying to connect to the API in order to download the URL dataset but I am having a 400 Error code Missing client_id when trying to get the oauth token via the OAuth implicit code flow
I have been following this guide:
Below is my jupyter notebook piece of code:
base_url_oauth2="https://id.twitch.tv/oauth2/authorize"
# Passed to authorization endpoints to identify your application. You cannot change your application's client id.
client_id="t0184f9yh7tggfci41gx75g14siu2y"
# Passed to the token exchange endpoints to obtain a token. You must keep this confidential.
redirect_uri="http://localhost"
response_type="code"
scope="analytics:read:extensions"
headers={"client_id":client_id, "redirect_uri":redirect_uri,"response_type":response_type,"scope":scope,}
# params={"redirect_uri":redirect_uri,"response_type":response_type,"scope":scope,"client_id":client_id}
response=requests.get(base_url_oauth2,headers=headers)
response.json()
Thanks for your help,
Kim