![Picture of Sebas Picture of Sebas](/graphics/unknown.gif)
Sebas - 2017-08-21 20:13:30
Hello Manuel,
Please kindly check this weird situation, your class returns this response:
stdClass Object
(
[query] => stdClass Object
(
[count] => 1
[created] => 2017-08-21T20:03:20Z
[lang] => en-US
[results] => stdClass Object
(
[profile] => stdClass Object
(
[guid] => EIC2SKUVT2GOCBMEGHTQPOSRWI
[ageCategory] => A
[image] => stdClass Object
(
[height] => 192
[imageUrl] => https://s.yimg.com/wv/images/6770564afbd5e7ba55779337fa4cd4b6_192.jpeg
[size] => 192x192
[width] => 192
)
[lang] => en-US
[memberSince] => 2013-05-27T21:23:16Z
[nickname] => John
[profileUrl] => http://profile.yahoo.com/EIC2SKUVT2GOCBMEGHTQPOSRWI
[isConnected] => false
[bdRestricted] => true
)
)
)
)
but when I checking here http://developer.yahoo.com/yql/console/?q=select%20*%20from%20social.profile%20where%20guid%3Dme it prints this response:
{
"query": {
"count": 1,
"created": "2017-08-21T19:50:16Z",
"lang": "en-US",
"results": {
"profile": {
"guid": "EIC2SKUVT2GOCBMEGHTQPOSRWI",
"ageCategory": "A",
"emails": [
{
"handle": "john@gmail.com",
"id": "10",
"type": "HOME"
},
{
"handle": "johnny@yahoo.com",
"id": "1",
"primary": "true",
"type": "HOME"
}
],
"familyName": "McGrey",
"gender": "M",
"givenName": "John",
"image": {
"height": "192",
"imageUrl": "https://s.yimg.com/wv/images/6770564afbd5e7ba55779337fa4cd4b6_192.jpeg",
"size": "192x192",
"width": "192"
},
"lang": "en-US",
"memberSince": "2013-05-27T21:23:16Z",
"nickname": "John",
"profileUrl": "http://profile.yahoo.com/EIC2SKUVT2GOCBMEGHTQPOSRWI",
"timeZone": "America/Los_Angeles",
"isConnected": "true",
"bdRestricted": "true"
}
}
}
}
As you can see the response returns User's email as well. Would it be possible for you to correct your class for Yahoo provider to get user's email?!
Also Yahoo has released oAuth v2.0, and would be good to use this version for sure.
Thanks in advance!