public class LicenseApi extends Object
| Constructor | Description |
|---|---|
LicenseApi(Configuration configuration) |
Initializes new instance of LicenseApi
|
LicenseApi(String appSid,
String appKey) |
Initializes new instance of LicenseApi
|
| Modifier and Type | Method | Description |
|---|---|---|
ApiClient |
getApiClient() |
Gets ApiClient
|
ConsumptionResult |
getConsumptionCredit() |
Get license consumption
|
com.squareup.okhttp.Call |
getConsumptionCreditAsync(ApiCallback<ConsumptionResult> callback) |
Get license consumption (asynchronously)
|
com.squareup.okhttp.Call |
getConsumptionCreditCall(ProgressResponseBody.ProgressListener progressListener,
ProgressRequestBody.ProgressRequestListener progressRequestListener) |
Build call for getConsumptionCredit
|
ApiResponse<ConsumptionResult> |
getConsumptionCreditWithHttpInfo() |
Get license consumption
|
void |
setApiClient(ApiClient apiClient) |
Sets ApiClient
|
public LicenseApi(String appSid, String appKey)
appSid - Application identifier (App SID)appKey - Application private key (App Key)public LicenseApi(Configuration configuration)
configuration - Configuration The configurationpublic ApiClient getApiClient()
public void setApiClient(ApiClient apiClient)
apiClient - The Api clientpublic com.squareup.okhttp.Call getConsumptionCreditCall(ProgressResponseBody.ProgressListener progressListener, ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException
progressListener - Progress listenerprogressRequestListener - Progress request listenerApiException - If fail to serialize the request body objectpublic ConsumptionResult getConsumptionCredit() throws ApiException
ApiException - If fail to call the API, e.g. server error or cannot deserialize the response bodypublic ApiResponse<ConsumptionResult> getConsumptionCreditWithHttpInfo() throws ApiException
ApiException - If fail to call the API, e.g. server error or cannot deserialize the response bodypublic com.squareup.okhttp.Call getConsumptionCreditAsync(ApiCallback<ConsumptionResult> callback) throws ApiException
callback - The callback to be executed when the API call finishesApiException - If fail to process the API call, e.g. serializing the request body objectCopyright © 2025. All rights reserved.