File tree Expand file tree Collapse file tree 1 file changed +5
-8
lines changed
Expand file tree Collapse file tree 1 file changed +5
-8
lines changed Original file line number Diff line number Diff line change @@ -16,14 +16,11 @@ class Program
1616 // *** Update or verify the following values. ***
1717 // **********************************************
1818
19- // Replace the accessKey string value with your valid access key.
20- const string accessKey = "enter key here" ;
21-
22- // Verify the endpoint URI. At this writing, only one endpoint is used for Bing
23- // search APIs. In the future, regional endpoints may be available. If you
24- // encounter unexpected authorization errors, double-check this value against
25- // the endpoint for your Bing search instance in your Azure dashboard.
26- const string uriBase = "https://api.cognitive.microsoft.com/bing/v7.0/images/search" ;
19+ // Add your Azure Bing Search V7 subscription key to your environment variables.
20+ const string accessKey = Environment . GetEnvironmentVariable ( "BING_SEARCH_V7_SUBSCRIPTION_KEY" ) ;
21+
22+ // Add your Azure Bing Search V7 endpoint to your environment variables.
23+ const string uriBase = Environment . GetEnvironmentVariable ( "BING_SEARCH_V7_ENDPOINT" ) + "/bing/v7.0/images/search" ;
2724
2825 const string searchTerm = "puppies" ;
2926
You can’t perform that action at this time.
0 commit comments