0

How to get Yahoo!Id with Oauth ?

After Oauth i have an accessToken.
Then i'm using this "http://social.yahooapis.com/v1/user/{0}/profile" to get user profile
there are some emails and the primary is not yahoo!Id.

<?xml version="1.0" encoding="utf-8"?>
<profile xmlns="http://social.yahooapis.com/v1/schema.rng" xmlns:yahoo="http://www.yahooapis.com/v1/base.rng" yahoo:uri="http://social.yahooapis.com/v1/user/CRNKHHGOVWWLQFTZQUTC4NZQY4/profile">
  <guid>CRNKHHGOVWWLQFTZQUTC4NZQY4</guid>
  <addresses>
    <city></city>
    <country>VN</country>
    <current>true</current>
    <id>10</id>
    <postalCode>10000</postalCode>
    <state></state>
    <street></street>
    <type>HOME</type>
  </addresses>
  <addresses>
    <city>no name</city>
    <country>VN</country>
    <current>true</current>
    <id>11</id>
    <postalCode>1000</postalCode>
    <state>NO NAME</state>
    <street>no name</street>
    <type>WORK</type>
  </addresses>
  <birthYear>1990</birthYear>
  <birthdate>3/12</birthdate>
  <created>2008-10-08T13:29:13Z</created>
  <disclosures>
    <name>bd</name>
    <seen>2011-04-15T02:15:35Z</seen>
    <version>1</version>
  </disclosures>
  <displayAge>21</displayAge>
  <emails>
    <handle>apollo13_vn@yahoo.com</handle>
    <id>12</id>
    <type>HOME</type>
  </emails>
  <emails>
    <handle>nguyenmanhtam123@gmail.com</handle>
    <id>13</id>
    <type>HOME</type>
  </emails>
  <emails>
    <handle>nguyenmanhtam123@yahoo.com</handle>
    <id>14</id>
    <primary>true</primary>
    <type>HOME</type>
  </emails>
  <familyName>Tam</familyName>
  <gender>UNSPECIFIED</gender>
  <givenName>Nguyen</givenName>
  <image>
    <height>225</height>
    <imageUrl>http://avatars.zenfs.com/users/15XYNNehYAAECP4E_KI4cAw==.large.png</imageUrl>
    <size>150x225</size>
    <width>150</width>
  </image>
  <interests>
    <declaredInterests></declaredInterests>
    <interestCategory>prfFavHobbies</interestCategory>
  </interests>
  <interests>
    <declaredInterests></declaredInterests>
    <interestCategory>prfFavMusic</interestCategory>
  </interests>
  <interests>
    <declaredInterests></declaredInterests>
    <interestCategory>prfFavMovies</interestCategory>
  </interests>
  <interests>
    <declaredInterests></declaredInterests>
    <interestCategory>prfFavFutureMovies</interestCategory>
  </interests>
  <interests>
    <declaredInterests></declaredInterests>
    <interestCategory>prfFavBooks</interestCategory>
  </interests>
  <interests>
    <declaredInterests></declaredInterests>
    <interestCategory>prfFavFutureBooks</interestCategory>
  </interests>
  <interests>
    <declaredInterests></declaredInterests>
    <interestCategory>prfFavQuotes</interestCategory>
  </interests>
  <interests>
    <declaredInterests></declaredInterests>
    <interestCategory>prfFavFoods</interestCategory>
  </interests>
  <interests>
    <declaredInterests></declaredInterests>
    <interestCategory>prfFavPlaces</interestCategory>
  </interests>
  <interests>
    <declaredInterests></declaredInterests>
    <interestCategory>prfFavFuturePlaces</interestCategory>
  </interests>
  <interests>
    <declaredInterests></declaredInterests>
    <interestCategory>prfFavAelse</interestCategory>
  </interests>
  <lang>en-US</lang>
  <location>Viet Nam</location>
  <memberSince>2002-12-02T05:22:50Z</memberSince>
  <nickname>tamnghien</nickname>
  <profileUrl>http://pulse.yahoo.com/_CRNKHHGOVWWLQFTZQUTC4NZQY4</profileUrl>
  <searchable>true</searchable>
  <status>
    <lastStatusModified>2011-10-14T08:44:28Z</lastStatusModified>
    <linkTo></linkTo>
    <message>Updated my status using YQL</message>
  </status>
  <timeZone>Asia/Bangkok</timeZone>
  <updated>2011-10-20T05:20:58Z</updated>
  <isConnected>true</isConnected>
