public final class OAuthAuthorizationController extends BaseController
GLOBAL_ERROR_CASES| Constructor and Description |
|---|
OAuthAuthorizationController(io.apimatic.core.GlobalConfiguration globalConfig)
Initializes the controller.
|
| Modifier and Type | Method and Description |
|---|---|
ApiResponse<OAuthToken> |
requestToken(RequestTokenInput input,
Map<String,Object> fieldParameters)
Create a new OAuth 2 token.
|
CompletableFuture<ApiResponse<OAuthToken>> |
requestTokenAsync(RequestTokenInput input,
Map<String,Object> fieldParameters)
Create a new OAuth 2 token.
|
getClientInstance, getGlobalConfiguration, getHttpCallbackpublic OAuthAuthorizationController(io.apimatic.core.GlobalConfiguration globalConfig)
globalConfig - Configurations added in client.public ApiResponse<OAuthToken> requestToken(RequestTokenInput input, Map<String,Object> fieldParameters) throws ApiException, IOException
input - RequestTokenInput object containing request parametersfieldParameters - Additional optional form parameters are supported by this endpointApiException - Represents error response from the server.IOException - Signals that an I/O exception of some sort has occurred.public CompletableFuture<ApiResponse<OAuthToken>> requestTokenAsync(RequestTokenInput input, Map<String,Object> fieldParameters)
input - RequestTokenInput object containing request parametersfieldParameters - Additional optional form parameters are supported by this endpointCopyright © 2025. All rights reserved.