ClientImpl

open class ClientImpl(clientData: ClientData) : Client

Types

Companion
Link copied to clipboard
object Companion

Functions

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

connect to URL

deleteDocument
Link copied to clipboard
open override fun deleteDocument(documentId: String, @MainThread onSuccess: (String) -> Unit, @MainThread onError: (String) -> Unit)

Delete Document from Veryfi

getDocument
Link copied to clipboard
open override fun getDocument(documentId: String, @MainThread onSuccess: (String) -> Unit, @MainThread onError: (String) -> Unit)

Returns a json string String document information

getDocuments
Link copied to clipboard
open override fun getDocuments(getQuery: GetQuery?, @MainThread onSuccess: (String) -> Unit, @MainThread onError: (String) -> Unit)

Returns a json string String list of documents.

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

Process a document and extract all the fields from it

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

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

updateDocument
Link copied to clipboard
open override fun updateDocument(documentId: String, parameters: JSONObject, @MainThread onSuccess: (String) -> Unit, @MainThread onError: (String) -> Unit)

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