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;








1















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;












share|improve this question




























    1















    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;












    share|improve this question
























      1












      1








      1








      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;












      share|improve this question














      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






      share|improve this question













      share|improve this question











      share|improve this question




      share|improve this question










      asked Mar 23 at 12:06









      Midhun RndsllcMidhun Rndsllc

      82




      82






















          1 Answer
          1






          active

          oldest

          votes


















          0














          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






          share|improve this answer























          • Thank you.. Changed scope to sdpp-w and it works

            – Midhun Rndsllc
            Mar 28 at 5:04











          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
          );



          );













          draft saved

          draft discarded


















          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









          0














          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






          share|improve this answer























          • Thank you.. Changed scope to sdpp-w and it works

            – Midhun Rndsllc
            Mar 28 at 5:04















          0














          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






          share|improve this answer























          • Thank you.. Changed scope to sdpp-w and it works

            – Midhun Rndsllc
            Mar 28 at 5:04













          0












          0








          0







          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






          share|improve this answer













          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







          share|improve this answer












          share|improve this answer



          share|improve this answer










          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

















          • 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



















          draft saved

          draft discarded
















































          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.




          draft saved


          draft discarded














          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





















































          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







          Popular posts from this blog

          Kamusi Yaliyomo Aina za kamusi | Muundo wa kamusi | Faida za kamusi | Dhima ya picha katika kamusi | Marejeo | Tazama pia | Viungo vya nje | UrambazajiKuhusu kamusiGo-SwahiliWiki-KamusiKamusi ya Kiswahili na Kiingerezakuihariri na kuongeza habari

          SQL error code 1064 with creating Laravel foreign keysForeign key constraints: When to use ON UPDATE and ON DELETEDropping column with foreign key Laravel error: General error: 1025 Error on renameLaravel SQL Can't create tableLaravel Migration foreign key errorLaravel php artisan migrate:refresh giving a syntax errorSQLSTATE[42S01]: Base table or view already exists or Base table or view already exists: 1050 Tableerror in migrating laravel file to xampp serverSyntax error or access violation: 1064:syntax to use near 'unsigned not null, modelName varchar(191) not null, title varchar(191) not nLaravel cannot create new table field in mysqlLaravel 5.7:Last migration creates table but is not registered in the migration table

          은진 송씨 목차 역사 본관 분파 인물 조선 왕실과의 인척 관계 집성촌 항렬자 인구 같이 보기 각주 둘러보기 메뉴은진 송씨세종실록 149권, 지리지 충청도 공주목 은진현