public final class DefaultMobileAuthorizationApi extends BaseApi implements MobileAuthorizationApi
AUTHENTICATION_KEY, GLOBAL_ERROR_CASES| Constructor and Description |
|---|
DefaultMobileAuthorizationApi(io.apimatic.core.GlobalConfiguration globalConfig)
Initializes the controller.
|
| Modifier and Type | Method and Description |
|---|---|
CreateMobileAuthorizationCodeResponse |
createMobileAuthorizationCode(CreateMobileAuthorizationCodeRequest body)
Generates code to authorize a mobile application to connect to a Square card reader.
|
CompletableFuture<CreateMobileAuthorizationCodeResponse> |
createMobileAuthorizationCodeAsync(CreateMobileAuthorizationCodeRequest body)
Generates code to authorize a mobile application to connect to a Square card reader.
|
getClientInstance, getGlobalConfiguration, getHttpCallbackpublic DefaultMobileAuthorizationApi(io.apimatic.core.GlobalConfiguration globalConfig)
globalConfig - Configurations added in client.public CreateMobileAuthorizationCodeResponse createMobileAuthorizationCode(CreateMobileAuthorizationCodeRequest body) throws ApiException, IOException
createMobileAuthorizationCode in interface MobileAuthorizationApibody - Required parameter: An object containing the fields to POST for the request.
See the corresponding object definition for field details.ApiException - Represents error response from the server.IOException - Signals that an I/O exception of some sort has occurred.public CompletableFuture<CreateMobileAuthorizationCodeResponse> createMobileAuthorizationCodeAsync(CreateMobileAuthorizationCodeRequest body)
createMobileAuthorizationCodeAsync in interface MobileAuthorizationApibody - Required parameter: An object containing the fields to POST for the request.
See the corresponding object definition for field details.Copyright © 2024. All rights reserved.