2

我想编写一个 php 脚本,使用它我可以从 hotmail/windows live 导入用户的通讯录。我正在使用 Messenger Connect OAuth Wrap api 来做到这一点。获得访问令牌后,我使用http://apis.live.net/V4.1/cid- '.$uid.'/Contacts/AllContacts .. 检索了用户的联系人,尽管它返回的是电子邮件哈希而不是电子邮件地址。我查看了所有文档..它说使用上面的调用它将返回电子邮件哈希而不是地址。并且没有提到其他方法来获取实际的电子邮件地址。有人可以在这方面指导我吗?

4

1 回答 1

1

I know its an old post but i got the solution of your problem .

I have faced same situation in the my project too.

The solution is extend the scope of your retrieving data.

https://login.live.com/oauth20_authorize.srf?client_id={APPID}&`scope=wl.signin%20wl.basic%20wl.emails%20wl.contacts_emails&response_type=code&redirect_uri=http://{REDIRECT_URI}`

Then you will get actual email.

Hope this helps someone else. :)

于 2013-05-31T09:00:19.690 回答