适用于 python 的 Windows live api
我已阅读有关 Windows Live API 的文档: http://msdn.microsoft.com /en-us/library/bb463989.aspx
但是如何使用 python 从 hotmail 检索联系人?
有例子吗?
I have read documentation about Windows Live API: http://msdn.microsoft.com/en-us/library/bb463989.aspx
But how can I retrieve contacts from hotmail with python ?
Is there any example ?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
您的程序首先需要获得“委托身份验证”,其 Python 示例为 在这里。
之后,界面类似于 REST:您只需 HTTP GET 适当的 URI(根据 文档,即“/LiveContacts/contacts”,用于检索所有联系人。REST 架构记录在 这里。您可以使用 urllib 和 urllib2 等标准库模块在 Python 中发出 HTTP GET 请求,尽管较低级别的 httplib 模块也可以。
Your program will first need to obtain "delegated authentication", for which the Python samples are here.
After that, the interface is REST-like: you only need to HTTP GET the appropriate URI (per the docs, that's '/LiveContacts/contacts' to retrieve all contacts. The REST Schema is documented here. You can make an HTTP GET request in Python with such standard library modules as urllib and urllib2, though the lower-level httplib module is also fine.
对于那些正在搜索该库的下载链接的人
http ://download.microsoft.com/download/6/2/a/62adfe67-6fee-487f-9c3e-911ce5d0bc9d/webauth-python-1.2.tar.gz
For those who are searching for the download link for the library
http://download.microsoft.com/download/6/2/a/62adfe67-6fee-487f-9c3e-911ce5d0bc9d/webauth-python-1.2.tar.gz