@@ -146,7 +146,7 @@ Extract text, selection marks, text styles, table structures, and bounding regio
146
146
:::moniker range="doc-intel-4.0.0"
147
147
148
148
```javascript
149
- const { AzureKeyCredential, DocumentAnalysisClient } = require("@azure-rest/ai-document-intelligence");
149
+ const { AzureKeyCredential, DocumentIntelligenceClient } = require("@azure-rest/ai-document-intelligence");
150
150
151
151
// set `<your-key>` and `<your-endpoint>` variables with the values from the Azure portal.
152
152
const key = "<your-key>";
@@ -156,7 +156,7 @@ Extract text, selection marks, text styles, table structures, and bounding regio
156
156
const formUrl = "https://raw.githubusercontent.com/Azure-Samples/cognitive-services-REST-api-samples/master/curl/form-recognizer/sample-layout.pdf"
157
157
158
158
async function main() {
159
- const client = DocumentAnalysisClient (endpoint, new AzureKeyCredential(key));
159
+ const client = DocumentIntelligenceClient (endpoint, new AzureKeyCredential(key));
160
160
161
161
const poller = await client.beginAnalyzeDocument("prebuilt-layout", formUrl);
162
162
@@ -311,7 +311,7 @@ In this example, we analyze an invoice using the **prebuilt-invoice** model.
311
311
312
312
``` javascript
313
313
314
- const { AzureKeyCredential , DocumentAnalysisClient } = require (" @azure-rest/ai-document-intelligence" );
314
+ const { AzureKeyCredential , DocumentIntelligenceClient } = require (" @azure-rest/ai-document-intelligence" );
315
315
316
316
// set `<your-key>` and `<your-endpoint>` variables with the values from the Azure portal.
317
317
const key = " <your-key>" ;
@@ -321,7 +321,7 @@ const { AzureKeyCredential, DocumentAnalysisClient } = require("@azure-rest/ai-d
321
321
invoiceUrl = " https://raw.githubusercontent.com/Azure-Samples/cognitive-services-REST-api-samples/master/curl/form-recognizer/sample-invoice.pdf"
322
322
323
323
async function main () {
324
- const client = DocumentAnalysisClient (endpoint, new AzureKeyCredential (key));
324
+ const client = DocumentIntelligenceClient (endpoint, new AzureKeyCredential (key));
325
325
326
326
const poller = await client .beginAnalyzeDocument (" prebuilt-invoice" , invoiceUrl);
327
327
if (pages .length <= 0 ) {
0 commit comments