Skip to content

Commit caa6e6b

Browse files
authored
Merge pull request #75 from wiazur/patch-35
Updated key/endpoint
2 parents 43a604d + d948c86 commit caa6e6b

File tree

1 file changed

+5
-8
lines changed

1 file changed

+5
-8
lines changed

java/Search/BingVideoSearchv7.java

Lines changed: 5 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -31,14 +31,11 @@ public class BingVideoSearch {
3131
// *** Update or verify the following values. ***
3232
// **********************************************
3333

34-
// Replace the subscriptionKey string value with your valid subscription key.
35-
static String subscriptionKey = "enter key here";
36-
37-
// Verify the endpoint URI. At this writing, only one endpoint is used for Bing
38-
// search APIs. In the future, regional endpoints may be available. If you
39-
// encounter unexpected authorization errors, double-check this value against
40-
// the endpoint for your Bing Web search instance in your Azure dashboard.
41-
static String host = "https://api.cognitive.microsoft.com";
34+
// Add your Bing Search V7 subscription key to your environment variables.
35+
static String subscriptionKey = System.getenv("BING_SEARCH_V7_SUBSCRIPTION_KEY");
36+
37+
// Add your Bing Search V7 endpoint to your environment variables.
38+
static String host = System.getenv("BING_SEARCH_V7_ENDPOINT");
4239
static String path = "/bing/v7.0/videos/search";
4340

4441
static String searchTerm = "kittens";

0 commit comments

Comments
 (0)