{"id":19983024,"url":"https://github.com/veryfi/veryfi-java","last_synced_at":"2025-05-04T05:32:49.776Z","repository":{"id":42381662,"uuid":"385111906","full_name":"veryfi/veryfi-java","owner":"veryfi","description":"Java module for communicating with the Veryfi OCR API.","archived":false,"fork":false,"pushed_at":"2024-12-23T21:52:13.000Z","size":10089,"stargazers_count":12,"open_issues_count":1,"forks_count":6,"subscribers_count":7,"default_branch":"main","last_synced_at":"2025-04-08T04:34:11.253Z","etag":null,"topics":["api","java","java-library","java-sdk","sdk"],"latest_commit_sha":null,"homepage":"","language":"Java","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/veryfi.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2021-07-12T03:15:47.000Z","updated_at":"2025-02-01T19:47:03.000Z","dependencies_parsed_at":"2023-11-07T17:45:48.971Z","dependency_job_id":"7b5c8b13-5d5c-421e-b4cd-cdc67b9972bc","html_url":"https://github.com/veryfi/veryfi-java","commit_stats":null,"previous_names":[],"tags_count":12,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/veryfi%2Fveryfi-java","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/veryfi%2Fveryfi-java/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/veryfi%2Fveryfi-java/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/veryfi%2Fveryfi-java/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/veryfi","download_url":"https://codeload.github.com/veryfi/veryfi-java/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":252293082,"owners_count":21724960,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["api","java","java-library","java-sdk","sdk"],"created_at":"2024-11-13T04:13:53.850Z","updated_at":"2025-05-04T05:32:49.769Z","avatar_url":"https://github.com/veryfi.png","language":"Java","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003cimg src=\"https://user-images.githubusercontent.com/30125790/212157461-58bdc714-2f89-44c2-8e4d-d42bee74854e.png#gh-dark-mode-only\" width=\"200\"\u003e\n\u003cimg src=\"https://user-images.githubusercontent.com/30125790/212157486-bfd08c5d-9337-4b78-be6f-230dc63838ba.png#gh-light-mode-only\" width=\"200\"\u003e\n\n[![Java - version](https://img.shields.io/badge/OpenJDK-16-red)](https://openjdk.java.net/projects/jdk/16/)\n[![Coverage](.github/badges/jacoco.svg)](https://github.com/veryfi/veryfi-java/actions/workflows/maven.yml)\n[![Publish package to the Maven Central Repository and GitHub Packages](https://github.com/veryfi/veryfi-java/actions/workflows/maven-publish.yml/badge.svg)](https://github.com/veryfi/veryfi-java/actions/workflows/maven-publish.yml)\n\n**veryfi** is a Java module for communicating with the [Veryfi OCR API](https://veryfi.com/api/)\n\n## Installation\n\nInstall from [Maven](https://mvnrepository.com/), a\npackage manager for Java.\n\n\nInstall the package using Maven:\n```bash\n \u003cdependency\u003e\n     \u003cgroupId\u003ecom.veryfi\u003c/groupId\u003e\n     \u003cartifactId\u003everyfi-java\u003c/artifactId\u003e\n     \u003cversion\u003e2.0.0\u003c/version\u003e\n \u003c/dependency\u003e\n```\nInstall the package using Gradle:\n```bash\nimplementation group: 'com.veryfi', name: 'veryfi-java', version: '2.0.0'\n```\n\n## Getting Started\n\n### Obtaining Client ID and user keys\nIf you don't have an account with Veryfi, please go ahead and register here: [https://hub.veryfi.com/signup/api/](https://hub.veryfi.com/signup/api/)\n\n### Java API Client Library\nThe **veryfi** library can be used to communicate with Veryfi API. All available functionality is described here https://veryfi.github.io/veryfi-java/veryfi/Client.html\n\nBelow is the sample script using **veryfi** to OCR and extract data from a document:\n\n```java\nimport veryfi.*;\nimport java.util.Arrays;\nimport java.util.List;\n\npublic class Main {\n    public static void main(String[] args) {\n        String clientId = \"your_client_id\";\n        String clientSecret = \"your_client_secret\";\n        String username = \"your_username\";\n        String apiKey = \"your_password\";\n        Client client = VeryfiClientFactory.createClient(clientId, clientSecret, username, apiKey);\n        List\u003cString\u003e categories = Arrays.asList(\"Advertising \u0026 Marketing\", \"Automotive\");\n        String jsonResponse = client.processDocument(\"example1.jpg\", categories, false, null);\n    }\n}\n``` \n\nUpdate a document\n```java\nimport veryfi.*;\nimport org.json.JSONObject;\n\npublic class Main {\n    public static void main(String[] args) {\n        String clientId = \"your_client_id\";\n        String clientSecret = \"your_client_secret\";\n        String username = \"your_username\";\n        String apiKey = \"your_password\";\n        Client client = VeryfiClientFactory.createClient(clientId, clientSecret, username, apiKey);\n        String documentId = \"your_document_id\";\n        JSONObject parameters = new JSONObject();\n        parameters.put(\"category\", \"Meals \u0026 Entertainment\");\n        parameters.put(\"total\", 11.23);\n        String jsonResponse = client.updateDocument(documentId, parameters);\n    }\n}\n```\n\n\n## Need help?\n\nVisit https://docs.veryfi.com/ to access integration guides and usage notes in the Veryfi API Documentation Portal\n\nIf you run into any issue or need help installing or using the library, please contact support@veryfi.com.\n\nIf you found a bug in this library or would like new features added, then open an issue or pull requests against this repo!\n\nTo learn more about Veryfi visit https://www.veryfi.com/\n\n## Tutorial\n\n\nBelow is an introduction to the Java SDK.\n\n\n[Link to blog post →](https://www.veryfi.com/java/)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fveryfi%2Fveryfi-java","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fveryfi%2Fveryfi-java","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fveryfi%2Fveryfi-java/lists"}