Skip to content

Commit f3d6bfc

Browse files
authored
Merge pull request #63 from wiazur/patch-23
Updated key/endpoint
2 parents 4b37260 + 9edfbca commit f3d6bfc

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

dotnet/Search/BingVisualSearchv7.cs

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff 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+
}

0 commit comments

Comments
 (0)