我試圖使用OAuth雅虎API。我有Auth URL,但我的CURL沒有返回任何內容。有人能指出我做錯了什麼嗎?頁面未返回 - 捲曲PHP
我想在登錄屏幕(假設我尚未登錄)..
$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
是你的代碼一樣,或者你忘了'';'末的URL? –
對不起,這是打錯了......但我使用的實際代碼有沒有語法錯誤......我已經更新了我的帖子... – Fox