我正在尝试使用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. ) )
请帮帮我。