BigCommerce php api错误消息“指定的API版本无效。”

时间:2013-12-16 13:05:38

标签: php api bigcommerce

我正在尝试使用php API在BigCommerce中添加客户地址 我的代码是:

require "bigcommerce.php";

use Bigcommerce\Api\Client as Bigcommerce;

Bigcommerce::configure(array(
'store_url' => 'https://store-y3x98.mybigcommerce.com',
    'username' => 'admin',
    'api_key' => 'my_token'
));

Bigcommerce::setCipher('RC4-SHA');

Bigcommerce::verifyPeer(false);

$address=array( "first_name"=> "Trisha", "last_name"=> "McLaughlin", "company"=> "", "street_1"=> "12345 W Anderson Ln", "street_2"=> "", "city"=> "Austin", "state"=> "Alabama", "zip"=> "78757", "country"=>"United States", "country_iso2"=> "US", "phone"=> "8888888888");

print_r(Bigcommerce::createAddress($address));

我收到以下错误消息:

Array ( [0] => stdClass Object ( [status] => 400 [message] => The version of the API specified is invalid. ) )

请帮帮我。

0 个答案:

没有答案