Skip to content

Commit 179b061

Browse files
Merge pull request #234399 from laujan/patch-224
Update v3-javascript-sdk.md
2 parents 41a81f8 + 59b69f4 commit 179b061

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

articles/applied-ai-services/form-recognizer/quickstarts/includes/v3-javascript-sdk.md

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -301,12 +301,13 @@ In this example, we analyze an invoice using the **prebuilt-invoice** model.
301301
// set `<your-key>` and `<your-endpoint>` variables with the values from the Azure portal.
302302
const key = "<your-key>";
303303
const endpoint = "<your-endpoint>";
304-
304+
// sample document
305+
invoiceUrl = "https://raw.githubusercontent.com/Azure-Samples/cognitive-services-REST-api-samples/master/curl/form-recognizer/sample-invoice.pdf"
305306

306307
async function main() {
307308
const client = new DocumentAnalysisClient(endpoint, new AzureKeyCredential(key));
308309

309-
const poller = await client.beginAnalyzeDocumentFromUrl("prebuilt-layout", formUrlLayout);
310+
const poller = await client.beginAnalyzeDocumentFromUrl("prebuilt-invoice", invoiceUrl);
310311

311312
const {
312313
pages,

0 commit comments

Comments
 (0)