Builder

public final class Builder

A builder for creating a TokenExchangeRequest.

Parameters

redirectUri

Should match the same redirect URI that was used for getting the code during the initial authorization request.

refreshToken

Token to refresh/request your short-lived access token

clientId

Client ID of the application.

Constructors

Link copied to clipboard
public TokenExchangeRequest.Builder TokenExchangeRequest.Builder(String redirectUri, String refreshToken, String clientId)

Functions

Link copied to clipboard
Link copied to clipboard
public final TokenExchangeRequest.Builder clientSecret(String clientSecret)

Set the client secret. If not provided, the API Key will be used instead.