public class InfoApi
extends java.lang.Object
Constructor | Description |
---|---|
InfoApi(Configuration configuration) |
Initializes new instance of InfoApi
|
InfoApi(java.lang.String appSid,
java.lang.String appKey) |
Initializes new instance of InfoApi
|
Modifier and Type | Method | Description |
---|---|---|
ApiClient |
getApiClient() |
Gets ApiClient
|
DocumentInfo |
getInfo(GetInfoRequest request) |
Retrieves basic document info - path, extension, formats, size etc
|
com.squareup.okhttp.Call |
getInfoAsync(GetInfoRequest request,
ApiCallback<DocumentInfo> callback) |
Retrieves basic document info - path, extension, formats, size etc (asynchronously)
|
com.squareup.okhttp.Call |
getInfoCall(GetInfoRequest request,
ProgressResponseBody.ProgressListener progressListener,
ProgressRequestBody.ProgressRequestListener progressRequestListener) |
Build call for getInfo
|
ApiResponse<DocumentInfo> |
getInfoWithHttpInfo(GetInfoRequest request) |
Retrieves basic document info - path, extension, formats, size etc
|
FormatsResult |
getSupportedFileFormats() |
Retrieves supported file formats list
|
com.squareup.okhttp.Call |
getSupportedFileFormatsAsync(ApiCallback<FormatsResult> callback) |
Retrieves supported file formats list (asynchronously)
|
com.squareup.okhttp.Call |
getSupportedFileFormatsCall(ProgressResponseBody.ProgressListener progressListener,
ProgressRequestBody.ProgressRequestListener progressRequestListener) |
Build call for getSupportedFileFormats
|
ApiResponse<FormatsResult> |
getSupportedFileFormatsWithHttpInfo() |
Retrieves supported file formats list
|
void |
setApiClient(ApiClient apiClient) |
Sets ApiClient
|
public InfoApi(java.lang.String appSid, java.lang.String appKey)
appSid
- Application identifier (App SID)appKey
- Application private key (App Key)public InfoApi(Configuration configuration)
configuration
- Configuration The configurationpublic ApiClient getApiClient()
public void setApiClient(ApiClient apiClient)
apiClient
- The Api clientpublic com.squareup.okhttp.Call getInfoCall(GetInfoRequest request, ProgressResponseBody.ProgressListener progressListener, ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException
request
- The request modelprogressListener
- Progress listenerprogressRequestListener
- Progress request listenerApiException
- If fail to serialize the request body objectpublic DocumentInfo getInfo(GetInfoRequest request) throws ApiException
request
- The request modelApiException
- If fail to call the API, e.g. server error or cannot deserialize the response bodypublic ApiResponse<DocumentInfo> getInfoWithHttpInfo(GetInfoRequest request) throws ApiException
request
- The request modelApiException
- If fail to call the API, e.g. server error or cannot deserialize the response bodypublic com.squareup.okhttp.Call getInfoAsync(GetInfoRequest request, ApiCallback<DocumentInfo> callback) throws ApiException
request
- The request modelcallback
- The callback to be executed when the API call finishesApiException
- If fail to process the API call, e.g. serializing the request body objectpublic com.squareup.okhttp.Call getSupportedFileFormatsCall(ProgressResponseBody.ProgressListener progressListener, ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException
progressListener
- Progress listenerprogressRequestListener
- Progress request listenerApiException
- If fail to serialize the request body objectpublic FormatsResult getSupportedFileFormats() throws ApiException
ApiException
- If fail to call the API, e.g. server error or cannot deserialize the response bodypublic ApiResponse<FormatsResult> getSupportedFileFormatsWithHttpInfo() throws ApiException
ApiException
- If fail to call the API, e.g. server error or cannot deserialize the response bodypublic com.squareup.okhttp.Call getSupportedFileFormatsAsync(ApiCallback<FormatsResult> 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 © 2022. All rights reserved.