public class AnnotateApi
extends java.lang.Object
Constructor | Description |
---|---|
AnnotateApi(Configuration configuration) |
Initializes new instance of AnnotateApi
|
AnnotateApi(java.lang.String appSid,
java.lang.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
|
java.io.File |
annotateDirect(AnnotateDirectRequest request) |
Adds annotations to document and returns output file
|
com.squareup.okhttp.Call |
annotateDirectAsync(AnnotateDirectRequest request,
ApiCallback<java.io.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<java.io.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
|
java.util.List<AnnotationInfo> |
extract(ExtractRequest request) |
Extracts annotations from document
|
com.squareup.okhttp.Call |
extractAsync(ExtractRequest request,
ApiCallback<java.util.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<java.util.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(java.lang.String appSid, java.lang.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 java.io.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<java.io.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<java.io.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 java.util.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<java.util.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<java.util.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 © 2022. All rights reserved.