0

Contact API and Authentication

Hey all,

i am new to using with Yahoo API.

I want to have my users access their yahoo address book's contacts in my site without going to Yahoo.
I go th' the Contact API and almost about to finish with it.

but my problem is each time it takes me to yahoo site for authenticating the permission for my site....
is is possible to have this process as a back end process.

i have seen in some of the site like facebook,twitter etc etc
which gives this type of facility.......

i have created test page on my site
here is the link http://14aa41.com/test.php

anyone please guide me how to go further ..



Regards
Pravin

by
2 Replies
  • Hi Pravin,

    Are you using the Y!OS PHP SDK to make OAuth calls to the contacts API? The newer version of the SDK that's available has the ability to store an access token once authentication is made the first time. When the token is expired a new one can be issued without having to authenticate. If you are using the SDK I can provide you with some documentation / samples that will show you how to use it.

    Jonathan LeBlanc
    Senior Software Engineer
    Yahoo! Developer Network
    Twitter: jcleblanc


    QUOTE (Pravin C @ Jun 13 2009, 03:51 AM) <{POST_SNAPBACK}>
    Hey all,

    i am new to using with Yahoo API.

    I want to have my users access their yahoo address book's contacts in my site without going to Yahoo.
    I go th' the Contact API and almost about to finish with it.

    but my problem is each time it takes me to yahoo site for authenticating the permission for my site....
    is is possible to have this process as a back end process.

    i have seen in some of the site like facebook,twitter etc etc
    which gives this type of facility.......

    i have created test page on my site
    here is the link http://14aa41.com/test.php

    anyone please guide me how to go further ..



    Regards
    Pravin
    0
  • QUOTE (Jon @ Jun 18 2009, 08:56 AM) <{POST_SNAPBACK}>
    Hi Pravin,

    Are you using the Y!OS PHP SDK to make OAuth calls to the contacts API? The newer version of the SDK that's available has the ability to store an access token once authentication is made the first time. When the token is expired a new one can be issued without having to authenticate. If you are using the SDK I can provide you with some documentation / samples that will show you how to use it.

    Jonathan LeBlanc
    Senior Software Engineer
    Yahoo! Developer Network
    Twitter: jcleblanc



    hey Jon thanks for your reply.

    i am refering this link
    http://developer.yahoo.net/blog/archives/2...ng_started.html

    and follow the steps provided here.
    its Yahoo! Address Book API....

    and i am using
    ybrowserauth.class.php5 from this link
    http://developer.yahoo.com/auth/quickstart..._quickstart.zip


    regards
    0
  • ah ok, thanks for the clarification. We have a contacts api that uses OAuth and the Address Book API that uses BBAuth, so I wasn't sure which one to discuss. With the address book API there is not a method to authenticate a user through a backend process that does not require them to allow your application to access their information. If there was, an app developer could just edit the details of any account.

    There is something with OAuth applications that may help though. This would involve you using the contacts api (http://developer.yahoo.com/social/rest_api...ontact_api.html) with OAuth. There is a non-intrusive popup flow for OAuth applications (see http://developer.yahoo.net/blog/archives/2..._update_ux.html) that may be more appealing. You can also store user tokens so that they only have to authenticate once. The downside is that the contacts api is not as involved as the address book api so it may not have everything you want.

    - Jon

    QUOTE (Pravin C @ Jun 18 2009, 08:44 PM) <{POST_SNAPBACK}>
    hey Jon thanks for your reply.

    i am refering this link
    http://developer.yahoo.net/blog/archives/2...ng_started.html

    and follow the steps provided here.
    its Yahoo! Address Book API....

    and i am using
    ybrowserauth.class.php5 from this link
    http://developer.yahoo.com/auth/quickstart..._quickstart.zip


    regards
    0
  • How to get the yahoo contact apis.

    1

Recent Posts

in General Discussion at YDN