File tree Expand file tree Collapse file tree 1 file changed +4
-7
lines changed
Expand file tree Collapse file tree 1 file changed +4
-7
lines changed Original file line number Diff line number Diff line change @@ -9,14 +9,11 @@ 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' ;
12+ // Add your Bing Search V7 subscription key to your environment variables .
13+ let subscriptionKey = process . env [ 'BING_SEARCH_V7_SUBSCRIPTION_KEY' ]
1414
15- // Verify the endpoint URI. At this writing, only one endpoint is used for Bing
16- // search APIs. In the future, regional endpoints may be available. If you
17- // encounter unexpected authorization errors, double-check this host against
18- // the endpoint for your Bing Web search instance in your Azure dashboard.
19- let host = 'api.cognitive.microsoft.com' ;
15+ // Add your Bing Search V7 endpoint to your environment variables.
16+ let host = process . env [ 'BING_SEARCH_V7_ENDPOINT' ]
2017let path = '/bing/v7.0/search' ;
2118
2219let term = 'Microsoft Cognitive Services' ;
You can’t perform that action at this time.
0 commit comments