We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0d20f1e commit 41d67d1Copy full SHA for 41d67d1
nodejs/Search/BingAutosuggestv7.js
@@ -9,10 +9,10 @@ let https = require ('https');
9
// *** Update or verify the following values. ***
10
// **********************************************
11
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';
+// Add your Bing Autosuggest subscription key to your environment variables.
+let subscriptionKey = process.env['BING_AUTOSUGGEST_SUBSCRIPTION_KEY']
+// Add your Bing Autosuggest endpoint to your environment variables.
+let host = process.env['BING_AUTOSUGGEST_endpoint']
16
let path = '/bing/v7.0/Suggestions';
17
18
let mkt = 'en-US';
0 commit comments