0

Import COntacts from Yahoo

Im trying to build an Web App which would use the OAuth Yahoo API implementation for downloading the contacts but My Web app is not able to connect to the API.
I keep getting the error Remote Server cannot be connected, Can someone please help me out here? Im held up with this error for couple of days and not able to move forward.

Thanks for your time.

by
1 Reply
  • I am using this code initially for the same purpose:

    CODE
    <?php
    require("lib/Yahoo.inc");

    // When you replaced with your own keys here and once run this should go to Yahoo login page else some thing went wrong in your app registration and keys

    // Your Consumer Key (API Key) goes here.
    define('CONSUMER_KEY', "dj0yJmk9TDhwWHNYb3BURkxpJmQ9WVdrOWVqRndTMk5OTjJzbWNHbzlNak00TWpnM056WXkmcz1j
    b25zdW1lcnNlY3JldCZ4PWUy");

    // Your Consumer Secret goes here.
    define('CONSUMER_SECRET', "1568bda73adfef0a03fc252b332c076525a44883");

    // Your application ID goes here.
    define('APPID', "z1abcM7k");

    $session = YahooSession::requireSession(CONSUMER_KEY,CONSUMER_SECRET,APPID);
    ?>


    But i am getting this error in error_log file:


    [27-Jun-2011 02:32:25] ERROR - Error making libcurl request(https://api.login.yahoo.com/oauth/v2/get_request_token): Protocol https not supported or disabled in libcurl
    [27-Jun-2011 02:32:25] ERROR - OAuth call to get request token failed
    [27-Jun-2011 02:32:25] ERROR - Failed to create request token
    [27-Jun-2011 02:32:25] ERROR - Failed to create authorization URLs


    Please help.
    0


  • QUOTE(Furkan @ 26 Jun 2011 11:48 PM)
    I am using this code initially for the same purpose:

    CODE
    <!--ec1--><br />  require(&quot;lib/Yahoo.inc&quot;);<br />  <br />  // When you replaced with your own keys here and once run this should go to Yahoo login page else some thing went wrong in your app registration and keys<br /><br />  // Your Consumer Key (API Key) goes here.<br />  define(&#39;CONSUMER_KEY&#39;, &quot;dj0yJmk9TDhwWHNYb3BURkxpJmQ9WVdrOWVqRndTMk5OTjJzbWNHbzlNak00TWpnM056WXkmcz1j<br />b25zdW1lcnNlY3JldCZ4PWUy&quot;);<br /><br />  // Your Consumer Secret goes here.<br />  define(&#39;CONSUMER_SECRET&#39;, &quot;1568bda73adfef0a03fc252b332c076525a44883&quot;);<br /><br />  // Your application ID goes here.<br />  define(&#39;APPID&#39;, &quot;z1abcM7k&quot;);<br /><br />  $session = YahooSession::requireSession(CONSUMER_KEY,CONSUMER_SECRET,APPID);<br />?&gt;<!--c2--></code>


    But i am getting this error in error_log file:


    [27-Jun-2011 02:32:25] ERROR - Error making libcurl request(https://api.login.yahoo.com/oauth/v2/get_request_token): Protocol https not supported or disabled in libcurl
    [27-Jun-2011 02:32:25] ERROR - OAuth call to get request token failed
    [27-Jun-2011 02:32:25] ERROR - Failed to create request token
    [27-Jun-2011 02:32:25] ERROR - Failed to create authorization URLs


    Please help.

    Hi friend! I have the same problem. How to solvedit?Please!! help!!
    0

Recent Posts

in Contacts