File tree Expand file tree Collapse file tree 1 file changed +4
-5
lines changed
Expand file tree Collapse file tree 1 file changed +4
-5
lines changed Original file line number Diff line number Diff line change @@ -13,12 +13,11 @@ namespace BingSearchApisQuickstart
1313 class Program
1414 {
1515
16- // Replace this string value with your valid access key.
17- const string subscriptionKey = "Enter your subscription key here" ;
16+ // Add your Azure Bing Search V7 subscription key to your environment variables
17+ const string subscriptionKey = Environment . GetEnvironmentVariable ( "BING_SEARCH_V7_SUBSCRIPTION_KEY" ) ;
1818
19- // Verify the endpoint URI. If you encounter unexpected authorization errors,
20- // double-check this value against the Bing search endpoint in your Azure dashboard.
21- const string uriBase = "https://api.cognitive.microsoft.com/bing/v7.0/images/search" ;
19+ // Add your Azure Bing Search V7 endpoint to your environment variables
20+ const string uriBase = Environment . GetEnvironmentVariable ( "BING_SEARCH_V7_ENDPOINT" ) + "/bing/v7.0/images/search" ;
2221
2322 const string searchTerm = "tropical ocean" ;
2423
You can’t perform that action at this time.
0 commit comments