Skip to content

Commit

Permalink
Merge pull request #72 from wiazur/patch-32
Browse files Browse the repository at this point in the history
Updated key/endpoint
  • Loading branch information
wiazur authored Sep 26, 2019
2 parents c88caf7 + f8a118f commit 2d1a84b
Showing 1 changed file with 5 additions and 8 deletions.
13 changes: 5 additions & 8 deletions java/Search/BingImageSearchv7Quickstart.java
Original file line number Diff line number Diff line change
Expand Up @@ -35,14 +35,11 @@ public class BingImageSearchv7Quickstart {
// *** Update or verify the following values. ***
// **********************************************

// Replace the subscriptionKey string value with your valid subscription key.
static String subscriptionKey = "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 Web search instance in your Azure dashboard.
static String host = "https://api.cognitive.microsoft.com";
// Add your Bing Search V7 subscription key to your environment variables.
static String subscriptionKey = System.getenv("BING_SEARCH_V7_SUBSCRIPTION_KEY");

// Add your Bing Search V7 endpoint to your environment variables.
static String host = System.getenv("BING_SEARCH_V7_ENDPOINT");
static String path = "/bing/v7.0/images/search";

static String searchTerm = "tropical ocean";
Expand Down

0 comments on commit 2d1a84b

Please sign in to comment.