Skip to content

Commit

Permalink
In intelligence-Zummer removed API trial key from Web.config and upgr…
Browse files Browse the repository at this point in the history
…aded to latest Web Search API (v7)
  • Loading branch information
Amit Stein committed Jan 19, 2018
1 parent 7d193c0 commit 2a96da7
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 7 deletions.
4 changes: 2 additions & 2 deletions CSharp/intelligence-Zummer/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ Zummer bot is trained to understand the following intents:



1. **Sign in and Create an application** on [www.luis.ai](http://www.luis.ai/)
1. **Sign in and Create an application** on [www.luis.ai](http://www.luis.ai/)
**Note:** You can either import the LUIS application JSON file
“ZummerLuisApp.json” found in the [sample folder](https://github.com/Microsoft/BotBuilder-Samples/blob/master/CSharp/intelligence-Zummer/ZummerLuisApp.json)

Expand Down Expand Up @@ -160,7 +160,7 @@ Fetching Wikipedia articles on a topic using Bing Web Search API
    /// </summary
    internal sealed class BingSearchService : ISearchService 
    { 
        private const string BingSearchEndpoint = "https://api.cognitive.microsoft.com/bing/v5.0/search/"
        private const string BingSearchEndpoint = "https://api.cognitive.microsoft.com/bing/v7.0/search/"

        private static readonly Dictionary<stringstring> Headers = new Dictionary<stringstring> 
        { 
Expand Down
2 changes: 1 addition & 1 deletion CSharp/intelligence-Zummer/Services/BingSearchService.cs
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ namespace Zummer.Services
/// </summary>
internal sealed class BingSearchService : ISearchService
{
private const string BingSearchEndpoint = "https://api.cognitive.microsoft.com/bing/v5.0/search/";
private const string BingSearchEndpoint = "https://api.cognitive.microsoft.com/bing/v7.0/search/";

private static readonly Dictionary<string, string> Headers = new Dictionary<string, string>
{
Expand Down
7 changes: 3 additions & 4 deletions CSharp/intelligence-Zummer/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 Cognitive service key with limited QPS.
Please subscribe to Bing News Search API service to try it out further.
https://www.microsoft.com/cognitive-services/en-us/subscriptions
Subscribe to Bing News Search API service to obtain a Trial API Key.
ubscription URL: https://azure.microsoft.com/en-us/try/cognitive-services/my-apis/?apiSlug=search-api-v7
-->
<add key="BingSearchServiceKey" value="d23e97be84fc4c2d841b3fc4c42d617a" />
<add key="BingSearchServiceKey" 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 2a96da7

Please sign in to comment.