0

Getting the email address.

Hi im new here. Im using the Profile API. It returns the proper output but It does not have the Email address. I would like to know where can i get the email address of the current login user.

by
2 Replies
  • If youre wondering whats the response of the profile API. Here is its response..


    Array
    (
    [profile] => Array
    (
    [uri] => http://social.yahooapis.com/v1/user/XXXXXXXXX/profile
    [guid] => XXXXXXXXXXXX
    [birthYear] => 1983
    [created] => 2009-09-29T05:05:12Z
    [displayAge] => 26
    [familyName] => soriano
    [gender] => M
    [givenName] => lester
    [image] => Array
    (
    [height] => 192
    [imageUrl] => http://l.yimg.com/us.yimg.com/i/identity/nopic_192.gif
    [size] => 192x192
    [width] => 192
    )

    [interests] => Array
    (
    [0] => Array
    (
    [declaredInterests] => Array
    (
    [0] =>
    )

    [interestCategory] => prfFavHobbies
    )

    [1] => Array
    (
    [declaredInterests] => Array
    (
    [0] =>
    )

    [interestCategory] => prfFavMusic
    )

    [2] => Array
    (
    [declaredInterests] => Array
    (
    [0] =>
    )

    [interestCategory] => prfFavMovies
    )

    [3] => Array
    (
    [declaredInterests] => Array
    (
    [0] =>
    )

    [interestCategory] => prfFavFutureMovies
    )

    [4] => Array
    (
    [declaredInterests] => Array
    (
    [0] =>
    )

    [interestCategory] => prfFavBooks
    )

    [5] => Array
    (
    [declaredInterests] => Array
    (
    [0] =>
    )

    [interestCategory] => prfFavFutureBooks
    )

    [6] => Array
    (
    [declaredInterests] => Array
    (
    [0] =>
    )

    [interestCategory] => prfFavQuotes
    )

    [7] => Array
    (
    [declaredInterests] => Array
    (
    [0] =>
    )

    [interestCategory] => prfFavFoods
    )

    [8] => Array
    (
    [declaredInterests] => Array
    (
    [0] =>
    )

    [interestCategory] => prfFavPlaces
    )

    [9] => Array
    (
    [declaredInterests] => Array
    (
    [0] =>
    )

    [interestCategory] => prfFavFuturePlaces
    )

    [10] => Array
    (
    [declaredInterests] => Array
    (
    [0] =>
    )

    [interestCategory] => prfFavAelse
    )

    )

    [lang] => en-US
    [location] => Beverly Hills, California
    [memberSince] => 2007-09-24T13:53:54Z
    [nickname] => lester
    [profileUrl] => http://pulse.yahoo.com/_XXXXX
    [status] => Array
    (
    [lastStatusModified] => 2010-06-17T08:31:05Z
    [linkTo] =>
    [message] => lester
    )

    [updated] => 2010-06-17T08:31:05Z
    [isConnected] =>
    )

    )


    as you can see there is no email address in the response
    0
  • QUOTE (lester @ Jul 28 2010, 02:26 AM) <{POST_SNAPBACK}>
    If youre wondering whats the response of the profile API. Here is its response..


    Array
    (
    [profile] => Array
    (
    [uri] => http://social.yahooapis.com/v1/user/XXXXXXXXX/profile
    [guid] => XXXXXXXXXXXX
    [birthYear] => 1983
    [created] => 2009-09-29T05:05:12Z
    [displayAge] => 26
    [familyName] => soriano
    [gender] => M
    [givenName] => lester
    [image] => Array
    (
    [height] => 192
    [imageUrl] => http://l.yimg.com/us.yimg.com/i/identity/nopic_192.gif
    [size] => 192x192
    [width] => 192
    )

    [interests] => Array
    (
    [0] => Array
    (
    [declaredInterests] => Array
    (
    [0] =>
    )

    [interestCategory] => prfFavHobbies
    )

    [1] => Array
    (
    [declaredInterests] => Array
    (
    [0] =>
    )

    [interestCategory] => prfFavMusic
    )

    [2] => Array
    (
    [declaredInterests] => Array
    (
    [0] =>
    )

    [interestCategory] => prfFavMovies
    )

    [3] => Array
    (
    [declaredInterests] => Array
    (
    [0] =>
    )

    [interestCategory] => prfFavFutureMovies
    )

    [4] => Array
    (
    [declaredInterests] => Array
    (
    [0] =>
    )

    [interestCategory] => prfFavBooks
    )

    [5] => Array
    (
    [declaredInterests] => Array
    (
    [0] =>
    )

    [interestCategory] => prfFavFutureBooks
    )

    [6] => Array
    (
    [declaredInterests] => Array
    (
    [0] =>
    )

    [interestCategory] => prfFavQuotes
    )

    [7] => Array
    (
    [declaredInterests] => Array
    (
    [0] =>
    )

    [interestCategory] => prfFavFoods
    )

    [8] => Array
    (
    [declaredInterests] => Array
    (
    [0] =>
    )

    [interestCategory] => prfFavPlaces
    )

    [9] => Array
    (
    [declaredInterests] => Array
    (
    [0] =>
    )

    [interestCategory] => prfFavFuturePlaces
    )

    [10] => Array
    (
    [declaredInterests] => Array
    (
    [0] =>
    )

    [interestCategory] => prfFavAelse
    )

    )

    [lang] => en-US
    [location] => Beverly Hills, California
    [memberSince] => 2007-09-24T13:53:54Z
    [nickname] => lester
    [profileUrl] => http://pulse.yahoo.com/_XXXXX
    [status] => Array
    (
    [lastStatusModified] => 2010-06-17T08:31:05Z
    [linkTo] =>
    [message] => lester
    )

    [updated] => 2010-06-17T08:31:05Z
    [isConnected] =>
    )

    )


    as you can see there is no email address in the response


    A user must share his email address with "everyone" for it to show up in a profile API response. You can access this functionality by visiting pulse.yahoo.com -> Account Information -> Update Your Contact Information
    0

Recent Posts

in Social Directory API