</profile>

by
3 Replies
  • this is a result of http://social.yahooapis.com/v1/user/{0}/profile
    {
        "guid": "CRNKHHGOVWWLQFTZQUTC4NZQY4",
        "birthYear": "1990",
        "birthdate": "3/12",
        "created": "2008-10-08T13:29:13Z",
        "disclosures": {
         "name": "bd",
         "seen": "2011-04-15T02:15:35Z",
         "version": "1"
        },
        "displayAge": "21",
        "emails": [
         {
          "handle": "apollo13_vn@yahoo.com",
          "id": "12",
          "type": "HOME"
         },
         {
          "handle": "nguyenmanhtam123@gmail.com",
          "id": "13",
          "type": "HOME"
         },
         {
          "handle": "nguyenmanhtam123@yahoo.com",
          "id": "14",
          "primary": "true",
          "type": "HOME"
         }
        ],
        "familyName": "Tam",
        "gender": "UNSPECIFIED",
        "givenName": "Nguyen",
        "image": {
         "height": "225",
         "imageUrl": "http://avatars.zenfs.com/users/15XYNNehYAAECP4E_KI4cAw==.large.png",
         "size": "150x225",
         "width": "150"
        },
        "interests": [
         {
          "declaredInterests": null,
          "interestCategory": "prfFavHobbies"
         },
         {
          "declaredInterests": null,
          "interestCategory": "prfFavMusic"
         },
         {
          "declaredInterests": null,
          "interestCategory": "prfFavMovies"
         },
         {
          "declaredInterests": null,
          "interestCategory": "prfFavFutureMovies"
         },
         {
          "declaredInterests": null,
          "interestCategory": "prfFavBooks"
         },
         {
          "declaredInterests": null,
          "interestCategory": "prfFavFutureBooks"
         },
         {
          "declaredInterests": null,
          "interestCategory": "prfFavQuotes"
         },
         {
          "declaredInterests": null,
          "interestCategory": "prfFavFoods"
         },
         {
          "declaredInterests": null,
          "interestCategory": "prfFavPlaces"
         },
         {
          "declaredInterests": null,
          "interestCategory": "prfFavFuturePlaces"
         },
         {
          "declaredInterests": null,
          "interestCategory": "prfFavAelse"
         }
        ],
        "lang": "en-US",
        "location": "Viet Nam",
        "memberSince": "2002-12-02T05:22:50Z",
        "nickname": "tamnghien",
        "profileUrl": "http://pulse.yahoo.com/_CRNKHHGOVWWLQFTZQUTC4NZQY4",
        "status": {
         "lastStatusModified": "2011-10-14T08:44:28Z",
         "linkTo": null,
         "message": "Updated my status using YQL"
        },
        "timeZone": "Asia/Bangkok",
        "isConnected": "true"
       }
     
    0
  • anybody ?


    QUOTE(tamnghien @ 1 Nov 2011 9:03 PM)
    this is a result of http://social.yahooapis.com/v1/user/{0}/profile
    {
        "guid": "CRNKHHGOVWWLQFTZQUTC4NZQY4",
        "birthYear": "1990",
        "birthdate": "3/12",
        "created": "2008-10-08T13:29:13Z",
        "disclosures": {
         "name": "bd",
         "seen": "2011-04-15T02:15:35Z",
         "version": "1"
        },
        "displayAge": "21",
        "emails": [
         {
          "handle": "apollo13_vn@yahoo.com",
          "id": "12",
          "type": "HOME"
         },
         {
          "handle": "nguyenmanhtam123@gmail.com",
          "id": "13",
          "type": "HOME"
         },
         {
          "handle": "nguyenmanhtam123@yahoo.com",
          "id": "14",
          "primary": "true",
          "type": "HOME"
         }
        ],
        "familyName": "Tam",
        "gender": "UNSPECIFIED",
        "givenName": "Nguyen",
        "image": {
         "height": "225",
         "imageUrl": "http://avatars.zenfs.com/users/15XYNNehYAAECP4E_KI4cAw==.large.png",
         "size": "150x225",
         "width": "150"
        },
        "interests": [
         {
          "declaredInterests": null,
          "interestCategory": "prfFavHobbies"
         },
         {
          "declaredInterests": null,
          "interestCategory": "prfFavMusic"
         },
         {
          "declaredInterests": null,
          "interestCategory": "prfFavMovies"
         },
         {
          "declaredInterests": null,
          "interestCategory": "prfFavFutureMovies"
         },
         {
          "declaredInterests": null,
          "interestCategory": "prfFavBooks"
         },
         {
          "declaredInterests": null,
          "interestCategory": "prfFavFutureBooks"
         },
         {
          "declaredInterests": null,
          "interestCategory": "prfFavQuotes"
         },
         {
          "declaredInterests": null,
          "interestCategory": "prfFavFoods"
         },
         {
          "declaredInterests": null,
          "interestCategory": "prfFavPlaces"
         },
         {
          "declaredInterests": null,
          "interestCategory": "prfFavFuturePlaces"
         },
         {
          "declaredInterests": null,
          "interestCategory": "prfFavAelse"
         }
        ],
        "lang": "en-US",
        "location": "Viet Nam",
        "memberSince": "2002-12-02T05:22:50Z",
        "nickname": "tamnghien",
        "profileUrl": "http://pulse.yahoo.com/_CRNKHHGOVWWLQFTZQUTC4NZQY4",
        "status": {
         "lastStatusModified": "2011-10-14T08:44:28Z",
         "linkTo": null,
         "message": "Updated my status using YQL"
        },
        "timeZone": "Asia/Bangkok",
        "isConnected": "true"
       }
     
    0
  • YAHOO! is dead buddy.

    QUOTE(tamnghien @ 1 Nov 2011 10:33 PM)
    anybody ?


    QUOTE(tamnghien @ 1 Nov 2011 9:03 PM)
    this is a result of http://social.yahooapis.com/v1/user/{0}/profile
    {
        "guid": "CRNKHHGOVWWLQFTZQUTC4NZQY4",
        "birthYear": "1990",
        "birthdate": "3/12",
        "created": "2008-10-08T13:29:13Z",
        "disclosures": {
         "name": "bd",
         "seen": "2011-04-15T02:15:35Z",
         "version": "1"
        },
        "displayAge": "21",
        "emails": [
         {
          "handle": "apollo13_vn@yahoo.com",
          "id": "12",
          "type": "HOME"
         },
         {
          "handle": "nguyenmanhtam123@gmail.com",
          "id": "13",
          "type": "HOME"
         },
         {
          "handle": "nguyenmanhtam123@yahoo.com",
          "id": "14",
          "primary": "true",
          "type": "HOME"
         }
        ],
        "familyName": "Tam",
        "gender": "UNSPECIFIED",
        "givenName": "Nguyen",
        "image": {
         "height": "225",
         "imageUrl": "http://avatars.zenfs.com/users/15XYNNehYAAECP4E_KI4cAw==.large.png",
         "size": "150x225",
         "width": "150"
        },
        "interests": [
         {
          "declaredInterests": null,
          "interestCategory": "prfFavHobbies"
         },
         {
          "declaredInterests": null,
          "interestCategory": "prfFavMusic"
         },
         {
          "declaredInterests": null,
          "interestCategory": "prfFavMovies"
         },
         {
          "declaredInterests": null,
          "interestCategory": "prfFavFutureMovies"
         },
         {
          "declaredInterests": null,
          "interestCategory": "prfFavBooks"
         },
         {
          "declaredInterests": null,
          "interestCategory": "prfFavFutureBooks"
         },
         {
          "declaredInterests": null,
          "interestCategory": "prfFavQuotes"
         },
         {
          "declaredInterests": null,
          "interestCategory": "prfFavFoods"
         },
         {
          "declaredInterests": null,
          "interestCategory": "prfFavPlaces"
         },
         {
          "declaredInterests": null,
          "interestCategory": "prfFavFuturePlaces"
         },
         {
          "declaredInterests": null,
          "interestCategory": "prfFavAelse"
         }
        ],
        "lang": "en-US",
        "location": "Viet Nam",
        "memberSince": "2002-12-02T05:22:50Z",
        "nickname": "tamnghien",
        "profileUrl": "http://pulse.yahoo.com/_CRNKHHGOVWWLQFTZQUTC4NZQY4",
        "status": {
         "lastStatusModified": "2011-10-14T08:44:28Z",
         "linkTo": null,
         "message": "Updated my status using YQL"
        },
        "timeZone": "Asia/Bangkok",
        "isConnected": "true"
       }
     
    0

Recent Posts

in OAuth General Discussion YDN SDKs