我们如何在 C# 中使用 Bing API?我必须将查询传递给 Bing API,然后获取结果。
问问题
2943 次
5 回答
5
BingService.BingService service = new BingService.BingService();
SearchRequest request = new SearchRequest();
// use your Bing AppID
request.AppId = ""; /* Your App ID */
request.Query = "rose"; // your search query
// I want to search only web
request.Sources = new SourceType[]
{
SourceType.Image
};
SearchResponse response = service.Search(request);
foreach (ImageResult result in response.Image.Results)
{
//lstBxImages.Items.Add("<a href="+result.Url + '"'+"></a>" + result.Title);
imgliteral.Controls.Add(new LiteralControl("<img src=" + result.MediaUrl + " width=100
于 2011-01-24T13:02:53.457 回答
2
从 microsoft 站点下载 bing dll 并添加这些 dll。只有我们才能使用必应服务。
于 2011-01-27T13:24:39.820 回答
1
这里有一些对你有很大帮助的东西 https://github.com/insatmc/BingMapHelper
于 2014-01-09T21:33:48.167 回答
0
你好。。
在应用程序中添加对 Web 引用的 bing 引用并使用 search.wsdl
于 2011-01-27T09:10:14.320 回答
0
只需在上面添加 BING 在 PDF 中提供的 te API 的完整文档。
于 2011-01-25T03:34:06.247 回答