Home > Backend Development > PHP Tutorial > 关于施用api提取msn联系人的困惑

关于施用api提取msn联系人的困惑

WBOY
Release: 2016-06-13 11:08:27
Original
1009 people have browsed it

关于使用api提取msn联系人的困惑
我按照msn官方http://connect.windowslive.cn/developer/development.html#s3
的提取好友的步骤,注册了client_id,一步一步实现,

为什么最后提取出来的联系人只有联系人姓名,而地址却是emai_hashes,不可识别的东西?

提取出来的数据如:


{ "data": [ { "id": "contact.125d7e31000000000000000000000000", "first_name": "wang", "last_name": "nan", "name": "wang nan", "gender": null, "is_friend": false, "is_favorite": false, "user_id": null, "email_hashes": [ "03387e3c35e6e911080e3b356147576a415089a71f8c19f588b86d8920b21415" ], "updated_time": "2012-07-03T15:25:40+0000" }, { "id": "contact.ea57daaa000000000000000000000000", "first_name": "li", "last_name": "yong", "name": "li yong", "gender": null, "is_friend": false, "is_favorite": false, "user_id": null, "email_hashes": [ "90dfd9299c66e18ec2984f444381920064045de0c6d8835e588c5c6e4e5a4515" ], "updated_time": "2012-07-03T15:25:40+0000" } ] }
Copy after login

------解决方案--------------------
这个当然是使用权限的问题。
------解决方案--------------------
是的吧,你在仔细看看他的说明,或许有其他办法
------解决方案--------------------

引用:
引用:他不是说的很明白了吗?
3. 获取MSN好友列表
当用户登录后并且允许wl.basic 权限范围时,并且有了access_token,这时你可以请求用户的联系人列表了,获取到的联系人列表中的email地址是经过hash后的地址。


是不是说,只能提取email_hashes,无法提取到明文email?

一年前我做过的。
很明确的告诉你,是的!不提供email明文地址。。。
想要获取email,msn提供的这个接口根本就没什么用,你还是另找途径吧。
Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template