Created
August 26, 2020 16:57
-
-
Save Alqueraf/d548df22924379395e4e3cda3a3bbff9 to your computer and use it in GitHub Desktop.
OAuth Refresh Token Request.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
val response = createNetworkClient().post<OAuthAccessTokenResponse>("https://id.twitch.tv/oauth2/token") { | |
parameter("client_id", clientID) | |
parameter("client_secret", clientSecret) | |
parameter("refresh_token", refreshToken) | |
parameter("grant_type", "refresh_token") | |
} | |
Log.d("OAuth", "Access Token: ${response.accessToken}. Refresh Token: ${response.refreshToken}") |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment