public class ConvertApi extends Object
Constructor | Description |
---|---|
ConvertApi(Configuration configuration) |
Initializes new instance of ConvertApi
|
ConvertApi(String appSid,
String appKey) |
Initializes new instance of ConvertApi
|
Modifier and Type | Method | Description |
---|---|---|
List<StoredConvertedResult> |
convertDocument(ConvertDocumentRequest request) |
Converts specified input document to format specified in the convertSettings with specified options
|
com.squareup.okhttp.Call |
convertDocumentAsync(ConvertDocumentRequest request,
ApiCallback<Void> callback) |
Converts specified input document to format specified in the convertSettings with specified options (asynchronously)
|
com.squareup.okhttp.Call |
convertDocumentCall(ConvertDocumentRequest request,
ProgressResponseBody.ProgressListener progressListener,
ProgressRequestBody.ProgressRequestListener progressRequestListener) |
Build call for convertDocument
|
File |
convertDocumentDownload(ConvertDocumentRequest request) |
Converts specified input document to format specified in the convertSettings with specified options and download
|
com.squareup.okhttp.Call |
convertDocumentDownloadAsync(ConvertDocumentRequest request,
ApiCallback<Void> callback) |
Converts specified input document to format specified in the convertSettings with specified options (asynchronously) and download
|
com.squareup.okhttp.Call |
convertDocumentDownloadCall(ConvertDocumentRequest request,
ProgressResponseBody.ProgressListener progressListener,
ProgressRequestBody.ProgressRequestListener progressRequestListener) |
Build call for convertDocumentDownload
|
ApiResponse<File> |
convertDocumentDownloadWithHttpInfo(ConvertDocumentRequest request) |
Converts specified input document to format specified in the convertSettings with specified options and download
|
ApiResponse<List<StoredConvertedResult>> |
convertDocumentWithHttpInfo(ConvertDocumentRequest request) |
Converts specified input document to format specified in the convertSettings with specified options
|
ApiClient |
getApiClient() |
Gets ApiClient
|
void |
setApiClient(ApiClient apiClient) |
Sets ApiClient
|
public ConvertApi(String appSid, String appKey)
appSid
- Application identifier (App SID)appKey
- Application private key (App Key)public ConvertApi(Configuration configuration)
configuration
- Configuration The configurationpublic ApiClient getApiClient()
public void setApiClient(ApiClient apiClient)
apiClient
- The Api clientpublic com.squareup.okhttp.Call convertDocumentCall(ConvertDocumentRequest 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 List<StoredConvertedResult> convertDocument(ConvertDocumentRequest request) throws ApiException
request
- The request modelApiException
- If fail to call the API, e.g. server error or cannot deserialize the response bodypublic ApiResponse<List<StoredConvertedResult>> convertDocumentWithHttpInfo(ConvertDocumentRequest 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 convertDocumentAsync(ConvertDocumentRequest request, ApiCallback<Void> 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 convertDocumentDownloadCall(ConvertDocumentRequest 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 File convertDocumentDownload(ConvertDocumentRequest request) throws ApiException
request
- The request modelApiException
- If fail to call the API, e.g. server error or cannot deserialize the response bodypublic ApiResponse<File> convertDocumentDownloadWithHttpInfo(ConvertDocumentRequest 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 convertDocumentDownloadAsync(ConvertDocumentRequest request, ApiCallback<Void> 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 objectCopyright © 2020. All rights reserved.