Skip to content

Commit

Permalink
samples: Update quickstart.js (#189)
Browse files Browse the repository at this point in the history
include the required region if using EU based processor (defaults to US)

Co-authored-by: Justin Beckwith <justin.beckwith@gmail.com>
  • Loading branch information
2 people authored and Ace Nassri committed Nov 14, 2022
1 parent 7a5bcd9 commit fe85568
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions document-ai/quickstart.js
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,8 @@ async function main(projectId, location, processorId, filePath) {
require('@google-cloud/documentai').v1;

// Instantiates a client
// apiEndpoint regions available: eu-documentai.googleapis.com, us-documentai.googleapis.com (Required if using eu based processor)
// const client = new DocumentProcessorServiceClient({apiEndpoint: 'eu-documentai.googleapis.com'});
const client = new DocumentProcessorServiceClient();

async function quickstart() {
Expand Down

0 comments on commit fe85568

Please sign in to comment.