File tree Expand file tree Collapse file tree 1 file changed +5
-3
lines changed
Expand file tree Collapse file tree 1 file changed +5
-3
lines changed Original file line number Diff line number Diff line change @@ -12,11 +12,13 @@ class Program
1212 {
1313 static void Main ( string [ ] args )
1414 {
15- var subscriptionKey = "YOUR-SUBSCRIPTION-KEY" ;
15+ // Add your Azure Bing Custom Search subscription key to your environment variables.
16+ var subscriptionKey = Environment . GetEnvironmentVariable ( "BING_CUSTOM_SEARCH_SUBSCRIPTION_KEY" ) ;
1617 var customConfigId = "YOUR-CUSTOM-CONFIG-ID" ;
1718 var searchTerm = args . Length > 0 ? args [ 0 ] : "microsoft" ;
18-
19- var url = "https://api.cognitive.microsoft.com/bingcustomsearch/v7.0/search?" +
19+
20+ // Add your Azure Bing Custom Search endpoint to your environment variables.
21+ var url = Environment . GetEnvironmentVariable ( "BING_CUSTOM_SEARCH_ENDPOINT" ) + "/bingcustomsearch/v7.0/search?" +
2022 "q=" + searchTerm +
2123 "&customconfig=" + customConfigId ;
2224
You can’t perform that action at this time.
0 commit comments