若在使用Bitpanda API时遇到此问题,先确认你的API key是否正确。若API key正确,尝试以下代码:
$ch = curl_init(); curl_setopt($ch, CURLOPT_URL, "https://api.bitpanda.com/v1/account/balances"); curl_setopt($ch, CURLOPT_RETURNTRANSFER, true); curl_setopt($ch, CURLOPT_HTTPHEADER, array( "Content-Type: application/json", "Authorization: Bearer YOUR_API_KEY" )); $data = curl_exec($ch); if(curl_errno($ch)) { echo 'Curl error: ' . curl_error($ch); } curl_close($ch);
如果问题仍未解决,可联系Bitpanda客服解决。