Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove v7 #9

Merged
merged 1 commit into from
Apr 8, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
55 changes: 0 additions & 55 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -53,61 +53,6 @@ var documentResponse = await api.Documents2Async(
});
```

## Usage V7

```cs

// Process Base64
var document = await api.ProcessDocumentAsyncV7(
new DocumentUploadOptions
{
File_name = "fileName.jpg",
File_data = Convert.ToBase64String(bytes),
});

// Process url
var document = await api.ProcessDocumentAsyncV7(
new DocumentUploadOptions
{
File_url = "https://raw.githubusercontent.com/veryfi/veryfi-csharp/master/src/tests/Veryfi.IntegrationTests/Assets/receipt_public.jpg",
});

// Process urls
var document = await api.ProcessDocumentAsyncV7(
new DocumentUploadOptions
{
File_urls = new [] {
"https://raw.githubusercontent.com/veryfi/veryfi-csharp/master/src/tests/Veryfi.IntegrationTests/Assets/receipt_public.jpg",
},
});

// Process stream
var document = await api.ProcessDocumentFileAsyncV7(
new Stream(),
new DocumentUploadOptions
{
File_name = "fileName.jpg",
});

// Process bytes
var document = await api.ProcessDocumentFileAsyncV7(
new byte[0],
new DocumentUploadOptions
{
File_name = "fileName.jpg",
});

// Process path
var document = await api.ProcessDocumentFileAsyncV7(
"C:/invoice.png",
new DocumentUploadOptions
{
// any custom options, File_name is not required.
});

//
```

## Live Example

C# .NET Fiddle - https://dotnetfiddle.net/voU3yG
Expand Down
Loading