BaseApi.RequestExecutor, BaseApi.RequestSupplier, BaseApi.ResponseHandler<T>authManagers, config, httpCallback, internalUserAgent| Constructor and Description |
|---|
DefaultSitesApi(Configuration config,
HttpClient httpClient,
Map<String,AuthManager> authManagers)
Initializes the controller.
|
DefaultSitesApi(Configuration config,
HttpClient httpClient,
Map<String,AuthManager> authManagers,
HttpCallback httpCallback)
Initializes the controller with HTTPCallback.
|
| Modifier and Type | Method and Description |
|---|---|
ListSitesResponse |
listSites()
Lists the Square Online sites that belong to a seller.
|
CompletableFuture<ListSitesResponse> |
listSitesAsync()
Lists the Square Online sites that belong to a seller.
|
getClientInstance, getHttpCallback, makeHttpCallAsync, validateResponsepublic DefaultSitesApi(Configuration config, HttpClient httpClient, Map<String,AuthManager> authManagers)
config - Configurations added in client.httpClient - Send HTTP requests and read the responses.authManagers - Apply authorization to requests.public DefaultSitesApi(Configuration config, HttpClient httpClient, Map<String,AuthManager> authManagers, HttpCallback httpCallback)
config - Configurations added in client.httpClient - Send HTTP requests and read the responses.authManagers - Apply authorization to requests.httpCallback - Callback to be called before and after the HTTP call.public ListSitesResponse listSites() throws ApiException, IOException
listSites in interface SitesApiApiException - Represents error response from the server.IOException - Signals that an I/O exception of some sort has occurred.public CompletableFuture<ListSitesResponse> listSitesAsync()
listSitesAsync in interface SitesApiCopyright © 2022. All rights reserved.