Skip to content

Commit

Permalink
In intelligence-SimilarProducts removed API trial key from Web.config…
Browse files Browse the repository at this point in the history
… and updated README
  • Loading branch information
Amit Stein committed Jan 19, 2018
1 parent 968eab7 commit 230594b
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 5 deletions.
8 changes: 7 additions & 1 deletion CSharp/intelligence-SimilarProducts/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,13 @@ A sample bot that illustrates how to use the [Bing Image Search API](https://www
The minimum prerequisites to run this sample are:
* The latest update of Visual Studio 2015. You can download the community version [here](http://www.visualstudio.com) for free.
* The Bot Framework Emulator. To install the Bot Framework Emulator, download it from [here](https://emulator.botframework.com/). Please refer to [this documentation article](https://github.com/microsoft/botframework-emulator/wiki/Getting-Started) to know more about the Bot Framework Emulator.
* This sample currently uses a free trial Microsoft Bing Search API key with limited QPS. Please subscribe [here](https://www.microsoft.com/cognitive-services/en-us/subscriptions) to obtain your own key and update the `BingSearchApiKey` key in [Web.config](Web.config) file to try it out further.
* Subscribe [here](https://azure.microsoft.com/en-us/try/cognitive-services/my-apis/?apiSlug=search-api-v7) to obtain your own key and update the `BingSearchApiKey` key in [Web.config](Web.config) file to try it out further.

````XML
<appSettings>
<add key="BingSearchApiKey" value="PUT-YOUR-OWN-API-KEY-HERE" />
</appSettings>
````

### Code Highlights
The main logic that handles calling the Bing Image Search API can be found in [BingImageSearchService.cs](Services/BingImageSearchService.cs).
Expand Down
7 changes: 3 additions & 4 deletions CSharp/intelligence-SimilarProducts/Web.config
Original file line number Diff line number Diff line change
Expand Up @@ -11,11 +11,10 @@
<add key="MicrosoftAppPassword" value="" />

<!--
This is a free trial Microsoft Bing Search key with limited QPS.
Please subscribe to create your own key and try it out further.
Subscription URL: https://www.microsoft.com/cognitive-services/en-us/subscriptions
Subscribe to Bing Search API to obtain a Trial API Key.
Subscription URL: https://azure.microsoft.com/en-us/try/cognitive-services/my-apis/?apiSlug=search-api-v7
-->
<add key="BingSearchApiKey" value="ee4e28574f514ce7b687236b01a07432" />
<add key="BingSearchApiKey" value="PUT-YOUR-OWN-API-KEY-HERE" />
</appSettings>
<!--
For a description of web.config changes see http://go.microsoft.com/fwlink/?LinkId=235367.
Expand Down

0 comments on commit 230594b

Please sign in to comment.