File tree Expand file tree Collapse file tree 1 file changed +6
-6
lines changed
Expand file tree Collapse file tree 1 file changed +6
-6
lines changed Original file line number Diff line number Diff line change 2727
2828public class Autosuggest {
2929
30- // **********************************************
31- // *** Update or verify the following values. ***
32- // **********************************************
30+ // **********************************************
31+ // *** Update or verify the following values. ***
32+ // **********************************************
3333
34- // Replace the subscriptionKey string value with your valid subscription key.
35- static String subscriptionKey = "enter key here" ;
34+ // Add your Bing Autosuggest subscription key to your environment variables .
35+ static String subscriptionKey = System . getenv ( "BING_AUTOSUGGEST_SUBSCRIPTION_KEY" ) ;
3636
37- static String host = "https://api.cognitive.microsoft.com" ;
37+ static String host = System . getenv ( "BING_AUTOSUGGEST_ENDPOINT" ) ;
3838 static String path = "/bing/v7.0/Suggestions" ;
3939
4040 static String mkt = "en-US" ;
You can’t perform that action at this time.
0 commit comments