Skip to content

Commit

Permalink
Merge pull request #9 from veryfi/manycoding-patch-1
Browse files Browse the repository at this point in the history
Remove v7
  • Loading branch information
manycoding authored Apr 8, 2024
2 parents ce1e382 + fd4ac5b commit 18ad5a2
Showing 1 changed file with 0 additions and 55 deletions.
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

0 comments on commit 18ad5a2

Please sign in to comment.