Skip to content

Commit 41d67d1

Browse files
authored
Updated key/endpoint
1 parent 0d20f1e commit 41d67d1

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

nodejs/Search/BingAutosuggestv7.js

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

12-
// Replace the subscriptionKey string value with your valid subscription key.
13-
let subscriptionKey = 'enter key here';
14-
15-
let host = 'api.cognitive.microsoft.com';
12+
// Add your Bing Autosuggest subscription key to your environment variables.
13+
let subscriptionKey = process.env['BING_AUTOSUGGEST_SUBSCRIPTION_KEY']
14+
// Add your Bing Autosuggest endpoint to your environment variables.
15+
let host = process.env['BING_AUTOSUGGEST_endpoint']
1616
let path = '/bing/v7.0/Suggestions';
1717

1818
let mkt = 'en-US';

0 commit comments

Comments
 (0)