Definition
exchangeCode(clientId, clientSecret, code, redirectUri)
asyncGets an access token with your client credentials and an authorization code.
Parameter | Type | Required | Default | Description |
---|---|---|---|---|
clientId | string | none | The client ID of your application. | |
clientSecret | string | none | The client secret of your application. | |
code | string | none | The authorization code. | |
redirectUri | string | none | The redirect URI. This serves no real purpose here, but must still match one of the redirect URIs you configured in the Twitch Developer dashboard. |
Return type: AccessToken