From fe85568e00551ab01ad92cb6e03b171618e8d5e5 Mon Sep 17 00:00:00 2001 From: Martin Tannerfors Date: Thu, 20 May 2021 18:37:53 +0200 Subject: [PATCH] samples: Update quickstart.js (#189) include the required region if using EU based processor (defaults to US) Co-authored-by: Justin Beckwith --- document-ai/quickstart.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/document-ai/quickstart.js b/document-ai/quickstart.js index d282047cb3..a1fe28e1ad 100644 --- a/document-ai/quickstart.js +++ b/document-ai/quickstart.js @@ -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() {