我正在尝试使用带有以下代码的Crocodoc api来获取状态。
$croco = new Crocodoc();
$uuids = "786e072b-981c-4d2a-8e80-80e215f1f7c2";
echo "\n\nchecking status of : ", $uuids;
$status = $croco->getStatus($uuids);
echo "\n\nstatus is : ", $status;
class Crocodoc {
public $api_key = 'HPUd6LZXg5174TAENbvBcx30';
public $api_url = 'https://crocodoc.com/api/v2/';
public function getStatus($uuids){
$url = $this->api_url.'document/status';
$token = $this->api_key;
$dataStr = '?token='.$token.'&uuids='.$uuids;
// this is a GET request
$output = $this->doCurlGet($url, $dataStr);
return $output;
}
}
我没有得到状态,也没有错误。什么是错误的,或者它在评估模式下不起作用。现在我在 XAMPP 本地使用它,这可能是个问题吗?