适用于 python 的 Windows live api

发布于 2024-08-19 12:01:27 字数 237 浏览 11 评论 0原文

我已阅读有关 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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

被翻牌 2024-08-26 12:01:27

您的程序首先需要获得“委托身份验证”,其 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.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文