Skip to content

Commit

Permalink
Merge pull request #60 from wiazur/patch-20
Browse files Browse the repository at this point in the history
Updated key/endpoint
  • Loading branch information
wiazur authored Sep 26, 2019
2 parents 2abe4ac + 02a10aa commit b6a582f
Showing 1 changed file with 4 additions and 8 deletions.
12 changes: 4 additions & 8 deletions dotnet/Search/BingNewsSearchv7.cs
Original file line number Diff line number Diff line change
Expand Up @@ -16,14 +16,10 @@ class Program
// *** Update or verify the following values. ***
// **********************************************

// Replace the accessKey string value with your valid access key.
const string accessKey = "enter key here";

// 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 value against
// the endpoint for your Bing News search instance in your Azure dashboard.
const string uriBase = "https://api.cognitive.microsoft.com/bing/v7.0/news/search";
// Add your Azure Bing Search V7 subscription key to your environment variables.
const string accessKey = Environment.GetEnvironmentVariable("BING_SEARCH_V7_SUBSCRIPTION_KEY");
// Add your Azure Bing Search V7 endpoint to your environment variables.
const string uriBase = Environment.GetEnvironmentVariable("BING_SEARCH_V7_ENDPOINT") + "/bing/v7.0/news/search";

const string searchTerm = "Microsoft";

Expand Down

0 comments on commit b6a582f

Please sign in to comment.