Skip to content

Commit f7ad209

Browse files
authored
Merge pull request #68 from wiazur/patch-28
Updated key/endpoint
2 parents 90eb46a + f241022 commit f7ad209

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

java/Search/BingCustomSearchv7.java

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,10 +18,11 @@
1818

1919
public class CustomSrchJava {
2020

21-
22-
static String host = "https://api.cognitive.microsoft.com";
21+
// Add your Bing Custom Search endpoint to your environment variables.
22+
static String host = System.getenv("BING_CUSTOM_SEARCH_ENDPOINT");
2323
static String path = "/bingcustomsearch/v7.0/search";
24-
static String subscriptionKey = "YOUR-SUBSCRIPTION-KEY";
24+
// Add your Bing Custom Search subscription key to your environment variables.
25+
static String subscriptionKey = System.getenv("BING_CUSTOM_SEARCH_SUBSCRIPTION_KEY");
2526
static String customConfigId = "YOUR-CUSTOM-CONFIG-ID";
2627

2728
static String searchTerm = "Microsoft"; // Replace with search term specific to your defined sources.

0 commit comments

Comments
 (0)