Skip to content

Commit 1d781cd

Browse files
authored
Updated key
Changing all samples to reflect standard naming. <SERVICE>_SUBSCRIPTION_KEY
1 parent 705be99 commit 1d781cd

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Search/BingEntitySearch/src/main/java/com/microsoft/azure/cognitiveservices/search/entitysearch/samples/BingEntitySearchSample.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -273,7 +273,7 @@ public static void main(String[] args) {
273273
// If not, you may get an API key not found exception.
274274
// IMPORTANT: if you have not set the `AZURE_BING_SAMPLES_API_KEY` environment variable to your cognitive services API key:
275275
// 1. comment out the below line
276-
final String subscriptionKey = System.getenv("AZURE_BING_SAMPLES_API_KEY");
276+
final String subscriptionKey = System.getenv("BING_ENTITY_SEARCH_SUBSCRIPTION_KEY");
277277
// 2. paste your cognitive services API key below, and uncomment the line
278278
//final String subscriptionKey = "enter your key here";
279279

0 commit comments

Comments
 (0)