我有这个:
$barCode = '5055060927427';
$amazon = new Zend_Service_Amazon($this->AMAZON_API_KEY, 'UK', $this->AMAZON_API_SECRET);
$amazon = null;
$amazonRes = $amazon->itemLookup($barCode,
array(
'SearchIndex' => 'All',
'AssociateTag' => 'NON ASSOCIATE',
'IdType' => 'EAN',
'ResponseGroup' => 'Large,ItemAttributes,Images',
)
);
但这只是给了我一个错误:
致命错误:带有消息“5055060927427”的未捕获异常“Zend_Service_Exception”不是 ItemId 的有效值。请更改此值,然后重试您的请求。(AWS.InvalidParameterValue)' 在 C:\wamp\www\easionline\src\Zend\Service\Amazon.php 第 319 行