Skip to content

Commit 66f0b24

Browse files
authored
Merge pull request #80 from wiazur/patch-40
Updated key/endpoint
2 parents 1b8f989 + bbb32f8 commit 66f0b24

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

nodejs/Search/BingEntitySearchv7.js

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -8,10 +8,10 @@ let https = require ('https');
88
// *** Update or verify the following values. ***
99
// **********************************************
1010

11-
// Replace the subscriptionKey string value with your valid subscription key.
12-
let subscriptionKey = 'ENTER YOUR KEY HERE';
13-
14-
let host = 'api.cognitive.microsoft.com';
11+
// Add your Bing Entity Search subscription key to your environment variables.
12+
let subscriptionKey = process.env['BING_ENTITY_SEARCH_SUBSCRIPTION_KEY']
13+
// Add your Bing Entity Search endpoint to your environment variables.
14+
let host = process.env['BING_ENTITY_SEARCH_ENDPOINT']
1515
let path = '/bing/v7.0/entities';
1616

1717
let mkt = 'en-US';
@@ -47,4 +47,4 @@ let Search = function () {
4747
req.end ();
4848
}
4949

50-
Search ();
50+
Search ();

0 commit comments

Comments
 (0)