Skip to content

Commit

Permalink
Merge pull request #79 from wiazur/patch-39
Browse files Browse the repository at this point in the history
Updated key/endpoint
  • Loading branch information
wiazur authored Sep 26, 2019
2 parents e28ce7a + 31e2302 commit 1b8f989
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions nodejs/Search/BingCustomSearchv7.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,12 @@

var request = require("request");

var subscriptionKey = 'YOUR-SUBSCRIPTION-KEY';
var subscriptionKey = process.env['BING_CUSTOM_SEARCH_SUBSCRIPTION_KEY']
var customConfigId = 'YOUR-CUSTOM-CONFIG-ID';
var searchTerm = 'microsoft';

var options = {
url: 'https://api.cognitive.microsoft.com/bingcustomsearch/v7.0/search?' +
url: process.env['BING_CUSTOM_SEARCH_ENDPOINT'] + "/bingcustomsearch/v7.0/search?' +
'q=' + searchTerm +
'&customconfig=' + customConfigId,
headers: {
Expand Down

0 comments on commit 1b8f989

Please sign in to comment.