Skip to content

Commit c4016ef

Browse files
authored
Updated key instruction
1 parent c05c8fe commit c4016ef

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

Search/BingWebSearch/README.md

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,8 @@ To get these samples running locally, simply get the pre-requisites above, then:
2727

2828
1. git clone https://github.com/Azure-Samples/cognitive-services-java-sdk-samples.git
2929
2. cd cognitive-services-java-sdk-samples/Search/BingWebSearch
30-
3. Either set a system environment variable named `AZURE_BING_SAMPLES_API_KEY` to your cognitive Services API key, or copy your key into the program. If you are going to set the AZURE_BING_SAMPLES_API_KEY environment variable, make sure to set it based on your OS, then reopen your command prompt or IDE. If not, you might get an API key not found exception.
30+
3. Set a system environment variable named `BING_SEARCH_V7_SUBSCRIPTION_KEY` with your subscription key,
31+
then reopen your command prompt or IDE. If not, you might get an API key not found exception.
3132
4. mvn compile exec:java
3233

3334
## More information ##
@@ -40,4 +41,4 @@ If you don't have a Microsoft Azure subscription you can get a FREE trial accoun
4041

4142
---
4243

43-
This project has adopted the [Microsoft Open Source Code of Conduct](https://opensource.microsoft.com/codeofconduct/). For more information see the [Code of Conduct FAQ](https://opensource.microsoft.com/codeofconduct/faq/) or contact [[email protected]](mailto:[email protected]) with any additional questions or comments.
44+
This project has adopted the [Microsoft Open Source Code of Conduct](https://opensource.microsoft.com/codeofconduct/). For more information see the [Code of Conduct FAQ](https://opensource.microsoft.com/codeofconduct/faq/) or contact [[email protected]](mailto:[email protected]) with any additional questions or comments.

0 commit comments

Comments
 (0)