windows 8 开发 集成Bing搜索service
来源:互联网 发布:第一个人工智能机器人 编辑:程序博客网 时间:2024/06/05 14:24
一、bing搜索简介:
搜索类型:Web,Image,News,InstantAnswer,Video,RelatedSearch,Spell
支持的协议:Json, XML, SOAP
注册开发ID http://www.bing.com/toolbox/bingdeveloper/ 得到一个ApplicationID
二、开发简介
以SOAP(C#的webservice为例)
引用 http://api.bing.net/search.wsdl?AppID=yourAppId&Version=2.2 这个服务,然后
public class BingSearch { public async void SearchWebAsync(string keyWords) { BingPortTypeClient service = new BingPortTypeClient(); try { SearchRequest1 request = new SearchRequest1(); request.parameters = new SearchRequest(); request.parameters.AppId = Constant.BingAppId; request.parameters.Query = keyWords; ; request.parameters.Sources = new SourceType[] { SourceType.Web }; request.parameters.Version = "2.2"; request.parameters.Market = "zh-cn"; request.parameters.Adult = AdultOption.Moderate; request.parameters.AdultSpecified = true; // Send the request; display the response. SearchResponse1 response = await service.SearchAsync(request); } catch (System.Net.WebException ex) { // An exception occurred while accessing the network. } } }
response中的result就是结果集了
MSDN上的搜索示例
http://msdn.microsoft.com/en-us/library/dd250847
- windows 8 开发 集成Bing搜索service
- bing搜索
- windows 8 Bing 应用 详解
- Windows App开发之集成设置、帮助、搜索和共享
- BING搜索的变化
- Windows Service开发框架
- .net 开发 Windows Service
- 【万里征程——Windows App开发】在应用中集成搜索
- 微软bing搜索好强大
- bing的搜索api简介
- bing搜索的Ajax练习
- Delphi 开发 Windows Service 技巧
- 使用C++开发Windows Service
- C#开发Windows Service程序
- 采用VS2008开发windows service
- C#开发Windows Service程序
- C#开发Windows Service程序
- Windows Service 与 WebService 开发
- Debian 6配置GNOME桌面环境
- windows 8 metro 开发学习资源链接
- 关于Metro style下可用的.net类库的一些概要说明
- windows 8 metro 关于定位
- windows 8 开发 tips
- windows 8 开发 集成Bing搜索service
- windows 8 开发 Application Data
- windows 8 开发:提高App性能 概述
- 路径解释:绝对、相对、UNC 和 URL
- Windows Phone的异步模型
- Windows Phone 的数据存储方式总结
- 注册 windows 8 开发者账号
- wp8sdk preview没申请下来
- wp8 sdk 下载