{"id":13550920,"url":"https://github.com/veryfi/veryfi-dart","last_synced_at":"2025-05-04T05:32:34.333Z","repository":{"id":42010627,"uuid":"475638724","full_name":"veryfi/veryfi-dart","owner":"veryfi","description":"Dart module for communicating with the Veryfi OCR API","archived":false,"fork":false,"pushed_at":"2023-03-16T15:14:16.000Z","size":2579,"stargazers_count":7,"open_issues_count":0,"forks_count":1,"subscribers_count":5,"default_branch":"main","last_synced_at":"2025-04-08T04:33:42.180Z","etag":null,"topics":["api","cstyle","dart","dart-library","dart-sdk","dart-sdks","dartlang","sdk"],"latest_commit_sha":null,"homepage":"","language":"Dart","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":"CHANGELOG.md","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}},"created_at":"2022-03-29T22:26:30.000Z","updated_at":"2025-02-01T19:46:59.000Z","dependencies_parsed_at":"2024-03-17T00:06:58.171Z","dependency_job_id":null,"html_url":"https://github.com/veryfi/veryfi-dart","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/veryfi%2Fveryfi-dart","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/veryfi%2Fveryfi-dart/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/veryfi%2Fveryfi-dart/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/veryfi%2Fveryfi-dart/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/veryfi","download_url":"https://codeload.github.com/veryfi/veryfi-dart/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","cstyle","dart","dart-library","dart-sdk","dart-sdks","dartlang","sdk"],"created_at":"2024-08-01T12:01:39.547Z","updated_at":"2025-05-04T05:32:33.022Z","avatar_url":"https://github.com/veryfi.png","language":"Dart","funding_links":[],"categories":["Dart"],"sub_categories":[],"readme":"\u003cimg src=\"https://user-images.githubusercontent.com/30441118/212185646-f96d2e4c-daf4-4286-8f1b-c92058224b87.png#gh-dark-mode-only\" width=\"200\"\u003e\n\u003cimg src=\"https://user-images.githubusercontent.com/30441118/212185644-ab61c399-0f0c-4d22-a361-0191632d63d2.png#gh-light-mode-only\" width=\"200\"\u003e\n\n![Dart 2.16](https://img.shields.io/badge/Dart-2.16-orange.svg?style=flat)\n[![code coverage](https://raw.githubusercontent.com/veryfi/veryfi-dart/main/.github/metrics/code_coverage.svg)](https://raw.githubusercontent.com/veryfi/veryfi-dart/main/.github/metrics/code_coverage.svg)\n[![License: MIT](https://img.shields.io/badge/License-MIT-green.svg)](https://opensource.org/licenses/MIT)\n\nDart module for communicating with the Veryfi OCR API\n\n## Installation\nInstall from https://pub.dev/packages/veryfi_dart\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### Veryfi Dart Client Library\nThe **veryfi** library can be used to communicate with Veryfi API. All available functionality is described here: https://veryfi.github.io/veryfi-dart/\n\nBelow is the sample Dart code using **veryfi** to OCR and extract data from a document:\n\n#### Import package:\n```dart\nimport 'package:veryfi_dart/veryfi_dart.dart';\n```\n\n#### Process a document from file\n```dart\nFuture\u003cvoid\u003e processDocument() async {\n    String fileName = 'receipt.jpg';\n    File file = File(fileName);\n    Uint8List imageData = file.readAsBytesSync();\n    String fileData = base64Encode(imageData);\n    VeryfiDart client = VeryfiDart(\n        'yourClientId', 'yourClientSecret', 'yourUsername', 'yourApiKey');\n\n    await client.processDocument(fileName, fileData).then(\n      (response) {\n        print('success');\n      },\n    ).catchError((error) {\n      print('error');\n    });\n}\n```\n\n#### Update a document\n```dart\nFuture\u003cvoid\u003e updateDocument() async {\n    VeryfiDart client = VeryfiDart(\n        'yourClientId', 'yourClientSecret', 'yourUsername', 'yourApiKey');\n    final Map\u003cString, dynamic\u003e params = {'notes': 'Test'};\n    await client.updateDocument('123', params).then(\n      (response) {\n        print('success');\n      },\n    ).catchError((error) {\n      print('error');\n    });\n}\n```\n\n## Release\n1. Create new branch for your code\n2. Change version in `constants.dart` and `pubspec.yaml` with the same version.\n3. Commit changes and push to Github\n4. Create PR pointing to master branch and add a Veryfi member as a reviewer\n5. Tag your commit with the new version\n6. The new version will be accesible through Pub Dev.\n\n## Need help?\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","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fveryfi%2Fveryfi-dart","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fveryfi%2Fveryfi-dart","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fveryfi%2Fveryfi-dart/lists"}