Api Communicator
public class ApiCommunicator
Content copied to clipboard
The ApiCommunicator is responsible for communication with the Gini API. It only converts the server's responses to more convenient objects (e.g. a JSON response to a JSONObject) but does not interpret the results in any way. Therefore it is not recommended to use the ApiCommunicator directly, but to use the DocumentTaskManager instead which provides much more convenient methods to work with the Gini API and uses defined models.
Constructors
ApiCommunicator
Link copied to clipboard
void ApiCommunicator(String baseUriString, GiniApiType giniApiType, RequestQueue mRequestQueue, RetryPolicyFactory retryPolicyFactory)
Content copied to clipboard
Types
PreviewSize
Link copied to clipboard
public enum PreviewSize
Content copied to clipboard
Functions
deleteDocument
Link copied to clipboard
errorReportForDocument
Link copied to clipboard
Task<JSONObject> errorReportForDocument(String documentId, @Nullable() String summary, @Nullable() String description, Session session)
Content copied to clipboard
getDocument
Link copied to clipboard
getDocumentList
Link copied to clipboard
getExtractions
Link copied to clipboard
getIncubatorExtractions
Link copied to clipboard
Task<JSONObject> getIncubatorExtractions(String documentId, Session session)
Content copied to clipboard
getLayoutForDocument
Link copied to clipboard
Task<JSONObject> getLayoutForDocument(String documentId, Session session)
Content copied to clipboard
getPageImage
Link copied to clipboard
Task<Array<byte>> getPageImage(@NonNull() String documentId, int pageCount, Session session)
Content copied to clipboard
getPayment
Link copied to clipboard
getPaymentProvider
Link copied to clipboard
getPaymentProviders
Link copied to clipboard
getPaymentRequest
Link copied to clipboard
getPaymentRequests
Link copied to clipboard
getPreview
Link copied to clipboard
Task<Bitmap> getPreview(String documentId, int pageNumber, ApiCommunicator.PreviewSize previewSize, Session session)
Content copied to clipboard
logErrorEvent
Link copied to clipboard
Task<JSONObject> logErrorEvent(@NonNull() JSONObject errorEvent, @NonNull() Session session)
Content copied to clipboard
postPaymentRequests
Link copied to clipboard
resolvePaymentRequests
Link copied to clipboard
Task<JSONObject> resolvePaymentRequests(String id, JSONObject body, Session session)
Content copied to clipboard
searchDocuments
Link copied to clipboard
Task<JSONObject> searchDocuments(String searchTerm, @Nullable() String docType, int offset, int limit, Session session)
Content copied to clipboard
sendFeedback
Link copied to clipboard
Task<JSONObject> sendFeedback(String documentId, JSONObject extractions, Session session)
Content copied to clipboard
Task<JSONObject> sendFeedback(String documentId, JSONObject extractions, JSONObject compoundExtractions, Session session)
Content copied to clipboard
uploadDocument
Link copied to clipboard