Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Yahoo email retriever social API #125

Open
segurofacildeveloper opened this issue Oct 15, 2018 · 0 comments
Open

Yahoo email retriever social API #125

segurofacildeveloper opened this issue Oct 15, 2018 · 0 comments

Comments

@segurofacildeveloper
Copy link

Yahoo not show email permission to all new users and projects...
so, social API put email on other scope...

I used this code to retrieve principal email from yahoo's response.
Maybe this help your API, or not, i posted to try to help.

YahooClient.cs

userInfo.Email = response.SelectToken("emails")?.ToString();
if (string.IsNullOrEmpty(userInfo.Email))
{
try
{
userInfo.Email = response.SelectTokens("profile.emails").Values().Where(o => o["primary"].ToString().Equals("True")).FirstOrDefault()["handle"].ToString();
}
catch
{ }
}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants