Skip to content

Commit 9def3d1

Browse files
authored
Merge pull request #70 from wiazur/patch-30
Updated key/endpoint
2 parents f7ad209 + eefdc0f commit 9def3d1

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

java/Search/BingEntitySearchv7.java

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -24,14 +24,14 @@
2424

2525
public class EntitySearch {
2626

27-
// **********************************************
28-
// *** Update or verify the following values. ***
29-
// **********************************************
27+
// **********************************************
28+
// *** Update or verify the following values. ***
29+
// **********************************************
3030

31-
// Replace the subscriptionKey string value with your valid subscription key.
32-
static String subscriptionKey = "ENTER KEY HERE";
33-
34-
static String host = "https://api.cognitive.microsoft.com";
31+
// Add your Bing Entity Search subscription key to your environment variables.
32+
static String subscriptionKey = System.getenv("BING_ENTITY_SEARCH_SUBSCRIPTION_KEY");
33+
// Add your Bing Entity Search endpoint to your environment variables.
34+
static String host = System.getenv("BING_ENTITY_SEARCH_ENDPOINT");
3535
static String path = "/bing/v7.0/entities";
3636

3737
static String mkt = "en-US";
@@ -75,4 +75,4 @@ public static void main(String[] args) {
7575
System.out.println (e);
7676
}
7777
}
78-
}
78+
}

0 commit comments

Comments
 (0)