Fetch contacts for Yahoo! account in PHP
Hi,
I am trying to get the contacts for a Yahoo! account using the Yahoo API and the username/password for the user.
Please excuse me if I sound confused but I don't get the implementation of the Yahoo API. It's way too complicated. For instance, to get the contacts for a google account, i do something like this:
$client = Zend_Gdata_ClientLogin::getHttpClient($user, $pass, "cp");
$gdata = new Zend_Gdata($client);
$gdata->setMajorProtocolVersion(3);
$query = new Zend_Gdata_Query("http://www.google.com/m8/feeds/contacts/default/full");
$feed = $gdata->getFeed($query);
And that's it, in the $feed I have all I need. How do I do that with the Yahoo! PHP5 api? The documentation is a nightmare...
Thank you for the help!
by
6 Replies