public class ViewApi extends Object
| Constructor | Description |
|---|---|
ViewApi(Configuration configuration) |
Initializes new instance of ViewApi
|
ViewApi(String appSid,
String appKey) |
Initializes new instance of ViewApi
|
| Modifier and Type | Method | Description |
|---|---|---|
File |
convertAndDownload(ConvertAndDownloadRequest request) |
Converts input document file to format specified
|
com.squareup.okhttp.Call |
convertAndDownloadAsync(ConvertAndDownloadRequest request,
ApiCallback<File> callback) |
Converts input document file to format specified (asynchronously)
|
com.squareup.okhttp.Call |
convertAndDownloadCall(ConvertAndDownloadRequest request,
ProgressResponseBody.ProgressListener progressListener,
ProgressRequestBody.ProgressRequestListener progressRequestListener) |
Build call for convertAndDownload
|
ApiResponse<File> |
convertAndDownloadWithHttpInfo(ConvertAndDownloadRequest request) |
Converts input document file to format specified
|
ViewResult |
createView(CreateViewRequest request) |
Render document pages
|
com.squareup.okhttp.Call |
createViewAsync(CreateViewRequest request,
ApiCallback<ViewResult> callback) |
Render document pages (asynchronously)
|
com.squareup.okhttp.Call |
createViewCall(CreateViewRequest request,
ProgressResponseBody.ProgressListener progressListener,
ProgressRequestBody.ProgressRequestListener progressRequestListener) |
Build call for createView
|
ApiResponse<ViewResult> |
createViewWithHttpInfo(CreateViewRequest request) |
Render document pages
|
void |
deleteView(DeleteViewRequest request) |
Delete rendered pages
|
com.squareup.okhttp.Call |
deleteViewAsync(DeleteViewRequest request,
ApiCallback<Void> callback) |
Delete rendered pages (asynchronously)
|
com.squareup.okhttp.Call |
deleteViewCall(DeleteViewRequest request,
ProgressResponseBody.ProgressListener progressListener,
ProgressRequestBody.ProgressRequestListener progressRequestListener) |
Build call for deleteView
|
ApiResponse<Void> |
deleteViewWithHttpInfo(DeleteViewRequest request) |
Delete rendered pages
|
ApiClient |
getApiClient() |
Gets ApiClient
|
void |
setApiClient(ApiClient apiClient) |
Sets ApiClient
|
public ViewApi(String appSid, String appKey)
appSid - Application identifier (App SID)appKey - Application private key (App Key)public ViewApi(Configuration configuration)
configuration - Configuration The configurationpublic ApiClient getApiClient()
public void setApiClient(ApiClient apiClient)
apiClient - The Api clientpublic com.squareup.okhttp.Call convertAndDownloadCall(ConvertAndDownloadRequest 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 convertAndDownload(ConvertAndDownloadRequest 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> convertAndDownloadWithHttpInfo(ConvertAndDownloadRequest 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 convertAndDownloadAsync(ConvertAndDownloadRequest request, ApiCallback<File> 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 createViewCall(CreateViewRequest 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 ViewResult createView(CreateViewRequest request) throws ApiException
request - The request modelApiException - If fail to call the API, e.g. server error or cannot deserialize the response bodypublic ApiResponse<ViewResult> createViewWithHttpInfo(CreateViewRequest 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 createViewAsync(CreateViewRequest request, ApiCallback<ViewResult> 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 deleteViewCall(DeleteViewRequest 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 void deleteView(DeleteViewRequest request) throws ApiException
request - The request modelApiException - If fail to call the API, e.g. server error or cannot deserialize the response bodypublic ApiResponse<Void> deleteViewWithHttpInfo(DeleteViewRequest 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 deleteViewAsync(DeleteViewRequest 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 © 2025. All rights reserved.