Skip to content

This is the official C# client library for communicating with the Veryfi OCR API. || read: https://veryfi.com/csharp

License

Notifications You must be signed in to change notification settings

veryfi/veryfi-csharp

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

33 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Veryfi C# Client Library

Language License Requirements Requirements Build Status

Veryfi is a C# Client Library for communicating with the Veryfi OCR API

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/

Documentation

OpenAPI 3 Specification

Nuget

NuGet

Install-Package Veryfi

Usage

using Veryfi;

using var client = new HttpClient();
var api = new VeryfiApi("username", "apiKey", "clientId", client);

// Get Documents
var documentsResponse = await api.DocumentsAsync();

// Process Document URL.
var documentResponse = await api.Documents2Async(
    new DocumentPOSTJSONRequest
    {
        File_url = url
    });

// Process Document Base64
var documentResponse = await api.Documents2Async(
    new DocumentPOSTJSONRequest
    {
        File_name = file.FileName,
        File_data = Convert.ToBase64String(file.AsBytes())
    });

Live Example

C# .NET Fiddle - https://dotnetfiddle.net/voU3yG
VB.NET .NET Fiddle - https://dotnetfiddle.net/4B8z6n

Developers

The code is generated using https://github.com/RicoSuter/NSwag
NuGet packages are released and versioned automatically. Any commit with the feat:/fix:/perf: prefix will release a new version of the package (according to https://www.conventionalcommits.org/en/v1.0.0/).

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/