如何从 Windows Live 获取用户的联系人电子邮件数据?

发布于 2025-01-08 17:36:31 字数 441 浏览 6 评论 0 原文

我知道有类似的问题,但请耐心等待...

我遇到了与其他提问者类似的问题,涉及仅获取联系人电子邮件地址的哈希版本,并了解原因

问题是,我注意到 google+ 似乎能够使用 LiveConnect 很好地获取联系电子邮件地址。使用 fiddler,我注意到他们似乎正在请求身份验证范围“wl.contacts_emails”,其中 似乎没有记录

一些谷歌搜索建议“增强权限”,但在其网站上设置或编辑 Windows Live Connect 应用程序时没有提及这一点。

如何在我的应用程序上获取此范围?

I know there are similar questions, but bear with me...

I've hit similar problems to other questioners regarding only getting hashed versions of contact email addresses, and understand why.

The thing is, I've noticed that google+ appear to be able to get contact email addresses just fine using LiveConnect. Using fiddler, I notice that they seem to be requesting an authentication scope "wl.contacts_emails" which does not seem to be documented.

Some googling suggests "enhanced permissions" but there's no mention of this when setting up or editing a windows live connect app on their site.

How do I get this scope on my app?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

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

发布评论

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

评论(1

梦在夏天 2025-01-15 17:36:31

它在生产中使用 wl.contacts_emails 与 wl.emails 结合使用,对我有用。我没有仅使用 wl.contacts_emails 对其进行测试,但 linkedin 使用了这两个范围。

WL.init 之后,这里是使用的完整范围:

WL.login({
    scope: ['wl.basic', 'wl.emails', 'wl.contacts_emails'],
}).then(function(response) {

它仍然没有记录,微软有 明确声明您无法获取联系电子邮件地址,所以要谨慎使用。然而,整个 oauth 系统是我使用过的 api 中最大的笑话,所以我猜它是如此集群化,以至于有人忘记把它写下来。

编辑: 完整故事在这里,微软已经确认了wl.contacts_emails的存在,并声称它只适用于与他们达成协议的某些合作伙伴。然而,他们通过撒谎来掩盖自己的踪迹,这对所有客户都适用。整个事情一团糟。

TL;DR wl.contacts_emails 有效,但他们不会承认这一点,因此将来的某个时候他们有可能将其从您的手下夺走。

It works for me in production using wl.contacts_emails IN CONJUNCTION WITH wl.emails. I did not test it with only wl.contacts_emails but linkedin uses both scopes.

After WL.init here is the full scope used:

WL.login({
    scope: ['wl.basic', 'wl.emails', 'wl.contacts_emails'],
}).then(function(response) {

It still isn't documented and Microsoft has explicitly stated that you cannot get the contact email addresses, so use with caution. However, the entire oauth system is the biggest joke of an api I have ever worked with, so I'm guessing it's just so cluster-effed that someone just forgot to write it down.

Edit: the full story is here, Microsoft has confirmed the existence of wl.contacts_emails, and claim they it only works with certain partners who have made agreements with them. However, they are lying to cover their tracks and it works for all clients. The whole thing is a mess.

TL;DR wl.contacts_emails works but they won't admit to it, so there's a chance at some point in the future they could rip it out from under you.

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