getaccessToken( api_data is empty)

I want getaccessToken

result is api_data empty
code:
https://id.twitch.tv/oauth2/token?client_id=kibma1m0y8vlyqal82yn8f2exsknrs&client_secret=REMOVED&code=REMOVE&grant_type=authorization_code&redirect_uri=http%3A%2F%2Flocalhost%2Feasycodeis_includes%2Flogin.php

Admin: removed leaked client secret

Please do not leak your client secret, it’s a violation of the developer agreement and considered a password.

Do you have any code you are using? Just a URL doesn’t tell us much

Seems “correct”

So you’ll need to add some error catching/testing the HTTP response/status code

For a user access token my PHP example might help

is the relevant snippet for converting a code to an access token

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