TokenExchangeRequest

public final class TokenExchangeRequest

Class representation of a Nylas token exchange request

Constructors

Link copied to clipboard
public TokenExchangeRequest TokenExchangeRequest(@Json(name = "redirect_uri") String redirectUri, @Json(name = "refresh_token") String refreshToken, @Json(name = "client_id") String clientId, @Json(name = "client_secret") String clientSecret)

Types

Link copied to clipboard
public final class Builder

A builder for creating a TokenExchangeRequest.

Properties

Link copied to clipboard
private String clientId

Client ID of the application.

Link copied to clipboard

Client secret of the application.

Link copied to clipboard
private final String redirectUri

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

Link copied to clipboard
private final String refreshToken

Token to refresh/request your short-lived access token

Functions

Link copied to clipboard
public final String getClientId()

Client ID of the application.

Link copied to clipboard
public final String getClientSecret()

Client secret of the application.

Link copied to clipboard
public final String getRedirectUri()

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

Link copied to clipboard
public final String getRefreshToken()

Token to refresh/request your short-lived access token

Link copied to clipboard
public final Unit setClientId(String clientId)

Client ID of the application.

Link copied to clipboard
public final Unit setClientSecret(String clientSecret)

Client secret of the application.