2013-05-21 73 views
0

我已經下載了bigcommerce API並使用獲取時間樣本創建了一個測試腳本。 我得到了一個空白響應&沒有錯誤:bigcommerce api返回空白結果

我的測試代碼只是:

<?php 
require 'bigcommerce.php'; 
use Bigcommerce\Api\Client as Bigcommerce; 

Bigcommerce::configure(array(
'store_url' => 'https://storeurl.mybigcommerce.com', 
'username' => 'apiusername', 
'api_key' => 'token' 
)); 

Bigcommerce::setCipher(); 
Bigcommerce::verifyPeer(false); 

$ping = Bigcommerce::getTime(); 
if ($ping) echo $ping->format('H:i:s'); 
?> 

你能幫助,爲什麼結果是空白?

回答