Skip to content

Commit 705be99

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

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Search/BingCustomSearch/src/main/java/com/microsoft/azure/cognitiveservices/search/customsearch/samples/BingCustomSearchSample.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ public static void main(String[] args) {
7676
// If not, you may get an API key not found exception.
7777
// IMPORTANT: if you have not set the `AZURE_BING_SAMPLES_API_KEY` and AZURE_BING_SAMPLES_CUSTOM_CONFIG_ID environment variables to your cognitive services API key:
7878
// 1. comment out the below lines
79-
final String subscriptionKey = System.getenv("AZURE_BING_SAMPLES_API_KEY");
79+
final String subscriptionKey = System.getenv("BING_CUSTOM_SEARCH_SUBSCRIPTION_KEY");
8080
final String customConfigId = System.getenv("AZURE_BING_SAMPLES_CUSTOM_CONFIG_ID");
8181
// 2. paste your cognitive services API key and custom config id below, and uncomment the following two lines
8282
//final String subscriptionKey = "enter your key here";

0 commit comments

Comments
 (0)