我已经为从各种不同的服务导入用户电子邮件联系人的最佳方式而烦恼了一段时间,我没有找到一个像样的 .net 解决方案,最终创建了一个界面开源 PHP OpenInviter。然而,这不再适用于 Hotmail/windows live,所以我想我自己可以使用 Live Connect API(使用 REST 和 OAuth2),但是联系人仅返回 email_hashes,这没有用,因为我想要他们的实际电子邮件地址,因为我正在尝试将它们导入到新的电子邮件地址中书。
关于如何做到这一点或者是否可能的任何想法! OAuth、屏幕抓取,无论我不介意什么,我只想完成它。
谢谢
I've been tearing my hair out for a while now about the best way to get import a users email contacts from a variety of different services, I didn't manage to find a decent .net solution and have ended up creating an interface for the open source PHP OpenInviter. However this doesn't work with Hotmail/windows live anymore, so I thought I'd do that myself with the Live Connect API (using REST and OAuth2), however the contacts only return a email_hashes which is no use as I want their actual email addresses, as I'm trying to import them into a new email address book.
Any ideas at all on how to do this or if it's possible at all! OAuth, screen scraping, whatever I'm not fussed I'd just like to get it done.
Thanks
发布评论
评论(2)
显然这个问题没有官方解决方案(请参阅http://social.msdn.microsoft.com/Forums/en-US/messengerconnect/thread/c5bc9b10-6080-40bf-a7ce-951a60efdfcb/#c5bc9b10-6080-40bf-a7ce-951a60efdfcb)。
根据论坛的说法,尝试这样做是违反条款和条件的(尝试诸如屏幕抓取之类的事情)。
Apparently there is no official solution to this problem (see http://social.msdn.microsoft.com/Forums/en-US/messengerconnect/thread/c5bc9b10-6080-40bf-a7ce-951a60efdfcb/#c5bc9b10-6080-40bf-a7ce-951a60efdfcb).
And according to the forums trying to do it is against terms and conditions (trying things like screen scraping).
我也有这个问题。但后来我发现 Google Plus 能够从 Hotmail 帐户中提取联系人,所以我只是研究了 Google Plus 是如何做到这一点的。
只需进入“圈子”页面并寻找类似“邀请者”的功能即可。在那里您可以找到 Hotmail,如果您查看它的工作原理,您会发现当您请求授权时,您需要将 wl.emails 和 wl.contacts_emails 添加到范围Hotmail 用户。
据我所知,您已经熟悉 OAUTH 并且可能只是选择了 wl.basic 作为范围?..
I had this problem too. But then I found out that Google Plus is capable of pulling contacts from Hotmail accounts so I just looked at how Google Plus does it.
Just go the the "circles" page and look for the "inviter"-like functionality. There you find Hotmail, and if you look at how it works, you see that you need to add
wl.emails
andwl.contacts_emails
to the scope when you request authorization from the Hotmail user.As far as I can see you are already familiar with OAUTH and probably just picked
wl.basic
as the scope?..