Coinbase-curl API请求时获得验证码返回

时间:2019-02-11 08:36:33

标签: api captcha cloudflare coinbase-api

当我通过PHP curl查询coinbase api时,得到了cloudflare验证码返回。是否可以将共享的托管IP列入白名单?

$url = 'https://api.coinbase.com/v2/exchange-rates';
$ch = curl_init();
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
curl_setopt($ch, CURLOPT_URL,$url);
$result=curl_exec($ch);
curl_close($ch);
print_r($result);

0 个答案:

没有答案