Skip to content

Commit 57b6e3b

Browse files
authored
Updated comments
1 parent d356957 commit 57b6e3b

File tree

1 file changed

+2
-7
lines changed
  • Search/BingImageSearch/Quickstart/src/main/java/com/microsoft/azure/cognitiveservices/search/imagesearch/samples

1 file changed

+2
-7
lines changed

Search/BingImageSearch/Quickstart/src/main/java/com/microsoft/azure/cognitiveservices/search/imagesearch/samples/BingImageSearchSample.java

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -63,14 +63,9 @@ public static void runSample(BingImageSearchAPI client, String searchTerm) {
6363
public static void main(String[] args) {
6464
try {
6565
// Authenticate
66-
67-
// If you are going to set the BING_SEARCH_V7_SUBSCRIPTION_KEY environment variable, make sure you set it for your OS, then reopen your command prompt or IDE.
68-
// If not, you may get an API key not found exception.
69-
// IMPORTANT: if you have not set the BING_SEARCH_V7_SUBSCRIPTION_KEY environment variable to your cognitive services API key:
70-
// 1. comment out the below line
66+
// Set the BING_SEARCH_V7_SUBSCRIPTION_KEY environment variable,
67+
// then reopen your command prompt or IDE for changes to take effect.
7168
final String subscriptionKey = System.getenv("BING_SEARCH_V7_SUBSCRIPTION_KEY");
72-
// 2. paste your cognitive services API key below, and uncomment the line
73-
//final String subscriptionKey = System.getenv("BING_SEARCH_V7_SUBSCRIPTION_KEY");
7469

7570
BingImageSearchAPI client = BingImageSearchManager.authenticate(subscriptionKey);
7671
String searchTerm = "canadian rockies";

0 commit comments

Comments
 (0)