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.
2 parents e28ce7a + 31e2302 commit 1b8f989Copy full SHA for 1b8f989
nodejs/Search/BingCustomSearchv7.js
@@ -3,12 +3,12 @@
3
4
var request = require("request");
5
6
-var subscriptionKey = 'YOUR-SUBSCRIPTION-KEY';
+var subscriptionKey = process.env['BING_CUSTOM_SEARCH_SUBSCRIPTION_KEY']
7
var customConfigId = 'YOUR-CUSTOM-CONFIG-ID';
8
var searchTerm = 'microsoft';
9
10
var options = {
11
- url: 'https://api.cognitive.microsoft.com/bingcustomsearch/v7.0/search?' +
+ url: process.env['BING_CUSTOM_SEARCH_ENDPOINT'] + "/bingcustomsearch/v7.0/search?' +
12
'q=' + searchTerm +
13
'&customconfig=' + customConfigId,
14
headers: {
0 commit comments