CodeExchangeRequest.Builder

public CodeExchangeRequest.Builder CodeExchangeRequest.Builder(String redirectUri, String code, String clientId, String clientSecret)

Parameters

redirectUri

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

code

OAuth 2.0 code fetched from the previous step.

clientId

Client ID of the application.

clientSecret

Client secret of the application.