public class PreviewApi extends Object
| Constructor | Description |
|---|---|
PreviewApi(Configuration configuration) |
Initializes new instance of PreviewApi
|
PreviewApi(String appSid,
String appKey) |
Initializes new instance of PreviewApi
|
| Modifier and Type | Method | Description |
|---|---|---|
ApiClient |
getApiClient() |
Gets ApiClient
|
PreviewResult |
preview(PreviewRequest request) |
Generates document page preview images.
|
com.squareup.okhttp.Call |
previewAsync(PreviewRequest request,
ApiCallback<PreviewResult> callback) |
Generates document page preview images.
|
com.squareup.okhttp.Call |
previewCall(PreviewRequest request,
ProgressResponseBody.ProgressListener progressListener,
ProgressRequestBody.ProgressRequestListener progressRequestListener) |
Build call for preview
|
ApiResponse<PreviewResult> |
previewWithHttpInfo(PreviewRequest request) |
Generates document page preview images.
|
void |
setApiClient(ApiClient apiClient) |
Sets ApiClient
|
public PreviewApi(String appSid, 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 previewCall(PreviewRequest 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 preview(PreviewRequest 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> previewWithHttpInfo(PreviewRequest 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 previewAsync(PreviewRequest 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 © 2026. All rights reserved.