I am trying to use the oAuth Yahoo API. I have the Auth URL but my CURL is not returning anything. Can someone point out what I am doing wrong?
I want the login screen (assuming I have not already logged in) ..
$auth_url = 'https://api.login.yahoo.com/oauth/v2/request_auth?oauth_token=qj94ktv';
// create a new cURL resource
$ch = curl_init();
// set URL and other appropriate options
curl_setopt($ch, CURLOPT_URL,$auth_url);
curl_setopt($ch, CURLOPT_HEADER, 0);
curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, false)
// grab URL and pass it to the browser
curl_exec($ch);
// close cURL resource, and free up system resources
curl_close($ch);
THANK YOU
Your
curl_exec($ch);is not passing to the browser. Also you don’t follow location as it redirects, andRETURNTRANSFERYou need to assign it a variable or just dump it: