Reputation: 201
I'd like to use Cognitive Services to use Bing Search APIs. I created Cog Services Account in Azure Portal and used the key listed in properties in my sample app. There are 2 keys which are listed
Few questions:
example simplistic code snippet to show what I am doing:
...
string searchApiUrl = String.Format(
"https://api.cognitive.microsoft.com/bing/v5.0/news/search?q={0}&AccountKey={1}",
WebUtility.HtmlEncode("Movies"),
"MY ACCOUNT ID FROM Azure PORTAL");
HttpClient httpClient = new HttpClient();
string response1 = await httpClient.GetStringAsync(searchApiUrl);
...
Upvotes: 4
Views: 2911
Reputation: 46
Upvotes: 2