{"id":19982952,"url":"https://github.com/veryfi/veryfi-swift","last_synced_at":"2025-07-24T09:35:09.712Z","repository":{"id":42125302,"uuid":"389741545","full_name":"veryfi/veryfi-swift","owner":"veryfi","description":"Swift framework for communicating with the Veryfi OCR API","archived":false,"fork":false,"pushed_at":"2023-11-07T16:41:03.000Z","size":2686,"stargazers_count":9,"open_issues_count":0,"forks_count":1,"subscribers_count":6,"default_branch":"master","last_synced_at":"2024-04-21T03:56:23.007Z","etag":null,"topics":["invoice","invoice-parser","ios","ios-swift","mobile","ocr","ocr-library","receipt","receipt-capture","sdk","sdk-swift","swift"],"latest_commit_sha":null,"homepage":"","language":"Swift","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"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":null,"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-26T19:08:04.000Z","updated_at":"2023-05-04T01:48:22.000Z","dependencies_parsed_at":"2024-10-25T23:56:01.867Z","dependency_job_id":"b5fabc1d-eb0a-49de-999a-98ecc4f599d8","html_url":"https://github.com/veryfi/veryfi-swift","commit_stats":null,"previous_names":[],"tags_count":3,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/veryfi%2Fveryfi-swift","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/veryfi%2Fveryfi-swift/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/veryfi%2Fveryfi-swift/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/veryfi%2Fveryfi-swift/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/veryfi","download_url":"https://codeload.github.com/veryfi/veryfi-swift/tar.gz/refs/heads/master","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":["invoice","invoice-parser","ios","ios-swift","mobile","ocr","ocr-library","receipt","receipt-capture","sdk","sdk-swift","swift"],"created_at":"2024-11-13T04:13:41.727Z","updated_at":"2025-05-04T05:32:36.384Z","avatar_url":"https://github.com/veryfi.png","language":"Swift","funding_links":[],"categories":[],"sub_categories":[],"readme":"\n\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![Swift 5.3](https://img.shields.io/badge/Swift-5.3-orange.svg?style=flat)\n[![code coverage](.github/metrics/code_coverage.svg)](.github/metrics/code_coverage.svg)\n[![License: MIT](https://img.shields.io/badge/License-MIT-green.svg)](https://opensource.org/licenses/MIT)\n\n## Installation\nInstall from Swift Package Manager, using this repository as the url.\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 Swift Client Library\nThe **veryfi** library can be used to communicate with Veryfi API. All available functionality is described [here](https://veryfi.github.io/veryfi-swift/documentation/veryfisdk/).\n\nBelow is the sample Swift code using **veryfi** to OCR and extract data from a document:\n\n#### Process a document\n```swift\nimport UIKit\nimport VeryfiSDK\n\nclass ViewController: UIViewController {\n    \n    let clientId = \"your_client_id\"\n    let clientSecret = \"your_client_secret\"\n    let username = \"your_username\"\n    let apiKey = \"your_password\"\n    \n    override func viewDidLoad() {\n        super.viewDidLoad()\n        let client = Client(clientId: clientId, clientSecret: clientSecret, username: username, apiKey: apiKey)\n        let file = \"receipt\"\n        let url = Bundle(for: Self.self).url(forResource: file, withExtension: \"jpeg\")!\n        let fileData = try? Data(contentsOf: url)\n        client.processDocument(fileName: file, fileData: fileData!) { result in\n            switch result {\n            case .success(let data):\n                print(\"Succeded\")\n            case .failure(let error):\n                print(\"Error\")\n            }\n        }\n    }\n}\n```\n\n#### Update a document\n```swift\nimport UIKit\nimport VeryfiSDK\n\nclass ViewController: UIViewController {\n    \n    let clientId = \"your_client_id\"\n    let clientSecret = \"your_client_secret\"\n    let username = \"your_username\"\n    let apiKey = \"your_password\"\n    \n    override func viewDidLoad() {\n        super.viewDidLoad()\n        let client = Client(clientId: clientId, clientSecret: clientSecret, username: username, apiKey: apiKey)\n        let documentId = \"your_document_id\"\n        var parameters = [String : Any]()\n        parameters[\"category\"] = \"Meals \u0026 Entertainment\"\n        parameters[\"total\"] =  11.23\n        client.updateDocument(documentId: documentId, params: parameters) { result in\n            switch result {\n            case .success(let data):\n                print(\"Succeded\")\n            case .failure(let error):\n                print(\"Error\")\n            }\n        }\n    }\n}\n```\n\n## Release\n1. Create new branch for your code\n2. Change version in `Constants.swift`\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 Swift Package Manager\n\n## Need help?\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","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fveryfi%2Fveryfi-swift","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fveryfi%2Fveryfi-swift","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fveryfi%2Fveryfi-swift/lists"}