获取用户电子邮件Yahoo Oauth(使用Scribe-Java API) [英] Getting user Email Yahoo Oauth (using Scribe-Java API)

查看:153
本文介绍了获取用户电子邮件Yahoo Oauth(使用Scribe-Java API)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

尝试使用Oauth系统从Yahoo访问用户个人资料,为此,我正在使用Scribe-Java API 它的工作正常,但有一个问题是我确定与我使用的API没有关系

Trying to access user profile from Yahoo using Oauth system and for that i am taking help of Scribe-Java API its working fine except one issue whcih i am sure not related to the API i am using

在我的Yahoo个人资料中,我具有以下设置

In my yahoo profile i have following settings

Yahoo! Email  --->amy_yahoo_id@yahoo.com  

Email--->other_id@gmail.com Primary - Change

所以我要返回的是other_id@gmail.com,这意味着我无法获得已登录用户的正确信息.一旦获得Guid,我便会将请求发送到以下URL

So what i am getting back is other_id@gmail.com which means i am not able to get correct information of the logged in user.Once i am able to get guid i am sending the request to following URL

http://social.yahooapis.com/v1/user/guid/profile?format=json

以任何方式我都可以获取与用户关联的yahoo邮件ID来代替其他ID,即使该ID设置为主要或其他任何电子邮件ID,我想要得到的也是通过他/她已登录到系统.

any way i can get the yahoo mail id to which user is associated in place of other id even if that is set as primary or along with any other email id all i want is to get the yahoo mail id of the user by which he/she logged in to the system.

推荐答案

您是否有任何特定原因必须获取yahoo帐户的电子邮件?

Is there any specific reason you must get the yahoo account's email?

我也面临着与您先前相同的问题. 经过深思熟虑,主电子邮件意味着成为用户的可联系电子邮件. 因此,这可能就是雅虎采用这种方式的原因. 当然,如果他们可以再提供一封电子邮件(即帐户的电子邮件),那将是很好的. 但是,如果您只想拥有唯一的标识符,则可以使用guid. 因此,也许您可​​以再次检查,您的要求必须有该帐户的电子邮件吗? 还是您只需要一封电子邮件,用户将其设置为主邮件,因为他们希望该电子邮件可以与他们联系?

I also facing the same problem as you earlier. After think over, primary email means to be the contactable email for the user. So may be that's why yahoo make it that way. Of course it will be good if they can provide one more email which is account's email. But if you just want to have unique identifier, we can use the guid. So may be you can check again, does your requirement must have the account's email? or you just need an email where user set primary because they preferred to be contactable by that email?

现在,我将仅使用Yahoo的主要电子邮件退回信息作为我的OAuth

Now I will just make use of the primary email return from Yahoo for my OAuth

这篇关于获取用户电子邮件Yahoo Oauth(使用Scribe-Java API)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