public class PreviewApi
extends java.lang.Object
Constructor | Description |
---|---|
PreviewApi(Configuration configuration) |
Initializes new instance of PreviewApi
|
PreviewApi(java.lang.String appSid,
java.lang.String appKey) |
Initializes new instance of PreviewApi
|
Modifier and Type | Method | Description |
---|---|---|
ApiClient |
getApiClient() |
Gets ApiClient
|
PreviewResult |
previewDocument(PreviewDocumentRequest request) |
Creates document preview images
|
com.squareup.okhttp.Call |
previewDocumentAsync(PreviewDocumentRequest request,
ApiCallback<PreviewResult> callback) |
Creates document preview images (asynchronously)
|
com.squareup.okhttp.Call |
previewDocumentCall(PreviewDocumentRequest request,
ProgressResponseBody.ProgressListener progressListener,
ProgressRequestBody.ProgressRequestListener progressRequestListener) |
Build call for previewDocument
|
ApiResponse<PreviewResult> |
previewDocumentWithHttpInfo(PreviewDocumentRequest request) |
Creates document preview images
|
void |
setApiClient(ApiClient apiClient) |
Sets ApiClient
|
public PreviewApi(java.lang.String appSid, java.lang.String appKey)
appSid
- Application identifier (App SID)appKey
- Application private key (App Key)public PreviewApi(Configuration configuration)
configuration
- Configuration The configurationpublic ApiClient getApiClient()
public void setApiClient(ApiClient apiClient)
apiClient
- The Api clientpublic com.squareup.okhttp.Call previewDocumentCall(PreviewDocumentRequest 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 PreviewResult previewDocument(PreviewDocumentRequest request) throws ApiException
request
- The request modelApiException
- If fail to call the API, e.g. server error or cannot deserialize the response bodypublic ApiResponse<PreviewResult> previewDocumentWithHttpInfo(PreviewDocumentRequest 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 previewDocumentAsync(PreviewDocumentRequest request, ApiCallback<PreviewResult> 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 © 2021. All rights reserved.