New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

com.veryfi:veryfi-kotlin

Package Overview
Dependencies
Maintainers
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

com.veryfi:veryfi-kotlin

Android kotlin module for communicating with the Veryfi OCR API

  • 1.0.8
  • Source
  • Maven
  • Socket score

Version published
Maintainers
1
Source

Java - version Coverage

veryfi is a Kotlin module for communicating with the Veryfi OCR API

Installation

Install from Maven using gradle, a package manager for Kotlin.

Install the package from Maven using gradle:

Gradle using Groovy:

dependencies {
    implementation 'com.veryfi:veryfi-kotlin:1.0.0'
}

Gradle using Koltin:

dependencies {
    implementation("com.veryfi:veryfi-kotlin:1.0.0")
}

Getting Started

Obtaining Client ID and user keys

If you don't have an account with Veryfi, please go ahead and register here: https://hub.veryfi.com/signup/api/

Kotlin API Client Library

The veryfi library can be used to communicate with Veryfi API. All available functionality is described here https://veryfi.github.io/veryfi-kotlin/veryfi/Client.html

Below is the sample script using veryfi to OCR and extract data from a document:

object Main {
    @JvmStatic
    fun main(args: Array<String>) {
        val clientId = "your_client_id"
        val clientSecret = "your_client_secret"
        val username = "your_username"
        val apiKey = "your_password"
        val client = createClient(clientId, clientSecret, username, apiKey)
        val categories = listOf("Advertising & Marketing", "Automotive")
        val jsonResponse = client.processDocument("example1.jpg", categories, false, null)
    }
}

Update a document

object Main {
    @JvmStatic
    fun main(args: Array<String>) {
        val clientId = "your_client_id"
        val clientSecret = "your_client_secret"
        val username = "your_username"
        val apiKey = "your_password"
        val client = createClient(clientId, clientSecret, username, apiKey)
        val documentId = "your_document_id"
        val parameters = JSONObject()
        parameters.put("category", "Meals & Entertainment")
        parameters.put("total", 11.23)
        val jsonResponse = client.updateDocument(documentId, parameters)
    }
}

Need help?

If you run into any issue or need help installing or using the library, please contact support@veryfi.com.

If you found a bug in this library or would like new features added, then open an issue or pull requests against this repo!

To learn more about Veryfi visit https://www.veryfi.com/

Tutorial

Below is an introduction to the Kotlin SDK.

Link to blog post →

FAQs

Package last updated on 29 Mar 2023

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc