`curl -H "Authorization: Token token=YOUR_TOKEN" https://api.upcall.com
/api/v1/calls`
如何在PHP中使用是指如何在PHP請求在URL發送令牌
$service_url = "https://api.upcall.com/api/v1/calls";
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, $service_url);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
curl_setopt($ch, CURLINFO_HEADER_OUT, true);
curl_setopt($ch, CURLOPT_HTTPHEADER, array('Authorization: 12345' // you can replace this with your $auth variable
));
什麼是問題?哦..現在我明白了...... –
[如何通過curl調用使用HTTP請求發送頭文件?](http://stackoverflow.com/questions/356705/how-to-send-a-頭部使用一個HTTP請求通過一個捲曲調用) –
獲得數據捲曲-H「授權:令牌令牌= YOUR_TOKEN」https://api.upcall.com /api/v1 /調用如何在PHP中獲取數據? – SirajuddinLuck