大家好我在运行此方法时遇到问题...它显示的错误类似于此 Methode名称:ecommOrderAdd Mailchimp Api:1.3
错误=> Code = 330 Msg = Product Ids必须是整数,而不是“j”。布尔(假)
这是我的代码
$api = new MCAPI($api);
$order=array();
$items=array();
$order['id']= 13;
$order['email']= 'test@gmail.com';
$order['store_id']= 12355344;
$order['store_name']= 'Chimpchamp';
$order['total']= 3.12;
$items['line_num']=123;
$items['product_id']=23;
$items['sku']='jav';
$items['product_name']='asfmsdkl';
$items['category_id']=455690;
$items['category_name']='yoyo';
$items['qty']=53.3;
$items['cost']=355.32;`
$order['items']=$items;
$retval = $api->ecommOrderAdd($order);
if ($api->errorCode){
echo "";
echo "\n\tCode=".$api->errorCode;
echo "\n\tMsg=".$api->errorMessage."\n";
} else {
echo "result".$retval."\n";
}
var_dump($retval);
由于