File tree Expand file tree Collapse file tree 1 file changed +4
-3
lines changed
Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Original file line number Diff line number Diff line change 1818
1919public 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.
You can’t perform that action at this time.
0 commit comments