1

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
  • The best place to start is the Yahoo! Social API Guide. This provides an overview of the various APIs you can use, and how they relate to each other. Our approach with documentation is to introduce elements in small chunks, but to be thorough. If you still have specific questions after examining the guide, please let me know.
    1
  • Thank you but I have read that documentation. I am interested in a way to retrieve the contacts by providing the user and password. I do NOT want the user to navigate away from my website for authentication, that would ruin the entire experience. I could code this with cURL but it's not a lasting solution.
    Well, I guess this is why Google is way ahead of Yahoo and Microsoft... they keep it simple, and it works. Thank you for your time anyway.
    0
  • Hi,

    You may try Direct OAuth which takes Yahoo! username/password
    for the initial authorization:
    http://developer.yahoo.com/messenger/guide...irectoauth.html

    Thanks,
    Yu Wang
    Yahoo! Membership Team
    0
  • Thank you, I will try this at some point.

    QUOTE (omiga @ Sep 9 2010, 10:43 AM) <{POST_SNAPBACK}>
    Hi,

    You may try Direct OAuth which takes Yahoo! username/password
    for the initial authorization:
    http://developer.yahoo.com/messenger/guide...irectoauth.html

    Thanks,
    Yu Wang
    Yahoo! Membership Team
    0
  • Really google one is very easy compared to yahoo...


    QUOTE(Traian @ 23 Aug 2010 11:55 PM)
    Thank you but I have read that documentation. I am interested in a way to retrieve the contacts by providing the user and password. I do NOT want the user to navigate away from my website for authentication, that would ruin the entire experience. I could code this with cURL but it's not a lasting solution.
    Well, I guess this is why Google is way ahead of Yahoo and Microsoft... they keep it simple, and it works. Thank you for your time anyway.
    0
  • Please go through this url for getting the contacts list from Yahoo account in php http://www.idiotminds.com/get-the-contacts-list-from-yahoo-account/

    0
This forum is locked.

Recent Posts

in Y!OS SDKs