0

contacts retrieval from yahoo mail id

Can anyone tell me how to retrieve contacts from yahoo mail id.How to use Contacts api of yahoo

by
11 Replies
  • You would need to pull out the GUID for the particular user based on their mail id. the GUID is what the contacts API uses to identify the profile / address book of a user. To convert the Yahoo! Mail ID to a GUID you can use YQL as a conversion service by running a query as shown on the following page:


    http://developer.yahoo.com/yql/console/?q=...D%27spullara%27

    - Jon
    0
  • Hello Jonathan LeBlanc,

    Thanks for the Reply,By adding the guid and calling the following url : http://social.yahooapis.com/v1/user/MYGUID/contacts,got the below error :

    <yahoo:error xml:lang="en-US">

    <yahoo:description>
    Please provide valid credentials. OAuth oauth_problem="unable_to_determine_oauth_type", realm="yahooapis.com"
    </yahoo:description>
    </yahoo:error>

    <!--
    ws111.socdir.ac4.yahoo.com uncompressed/chunked Wed Feb 17 20:02:32 PST 2010
    -->
    0
  • Hi venkataReddy,

    Would you be able to send over the the full http request, response and also the signature base string that you are using when making your OAuth request. That will help us determine the what the OAuth issue you are seeing is.

    Thanks,
    Jon
    0
  • QUOTE (Jonathan LeBlanc @ Feb 18 2010, 08:45 AM) <{POST_SNAPBACK}>
    Hi venkataReddy,

    Would you be able to send over the the full http request, response and also the signature base string that you are using when making your OAuth request. That will help us determine the what the OAuth issue you are seeing is.

    Thanks,
    Jon

    Hi Jon,

    I'm directly calling the above url by giving the guid of my userid only.Could u pls send me theOAuth code or the entire code from scratch to get yahoo contacts.
    0
  • QUOTE (venkataReddy @ Feb 18 2010, 08:08 PM) <{POST_SNAPBACK}>
    Hi Jon,

    I'm directly calling the above url by giving the guid of my userid only.Could u pls send me theOAuth code or the entire code from scratch to get yahoo contacts.


    I have a tutorial that does just that - starts with an OAuth flow and ends with getting the contacts for a yahoo user. Each step can be run by the accompanying php scripts that show the exact request response being sent and received.
    http://nullinfo.wordpress.com/oauth-yahoo/
    0
  • QUOTE (joec @ Feb 20 2010, 09:11 AM) <{POST_SNAPBACK}>
    I have a tutorial that does just that - starts with an OAuth flow and ends with getting the contacts for a yahoo user. Each step can be run by the accompanying php scripts that show the exact request response being sent and received.
    http://nullinfo.wordpress.com/oauth-yahoo/



    Hello,

    But I want the solution in java code.Can anyone send me a code to get yahoo contacts in java
    0
  • Hi jon,
    I'm getting the

    {"error":{"lang":"en-US","description":"Please provide valid credentials. OAuth oauth_problem=\"unable_to_determine_oauth_type\", realm=\"yahooapis.com\""}}

    If your know how to come over this plz tell me
    0
  • We don't have a Java OAuth library for Y!OS ourselves but the OAuth libs and examples are located here: http://oauth.net/code/ - that will be the best place to start. There is also the OpenSocial REST API lib in Java that may be a good place for you to start as well - it integrates the social features of an OpenSocial container (such as YAP) with the OAuth code: http://code.google.com/p/opensocial-java-client/

    We'd be happy to help you along the way if you run into any key or signature issues.

    - Jon
    0
  • Hi Jonathan,
    thanQ for ur quick reply.While doing this first i got signature invalid.After that i done some modifications.Now its showing the "unable to determine oauth type"

    QUOTE (Jonathan LeBlanc @ May 20 2010, 12:02 PM) <{POST_SNAPBACK}>
    We don't have a Java OAuth library for Y!OS ourselves but the OAuth libs and examples are located here: http://oauth.net/code/ - that will be the best place to start. There is also the OpenSocial REST API lib in Java that may be a good place for you to start as well - it integrates the social features of an OpenSocial container (such as YAP) with the OAuth code: http://code.google.com/p/opensocial-java-client/

    We'd be happy to help you along the way if you run into any key or signature issues.

    - Jon
    0
  • Hi venkata reddy,
    Had u solved the issue...If yes send me the instructions.Bcoz i also stumped at the same

    QUOTE (venkataReddy @ Feb 17 2010, 08:08 PM) <{POST_SNAPBACK}>
    Hello Jonathan LeBlanc,

    Thanks for the Reply,By adding the guid and calling the following url : http://social.yahooapis.com/v1/user/MYGUID/contacts,got the below error :

    <yahoo:error xml:lang="en-US">

    <yahoo:description>
    Please provide valid credentials. OAuth oauth_problem="unable_to_determine_oauth_type", realm="yahooapis.com"
    </yahoo:description>
    </yahoo:error>

    <!--
    ws111.socdir.ac4.yahoo.com uncompressed/chunked Wed Feb 17 20:02:32 PST 2010
    -->
    0
  • query to get email id of contacts using oauth i got contact names but email id's i want
    0

Recent Posts

in YAP