Skip to content

Commit

Permalink
Merge pull request #81 from wiazur/patch-41
Browse files Browse the repository at this point in the history
Updated key/endpoint
  • Loading branch information
wiazur authored Sep 26, 2019
2 parents 66f0b24 + 899fe12 commit 9d50491
Showing 1 changed file with 4 additions and 7 deletions.
11 changes: 4 additions & 7 deletions nodejs/Search/BingImageSearchv7.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,14 +9,11 @@ let https = require('https');
// *** Update or verify the following values. ***
// **********************************************

// Replace the subscriptionKey string value with your valid subscription key.
let subscriptionKey = 'enter key here';
// Add your Bing Search V7 subscription key to your environment variables.
let subscriptionKey = process.env['BING_SEARCH_V7_SUBSCRIPTION_KEY']

// Verify the endpoint URI. At this writing, only one endpoint is used for Bing
// search APIs. In the future, regional endpoints may be available. If you
// encounter unexpected authorization errors, double-check this host against
// the endpoint for your Bing Search instance in your Azure dashboard.
let host = 'api.cognitive.microsoft.com';
// Add your Bing Search V7 endpoint to your environment variables.
let host = process.env['BING_SEARCH_V7_ENDPOINT']
let path = '/bing/v7.0/images/search';

let term = 'puppies';
Expand Down

0 comments on commit 9d50491

Please sign in to comment.