The GUID's of your contacts from your address book (contact list api)? Can you please provide more information on what you're trying to do (code samples / description / etc.)?
Jonathan LeBlanc
Senior Software Engineer
Yahoo! Developer Network
Twitter: jcleblanc
I use yosdk. This is my code:
$y = YahooSession::requireSession('xxxx', 'xxxx');
$yahoo_user = $y->getSessionedUser();
// My app has a valid session
$arr_friend = $yahoo_user->getContacts(0,2000);
// After i have arr result friend, i know Contact id.
// Fetch GUID form ContactID:
This is my function that added into Yahoo.inc in class YahooUser, after function getContacts
function getGuid($cid) {
$response = $this->client->get(sprintf("http://%s/v1/user/%s/contact/%s/guids",
SOCIAL_WS_HOSTNAME,
urlencode($this->guid),$cid));
if(is_null($response) || $response["code"] != 200) {
return NULL;
}
else return $response["responseBody"];
}
I use this function to fetch guid from cid of contacts.
$yahoo_user->getGuid(cid);
But the result is null.