Client

interface Client

Client class to make async calls to Veryfi API.

Functions

connect
Link copied to clipboard
abstract fun connect(httpConnection: HttpURLConnection): BufferedReader

connect to URL

deleteDocument
Link copied to clipboard
abstract fun deleteDocument(documentId: String, onSuccess: (String) -> Unit, onError: (String) -> Unit)

Delete Document from Veryfi

getDocument
Link copied to clipboard
abstract fun getDocument(documentId: String, onSuccess: (String) -> Unit, onError: (String) -> Unit)

Returns a json string String document information

getDocuments
Link copied to clipboard
abstract fun getDocuments(getQuery: GetQuery? = null, onSuccess: (String) -> Unit, onError: (String) -> Unit)

Returns a json string String list of documents.

processDocument
Link copied to clipboard
abstract fun processDocument(fileStream: InputStream, fileName: String, categories: List<String>, deleteAfterProcessing: Boolean, parameters: JSONObject?, onSuccess: (String) -> Unit, onError: (String) -> Unit)

Process a document and extract all the fields from it

processDocumentUrl
Link copied to clipboard
abstract fun processDocumentUrl(fileUrl: String, fileUrls: List<String>?, categories: List<String>?, deleteAfterProcessing: Boolean, maxPagesToProcess: Int, boostMode: Boolean, externalId: String?, parameters: JSONObject?, onSuccess: (String) -> Unit, onError: (String) -> Unit)

Process Document from url and extract all the fields from it.

updateDocument
Link copied to clipboard
abstract fun updateDocument(documentId: String, parameters: JSONObject, onSuccess: (String) -> Unit, onError: (String) -> Unit)

Update data for a previously processed document, including almost any field like vendor, date, notes and etc.

Inheritors

ClientImpl
Link copied to clipboard