[Solved] Way to get the client_credential?

I did this:

POST https://id.twitch.tv/oauth2/token
    ?client_id=<your client ID>
    &client_secret=<your client secret>
    &grant_type=client_credentials
    &scope=<space-separated list of scopes>

I filled in this client ID and the client secret from the value I obtain from the dev Dashboard. This is supposed to give me a json formatted data containing access token, so
what I do is to

Token = requests.post('https://id.twitch.tv/oauth2/token
    ?client_id=<your client ID>
    &client_secret=<your client secret>
    &grant_type=client_credentials
    &scope=<space-separated list of scopes>').json()['access_token']

And this just gives me an error, because the response to this post is ‘404 error’
Can you let me know anything that I should do differently?
Thank you.

I think my json package has a problem, it takes the client_secret into different key for some reason. Thx guys

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.