Skip to content

Instantly share code, notes, and snippets.

@Alqueraf
Created August 26, 2020 16:57
Show Gist options
  • Save Alqueraf/d548df22924379395e4e3cda3a3bbff9 to your computer and use it in GitHub Desktop.
Save Alqueraf/d548df22924379395e4e3cda3a3bbff9 to your computer and use it in GitHub Desktop.
OAuth Refresh Token Request.kt
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