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
Preview Size
                          
                    Link copied to clipboard
                        public enum PreviewSize
Content copied to clipboard
Functions
delete Document
                          
                    Link copied to clipboard
                        error Report For Document
                          
                    Link copied to clipboard
                        Task<JSONObject> errorReportForDocument(String documentId, @Nullable() String summary, @Nullable() String description, Session session)
Content copied to clipboard
get Document
                          
                    Link copied to clipboard
                        get Document List
                          
                    Link copied to clipboard
                        get Extractions
                          
                    Link copied to clipboard
                        get Incubator Extractions
                          
                    Link copied to clipboard
                        Task<JSONObject> getIncubatorExtractions(String documentId, Session session)
Content copied to clipboard
get Layout For Document
                          
                    Link copied to clipboard
                        Task<JSONObject> getLayoutForDocument(String documentId, Session session)
Content copied to clipboard
get Page Image
                          
                    Link copied to clipboard
                        Task<Array<byte>> getPageImage(@NonNull() String documentId, int pageCount, Session session)
Content copied to clipboard
get Payment
                          
                    Link copied to clipboard
                        get Payment Provider
                          
                    Link copied to clipboard
                        get Payment Providers
                          
                    Link copied to clipboard
                        get Payment Request
                          
                    Link copied to clipboard
                        get Payment Requests
                          
                    Link copied to clipboard
                        get Preview
                          
                    Link copied to clipboard
                        Task<Bitmap> getPreview(String documentId, int pageNumber, ApiCommunicator.PreviewSize previewSize, Session session)
Content copied to clipboard
log Error Event
                          
                    Link copied to clipboard
                        Task<JSONObject> logErrorEvent(@NonNull() JSONObject errorEvent, @NonNull() Session session)
Content copied to clipboard
post Payment Requests
                          
                    Link copied to clipboard
                        resolve Payment Requests
                          
                    Link copied to clipboard
                        Task<JSONObject> resolvePaymentRequests(String id, JSONObject body, Session session)
Content copied to clipboard
search Documents
                          
                    Link copied to clipboard
                        Task<JSONObject> searchDocuments(String searchTerm, @Nullable() String docType, int offset, int limit, Session session)
Content copied to clipboard
send Feedback
                          
                    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
upload Document
                          
                    
                  Link copied to clipboard