public class AnnotateApi extends Object
| Constructor | Description |
|---|---|
AnnotateApi(Configuration configuration) |
Initializes new instance of AnnotateApi
|
AnnotateApi(String appSid,
String appKey) |
Initializes new instance of AnnotateApi
|
| Modifier and Type | Method | Description |
|---|---|---|
AnnotationApiLink |
annotate(AnnotateRequest request) |
Adds annotations to document and saves output file into cloud storage
|
com.squareup.okhttp.Call |
annotateAsync(AnnotateRequest request,
ApiCallback<AnnotationApiLink> callback) |
Adds annotations to document and saves output file into cloud storage (asynchronously)
|
com.squareup.okhttp.Call |
annotateCall(AnnotateRequest request,
ProgressResponseBody.ProgressListener progressListener,
ProgressRequestBody.ProgressRequestListener progressRequestListener) |
Build call for annotate
|
File |
annotateDirect(AnnotateDirectRequest request) |
Adds annotations to document and returns output file
|
com.squareup.okhttp.Call |
annotateDirectAsync(AnnotateDirectRequest request,
ApiCallback<File> callback) |
Adds annotations to document and returns output file (asynchronously)
|
com.squareup.okhttp.Call |
annotateDirectCall(AnnotateDirectRequest request,
ProgressResponseBody.ProgressListener progressListener,
ProgressRequestBody.ProgressRequestListener progressRequestListener) |
Build call for annotateDirect
|
ApiResponse<File> |
annotateDirectWithHttpInfo(AnnotateDirectRequest request) |
Adds annotations to document and returns output file
|
ApiResponse<AnnotationApiLink> |
annotateWithHttpInfo(AnnotateRequest request) |
Adds annotations to document and saves output file into cloud storage
|
List<AnnotationInfo> |
extract(ExtractRequest request) |
Extracts annotations from document
|
com.squareup.okhttp.Call |
extractAsync(ExtractRequest request,
ApiCallback<List<AnnotationInfo>> callback) |
Extracts annotations from document (asynchronously)
|
com.squareup.okhttp.Call |
extractCall(ExtractRequest request,
ProgressResponseBody.ProgressListener progressListener,
ProgressRequestBody.ProgressRequestListener progressRequestListener) |
Build call for extract
|
ApiResponse<List<AnnotationInfo>> |
extractWithHttpInfo(ExtractRequest request) |
Extracts annotations from document
|
ApiClient |
getApiClient() |
Gets ApiClient
|
AnnotationApiLink |
removeAnnotations(RemoveAnnotationsRequest request) |
Removes annotations from document
|
com.squareup.okhttp.Call |
removeAnnotationsAsync(RemoveAnnotationsRequest request,
ApiCallback<AnnotationApiLink> callback) |
Removes annotations from document (asynchronously)
|
com.squareup.okhttp.Call |
removeAnnotationsCall(RemoveAnnotationsRequest request,
ProgressResponseBody.ProgressListener progressListener,
ProgressRequestBody.ProgressRequestListener progressRequestListener) |
Build call for removeAnnotations
|
ApiResponse<AnnotationApiLink> |
removeAnnotationsWithHttpInfo(RemoveAnnotationsRequest request) |
Removes annotations from document
|
void |
setApiClient(ApiClient apiClient) |
Sets ApiClient
|
public AnnotateApi(String appSid, String appKey)
appSid - Application identifier (App SID)appKey - Application private key (App Key)public AnnotateApi(Configuration configuration)
configuration - Configuration The configurationpublic ApiClient getApiClient()
public void setApiClient(ApiClient apiClient)
apiClient - The Api clientpublic com.squareup.okhttp.Call annotateCall(AnnotateRequest 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 AnnotationApiLink annotate(AnnotateRequest request) throws ApiException
request - The request modelApiException - If fail to call the API, e.g. server error or cannot deserialize the response bodypublic ApiResponse<AnnotationApiLink> annotateWithHttpInfo(AnnotateRequest 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 annotateAsync(AnnotateRequest request, ApiCallback<AnnotationApiLink> 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 annotateDirectCall(AnnotateDirectRequest 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 annotateDirect(AnnotateDirectRequest 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> annotateDirectWithHttpInfo(AnnotateDirectRequest 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 annotateDirectAsync(AnnotateDirectRequest 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 extractCall(ExtractRequest 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<AnnotationInfo> extract(ExtractRequest 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<AnnotationInfo>> extractWithHttpInfo(ExtractRequest 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 extractAsync(ExtractRequest request, ApiCallback<List<AnnotationInfo>> 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 removeAnnotationsCall(RemoveAnnotationsRequest 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 AnnotationApiLink removeAnnotations(RemoveAnnotationsRequest request) throws ApiException
request - The request modelApiException - If fail to call the API, e.g. server error or cannot deserialize the response bodypublic ApiResponse<AnnotationApiLink> removeAnnotationsWithHttpInfo(RemoveAnnotationsRequest 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 removeAnnotationsAsync(RemoveAnnotationsRequest request, ApiCallback<AnnotationApiLink> 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.