Skip to content

Commit fedf5a4

Browse files
authored
Updated key instruction
1 parent 62ed3b3 commit fedf5a4

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

Search/BingNewsSearch/README.md

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

3131
1. git clone https://github.com/Azure-Samples/cognitive-services-java-sdk-samples.git
3232
2. cd cognitive-services-java-sdk-samples/Search/BingNewsSearch
33-
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.
33+
3. Set a system environment variable named `BING_SEARCH_V7_SUBSCRIPTION_KEY` with your subscription key,
34+
then reopen your command prompt or IDE. If not, you might get an API key not found exception.
3435
4. mvn compile exec:java
3536

3637
## More information ##
@@ -43,4 +44,4 @@ If you don't have a Microsoft Azure subscription you can get a FREE trial accoun
4344

4445
---
4546

46-
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.
47+
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)