bigcommerce api返回空白结果

时间:2013-05-21 06:43:38

标签: bigcommerce

我已经下载了bigcommerce API并使用get time示例创建了一个测试脚本。 我得到一个空白的回答&没有错误:

我的测试代码只是:

<?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');
?>

你能帮忙解决为什么结果是空白的吗?

1 个答案:

答案 0 :(得分:1)

我认为您的密码不正确。 请查看文档http://developer.bigcommerce.com/quickstarts/php

Bigcommerce::setCipher('RC4-SHA')
相关问题