When trying to get the access token I’m always running into that Bad Request 400 error. I’m not really sure what the grant_type is.
POST https://api.twitch.tv/kraken/oauth2/token POST Body (URL-encoded) client_id=<your client ID> &client_secret=<your client secret> &grant_type=authorization_code &redirect_uri=<your registered redirect URI> &code=<authorization code received above>
I do have the client id, the client secret, the redirect uri and the code. I tried using the code that I get from my redirect uri for the grant_type but it always gives me the bad request error. I also tried the oauth key but it didnt work. I really dont know what key to use and I hope somone can help me out.
Thank you in advance.