File tree Expand file tree Collapse file tree 1 file changed +5
-5
lines changed
Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -13,10 +13,10 @@ class Program
1313 // *** Update and verify the following values. ***
1414 // **********************************************
1515
16- // Replace the accessKey string value with your valid subscription key.
17- const string accessKey = "<yoursubscriptionkeygoeshere>" ;
18-
19- const string uriBase = "https://api.cognitive.microsoft.com /bing/v7.0/images/visualsearch";
16+ // Add your Azure Bing Search V7 subscription key to your environment variables .
17+ const string accessKey = Environment . GetEnvironmentVariable ( "BING_SEARCH_V7_SUBSCRIPTION_KEY" ) ;
18+ // Add your Azure Bing Search V7 endpoint to your environment variables.
19+ const string uriBase = Environment . GetEnvironmentVariable ( "BING_SEARCH_V7_ENDPOINT" ) + " /bing/v7.0/images/visualsearch";
2020
2121 // Set the path to the image that you want to get insights of.
2222 static string imagePath = @"<pathtoimagegoeshere>" ;
@@ -240,4 +240,4 @@ static string JsonPrettyPrint(string json)
240240 return sb . ToString ( ) . Trim ( ) ;
241241 }
242242 }
243- }
243+ }
You can’t perform that action at this time.
0 commit comments