RSS| 首页| 山顶道| 布珞阁¹| GoodUI| 土产| 关于

使用gmail和jiwai提供的API,实现gmail邮件通知到手机功能(的思路)
2008.04.10 21:26 bruce:

想搞没时间搞,先记下来。

现在的web服务都开放很多api,也不算什么webservice,但确实很好用,开放性不错

jiwai和gmail都提供了相应的web 调用API,实现原理和调用方法都类似。

gmail的API挺复杂,用这个web的新邮件rss种子:https://mail.google.com/mail/feed/atom 调用则方便很多。

jiwai也有是这样,见上一篇 http://bruce.in/p/482

https://groups.google.com/group/jiwai-development-talk/web/jiwai-deapi

使用HTTP Basic Authentication认证协议 做用户验证 ,然后用get post的方式与服务器交互,返回xml结果集。

WebClient webClient = new WebClient();
webClient.Headers.Add(”Content-Type”, “application/x-www-form-urlencoded”);
NetworkCredential nc = new NetworkCredential(”your id”, “your password”);
webClient.Credentials = nc;

分类  日经| 暂无评论


垃圾太厉害了
说几句吧






*注意: 回复可能需要审查.您不必重复提交.