我想实现雅虎和我的应用程序之间的集成(通过HWIOAuthBundle),一切顺利,但在雅虎回复中,我发现没有电子邮件地址!对于我的用户注册,我确实需要电子邮件地址。
任何人都可以帮助我并说明哪个范围为您提供了用户电子邮件地址? 我看了https://developer.yahoo.com/social/rest_api_guide/extended-profile-resource.html并没有找到答案。
我可以选择:
感谢。
============================
样本回复:
{["路径":受保护] => array(7){[" identifier"] => string(12)" profile.guid" ["昵称"] => string(16)" profile.nickname" ["姓名"] => NULL ["姓氏"] => NULL [" realname"] => string(17)" profile.givenName" ["电子邮件"] => NULL [" profilepicture"] => NULL}
["响应":保护] => array(1){[" profile"] => array(22){[" guid"] =>字符串(26)" ..." [" ageCategory"] =>字符串(1)" A" ["创建"] => string(20)" 2016-06-06T13:33:40Z" ["图像"] => array(4){[" height"] => int(192)[" imageUrl"] => string(56)" https://s.yimg.com/dh/ap/social/profile/profile_b192.png" ["大小"] => string(7)" 192x192" ["宽度"] => int(192)} ["国际"] => string(2)" us" ["管辖权"] => string(2)" us" ["朗"] => string(5)" en-US" [" memberSince"] => string(20)" 2016-06-06T09:41:48Z" [" migrationSource"] => int(1)["昵称"] => string(6)" Raasco" [" notStored"] => bool(true)[" nux"] =>字符串(1)" 3" [" profileMode"] =>字符串(6)" PUBLIC" [" profileStatus"] => string(6)" ACTIVE" [" profileUrl"] =>字符串(51)" http://profile.yahoo.com/ ..." ["更新"] => string(20)" 2016-06-06T13:33:40Z" [" isConnected"] => bool(false)[" profileHidden"] => bool(false)[" bdRestricted"] => bool(true)[" profilePermission"] => string(7)" PRIVATE" [" URI"] =>字符串(71)" https://social.yahooapis.com/v1/user/.../profile" ["高速缓存"] => bool(true)}}
答案 0 :(得分:0)
获取用户电子邮件地址的答案是Contacts
和Profiles(soacil directory)
API权限。
请注意雅虎将为您提供所有用户的电子邮件,并附带标签。然后你可以获取primary
一个。