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.