Hi rooster,
One of the ways you can collect user data on a specific contact is by using the PHP SDK methods themselves. If you're not using the SDK and are calling the raw URL's the collect user data you're going to have to set up your own 3-legged OAuth / Yahoo! user session to collect the data...much easier to use the SDK found here:
http://developer.yahoo.com/social/sdk/. There is information at that link on how to set up the SDK and use its functionality.
The method within the SDK that you can use to get data for a specific user is "getUser($guid)". This method accepts one parameter, the guid of the user that you are trying to collect data for. I just ran a test against my contact id and was able to return a Yahoo user object containing my data. You could call this method using something like:
CODE
$session = YahooSession::requireSession($consumerKey, $consumerKeySecret);
$userData = $session->getUser('GUID');
$userData should now contain the data you need. Please let us know if you run into any issues along the way.
Jonathan LeBlanc
Senior Software Engineer
Yahoo! Developer Network
so, i have this basic stuff working, and say i get a contact back with it's uri to the socialapi.
how do i call that via php to get the info for this contact? i keep getting invalid credentials when i try to access any socialapi uri's.
ie, http://social.yahooapis.com/v1/user/{guid is here}/contact/2