Skip to content

Commit

Permalink
Merge pull request #80 from wiazur/patch-40
Browse files Browse the repository at this point in the history
Updated key/endpoint
  • Loading branch information
wiazur authored Sep 26, 2019
2 parents 1b8f989 + bbb32f8 commit 66f0b24
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions nodejs/Search/BingEntitySearchv7.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,10 @@ let https = require ('https');
// *** Update or verify the following values. ***
// **********************************************

// Replace the subscriptionKey string value with your valid subscription key.
let subscriptionKey = 'ENTER YOUR KEY HERE';

let host = 'api.cognitive.microsoft.com';
// Add your Bing Entity Search subscription key to your environment variables.
let subscriptionKey = process.env['BING_ENTITY_SEARCH_SUBSCRIPTION_KEY']
// Add your Bing Entity Search endpoint to your environment variables.
let host = process.env['BING_ENTITY_SEARCH_ENDPOINT']
let path = '/bing/v7.0/entities';

let mkt = 'en-US';
Expand Down Expand Up @@ -47,4 +47,4 @@ let Search = function () {
req.end ();
}

Search ();
Search ();

0 comments on commit 66f0b24

Please sign in to comment.