Skip to content

Commit 24a5936

Browse files
authored
Update v3-javascript-sdk.md
1 parent a8e677e commit 24a5936

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
@@ -302,12 +302,13 @@ In this example, we analyze an invoice using the **prebuilt-invoice** model.
302302
// set `<your-key>` and `<your-endpoint>` variables with the values from the Azure portal.
303303
const key = "<your-key>";
304304
const endpoint = "<your-endpoint>";
305-
305+
// sample document
306+
invoiceUrl = "https://raw.githubusercontent.com/Azure-Samples/cognitive-services-REST-api-samples/master/curl/form-recognizer/sample-invoice.pdf"
306307

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

310-
const poller = await client.beginAnalyzeDocumentFromUrl("prebuilt-layout", formUrlLayout);
311+
const poller = await client.beginAnalyzeDocumentFromUrl("prebuilt-layout", invoiceUrl);
311312

312313
const {
313314
pages,

0 commit comments

Comments
 (0)