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