Get user email from yahoo when user logs in throuh yahoo appHow do I get a YouTube video thumbnail from the YouTube API?How to get yahoo contacts in androidin PHP, confused about MySQL input for new and returning users, when email is a UNIQUE fieldHybridauth LinkedIn - Problems to get full profileHow to get authorizer email id in yahoo api?Get Yahoo Contact List in C# applicationhow get email of logged in users by yahooyahoo oauth authentication email scopeFacebook SDK doesn't return an email from userHow to get Yahoo Gemini Publisher API reports?
Was there ever any real use for a 6800-based Apple I?
Page contents aligning weirdly in LaTeX/Overleaf
What are the implications of the new alleged key recovery attack preprint on SIMON?
Reaction of borax with NaOH
Two researchers want to work on the same extension to my paper. Who to help?
What happens if a creature that would fight isn't on the battlefield anymore?
Is taking modulus on both sides of an equation valid?
How to cope with regret and shame about not fully utilizing opportunities during PhD?
What is Plautus’s pun about frustum and frustrum?
Why is this int array not passed as an object vararg array?
Was this character’s old age look CGI or make-up?
How can this pool heater gas line be disconnected?
How are Core iX names like Core i5, i7 related to Haswell, Ivy Bridge?
Is it a bad idea to replace pull-up resistors with hard pull-ups?
Why was Thor doubtful about his worthiness to Mjolnir?
Why was the Ancient One so hesitant to teach Dr. Strange the art of sorcery?
What's the word for the soldier salute?
How can a Lich look like a human without magic?
As programers say: Strive to be lazy
Was this a power play by Daenerys?
Exclude loop* snap devices from lsblk output?
What are the components of a legend (in the sense of a tale, not a figure legend)?
SSD - Disk is OK, one bad sector
Should these notes be played as a chord or one after another?
Get user email from yahoo when user logs in throuh yahoo app
How do I get a YouTube video thumbnail from the YouTube API?How to get yahoo contacts in androidin PHP, confused about MySQL input for new and returning users, when email is a UNIQUE fieldHybridauth LinkedIn - Problems to get full profileHow to get authorizer email id in yahoo api?Get Yahoo Contact List in C# applicationhow get email of logged in users by yahooyahoo oauth authentication email scopeFacebook SDK doesn't return an email from userHow to get Yahoo Gemini Publisher API reports?
.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty height:90px;width:728px;box-sizing:border-box;
Is there is any way to retrieve users email address. I am using hybrid auth. Login works no email address obtained only got access userid , display name & display picture.
Is there any method to get access to email address of user,
Everything is working fine except . The response gives a blank email
class Yahoo extends OAuth2
protected $scope = 'sdct-r';
protected $apiBaseUrl = 'https://social.yahooapis.com/v1/';
protected $authorizeUrl = 'https://api.login.yahoo.com/oauth2/request_auth';
protected $accessTokenUrl = 'https://api.login.yahoo.com/oauth2/get_token';
protected $apiDocumentation = 'https://developer.yahoo.com/oauth2/guide/';
protected $userId = null;
protected function initialize()
parent::initialize();
$this->tokenExchangeHeaders = [
'Authorization' => 'Basic ' . base64_encode($this->clientId . ':' . $this->clientSecret) ];
protected function getCurrentUserId()
if ($this->userId)
return $this->userId;
$response = $this->apiRequest('me/guid', 'GET', [ 'format' => 'json']);
$data = new DataCollection($response);
if (! $data->filter('guid')->exists('value'))
throw new UnexpectedApiResponseException('Provider API returned an unexpected response.');
return $this->userId = $data->filter('guid')->get('value');
public function getUserProfile()
// Retrieve current user guid if needed
$this->getCurrentUserId();
$response = $this->apiRequest('user/' . $this->userId . '/profile', 'GET', [ 'format' => 'json']);
$data = new DataCollection($response);
if (! $data->exists('profile'))
throw new UnexpectedApiResponseException('Provider API returned an unexpected response.');
$userProfile = new UserProfile();
$data = $data->filter('profile');
$userProfile->identifier = $data->get('guid');
$userProfile->firstName = $data->get('givenName');
$userProfile->lastName = $data->get('familyName');
$userProfile->displayName = $data->get('nickname');
$userProfile->photoURL = $data->filter('image')->get('imageUrl');
$userProfile->profileURL = $data->get('profileUrl');
$userProfile->language = $data->get('lang');
$userProfile->address = $data->get('location');
if ('F' == $data->get('gender'))
$userProfile->gender = 'female';
elseif ('M' == $data->get('gender'))
$userProfile->gender = 'male';
// I ain't getting no emails on my tests. go figures..
foreach ($data->filter('emails')->toArray() as $item)
if ($item->primary)
$userProfile->email = $item->handle;
$userProfile->emailVerified = $item->handle;
return $userProfile;
php authentication yahoo yahoo-api hybridauth
add a comment |
Is there is any way to retrieve users email address. I am using hybrid auth. Login works no email address obtained only got access userid , display name & display picture.
Is there any method to get access to email address of user,
Everything is working fine except . The response gives a blank email
class Yahoo extends OAuth2
protected $scope = 'sdct-r';
protected $apiBaseUrl = 'https://social.yahooapis.com/v1/';
protected $authorizeUrl = 'https://api.login.yahoo.com/oauth2/request_auth';
protected $accessTokenUrl = 'https://api.login.yahoo.com/oauth2/get_token';
protected $apiDocumentation = 'https://developer.yahoo.com/oauth2/guide/';
protected $userId = null;
protected function initialize()
parent::initialize();
$this->tokenExchangeHeaders = [
'Authorization' => 'Basic ' . base64_encode($this->clientId . ':' . $this->clientSecret) ];
protected function getCurrentUserId()
if ($this->userId)
return $this->userId;
$response = $this->apiRequest('me/guid', 'GET', [ 'format' => 'json']);
$data = new DataCollection($response);
if (! $data->filter('guid')->exists('value'))
throw new UnexpectedApiResponseException('Provider API returned an unexpected response.');
return $this->userId = $data->filter('guid')->get('value');
public function getUserProfile()
// Retrieve current user guid if needed
$this->getCurrentUserId();
$response = $this->apiRequest('user/' . $this->userId . '/profile', 'GET', [ 'format' => 'json']);
$data = new DataCollection($response);
if (! $data->exists('profile'))
throw new UnexpectedApiResponseException('Provider API returned an unexpected response.');
$userProfile = new UserProfile();
$data = $data->filter('profile');
$userProfile->identifier = $data->get('guid');
$userProfile->firstName = $data->get('givenName');
$userProfile->lastName = $data->get('familyName');
$userProfile->displayName = $data->get('nickname');
$userProfile->photoURL = $data->filter('image')->get('imageUrl');
$userProfile->profileURL = $data->get('profileUrl');
$userProfile->language = $data->get('lang');
$userProfile->address = $data->get('location');
if ('F' == $data->get('gender'))
$userProfile->gender = 'female';
elseif ('M' == $data->get('gender'))
$userProfile->gender = 'male';
// I ain't getting no emails on my tests. go figures..
foreach ($data->filter('emails')->toArray() as $item)
if ($item->primary)
$userProfile->email = $item->handle;
$userProfile->emailVerified = $item->handle;
return $userProfile;
php authentication yahoo yahoo-api hybridauth
add a comment |
Is there is any way to retrieve users email address. I am using hybrid auth. Login works no email address obtained only got access userid , display name & display picture.
Is there any method to get access to email address of user,
Everything is working fine except . The response gives a blank email
class Yahoo extends OAuth2
protected $scope = 'sdct-r';
protected $apiBaseUrl = 'https://social.yahooapis.com/v1/';
protected $authorizeUrl = 'https://api.login.yahoo.com/oauth2/request_auth';
protected $accessTokenUrl = 'https://api.login.yahoo.com/oauth2/get_token';
protected $apiDocumentation = 'https://developer.yahoo.com/oauth2/guide/';
protected $userId = null;
protected function initialize()
parent::initialize();
$this->tokenExchangeHeaders = [
'Authorization' => 'Basic ' . base64_encode($this->clientId . ':' . $this->clientSecret) ];
protected function getCurrentUserId()
if ($this->userId)
return $this->userId;
$response = $this->apiRequest('me/guid', 'GET', [ 'format' => 'json']);
$data = new DataCollection($response);
if (! $data->filter('guid')->exists('value'))
throw new UnexpectedApiResponseException('Provider API returned an unexpected response.');
return $this->userId = $data->filter('guid')->get('value');
public function getUserProfile()
// Retrieve current user guid if needed
$this->getCurrentUserId();
$response = $this->apiRequest('user/' . $this->userId . '/profile', 'GET', [ 'format' => 'json']);
$data = new DataCollection($response);
if (! $data->exists('profile'))
throw new UnexpectedApiResponseException('Provider API returned an unexpected response.');
$userProfile = new UserProfile();
$data = $data->filter('profile');
$userProfile->identifier = $data->get('guid');
$userProfile->firstName = $data->get('givenName');
$userProfile->lastName = $data->get('familyName');
$userProfile->displayName = $data->get('nickname');
$userProfile->photoURL = $data->filter('image')->get('imageUrl');
$userProfile->profileURL = $data->get('profileUrl');
$userProfile->language = $data->get('lang');
$userProfile->address = $data->get('location');
if ('F' == $data->get('gender'))
$userProfile->gender = 'female';
elseif ('M' == $data->get('gender'))
$userProfile->gender = 'male';
// I ain't getting no emails on my tests. go figures..
foreach ($data->filter('emails')->toArray() as $item)
if ($item->primary)
$userProfile->email = $item->handle;
$userProfile->emailVerified = $item->handle;
return $userProfile;
php authentication yahoo yahoo-api hybridauth
Is there is any way to retrieve users email address. I am using hybrid auth. Login works no email address obtained only got access userid , display name & display picture.
Is there any method to get access to email address of user,
Everything is working fine except . The response gives a blank email
class Yahoo extends OAuth2
protected $scope = 'sdct-r';
protected $apiBaseUrl = 'https://social.yahooapis.com/v1/';
protected $authorizeUrl = 'https://api.login.yahoo.com/oauth2/request_auth';
protected $accessTokenUrl = 'https://api.login.yahoo.com/oauth2/get_token';
protected $apiDocumentation = 'https://developer.yahoo.com/oauth2/guide/';
protected $userId = null;
protected function initialize()
parent::initialize();
$this->tokenExchangeHeaders = [
'Authorization' => 'Basic ' . base64_encode($this->clientId . ':' . $this->clientSecret) ];
protected function getCurrentUserId()
if ($this->userId)
return $this->userId;
$response = $this->apiRequest('me/guid', 'GET', [ 'format' => 'json']);
$data = new DataCollection($response);
if (! $data->filter('guid')->exists('value'))
throw new UnexpectedApiResponseException('Provider API returned an unexpected response.');
return $this->userId = $data->filter('guid')->get('value');
public function getUserProfile()
// Retrieve current user guid if needed
$this->getCurrentUserId();
$response = $this->apiRequest('user/' . $this->userId . '/profile', 'GET', [ 'format' => 'json']);
$data = new DataCollection($response);
if (! $data->exists('profile'))
throw new UnexpectedApiResponseException('Provider API returned an unexpected response.');
$userProfile = new UserProfile();
$data = $data->filter('profile');
$userProfile->identifier = $data->get('guid');
$userProfile->firstName = $data->get('givenName');
$userProfile->lastName = $data->get('familyName');
$userProfile->displayName = $data->get('nickname');
$userProfile->photoURL = $data->filter('image')->get('imageUrl');
$userProfile->profileURL = $data->get('profileUrl');
$userProfile->language = $data->get('lang');
$userProfile->address = $data->get('location');
if ('F' == $data->get('gender'))
$userProfile->gender = 'female';
elseif ('M' == $data->get('gender'))
$userProfile->gender = 'male';
// I ain't getting no emails on my tests. go figures..
foreach ($data->filter('emails')->toArray() as $item)
if ($item->primary)
$userProfile->email = $item->handle;
$userProfile->emailVerified = $item->handle;
return $userProfile;
php authentication yahoo yahoo-api hybridauth
php authentication yahoo yahoo-api hybridauth
asked Mar 23 at 12:06
Midhun RndsllcMidhun Rndsllc
82
82
add a comment |
add a comment |
1 Answer
1
active
oldest
votes
from the Yahoo guide:
The extended profile scope sdpp-w, in addition to the Claims given
above, also returns the following Claims:
email - the email ID of the user
email_verified - the Boolean flag letting Clients know if the given email address has been verified by Yahoo.
Please upgrade Hybridauth to 3.0-rc.10 which is fixed that issue for Yahoo provider.
See original PR with fix: https://github.com/hybridauth/hybridauth/pull/986
Thank you.. Changed scope to sdpp-w and it works
– Midhun Rndsllc
Mar 28 at 5:04
add a comment |
Your Answer
StackExchange.ifUsing("editor", function ()
StackExchange.using("externalEditor", function ()
StackExchange.using("snippets", function ()
StackExchange.snippets.init();
);
);
, "code-snippets");
StackExchange.ready(function()
var channelOptions =
tags: "".split(" "),
id: "1"
;
initTagRenderer("".split(" "), "".split(" "), channelOptions);
StackExchange.using("externalEditor", function()
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled)
StackExchange.using("snippets", function()
createEditor();
);
else
createEditor();
);
function createEditor()
StackExchange.prepareEditor(
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader:
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
,
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
);
);
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f55313554%2fget-user-email-from-yahoo-when-user-logs-in-throuh-yahoo-app%23new-answer', 'question_page');
);
Post as a guest
Required, but never shown
1 Answer
1
active
oldest
votes
1 Answer
1
active
oldest
votes
active
oldest
votes
active
oldest
votes
from the Yahoo guide:
The extended profile scope sdpp-w, in addition to the Claims given
above, also returns the following Claims:
email - the email ID of the user
email_verified - the Boolean flag letting Clients know if the given email address has been verified by Yahoo.
Please upgrade Hybridauth to 3.0-rc.10 which is fixed that issue for Yahoo provider.
See original PR with fix: https://github.com/hybridauth/hybridauth/pull/986
Thank you.. Changed scope to sdpp-w and it works
– Midhun Rndsllc
Mar 28 at 5:04
add a comment |
from the Yahoo guide:
The extended profile scope sdpp-w, in addition to the Claims given
above, also returns the following Claims:
email - the email ID of the user
email_verified - the Boolean flag letting Clients know if the given email address has been verified by Yahoo.
Please upgrade Hybridauth to 3.0-rc.10 which is fixed that issue for Yahoo provider.
See original PR with fix: https://github.com/hybridauth/hybridauth/pull/986
Thank you.. Changed scope to sdpp-w and it works
– Midhun Rndsllc
Mar 28 at 5:04
add a comment |
from the Yahoo guide:
The extended profile scope sdpp-w, in addition to the Claims given
above, also returns the following Claims:
email - the email ID of the user
email_verified - the Boolean flag letting Clients know if the given email address has been verified by Yahoo.
Please upgrade Hybridauth to 3.0-rc.10 which is fixed that issue for Yahoo provider.
See original PR with fix: https://github.com/hybridauth/hybridauth/pull/986
from the Yahoo guide:
The extended profile scope sdpp-w, in addition to the Claims given
above, also returns the following Claims:
email - the email ID of the user
email_verified - the Boolean flag letting Clients know if the given email address has been verified by Yahoo.
Please upgrade Hybridauth to 3.0-rc.10 which is fixed that issue for Yahoo provider.
See original PR with fix: https://github.com/hybridauth/hybridauth/pull/986
answered Mar 25 at 22:26
Oleg KuzavaOleg Kuzava
311
311
Thank you.. Changed scope to sdpp-w and it works
– Midhun Rndsllc
Mar 28 at 5:04
add a comment |
Thank you.. Changed scope to sdpp-w and it works
– Midhun Rndsllc
Mar 28 at 5:04
Thank you.. Changed scope to sdpp-w and it works
– Midhun Rndsllc
Mar 28 at 5:04
Thank you.. Changed scope to sdpp-w and it works
– Midhun Rndsllc
Mar 28 at 5:04
add a comment |
Thanks for contributing an answer to Stack Overflow!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f55313554%2fget-user-email-from-yahoo-when-user-logs-in-throuh-yahoo-app%23new-answer', 'question_page');
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown