How do you search amazon's api for EAN codes using the Zend Framework? -



How do you search amazon's api for EAN codes using the Zend Framework? -

i've got this:

$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', ) );

but gives me error:

fatal error: uncaught exception 'zend_service_exception' message '5055060927427 not valid value itemid. please alter value , retry request. (aws.invalidparametervalue)' in c:\wamp\www\easionline\src\zend\service\amazon.php on line 319

the game trying find is: http://www.amazon.com/asuras-wrath-playstation-3/dp/b003o6hlok/ref=sr_1_1?ie=utf8&qid=1360139714&sr=8-1&keywords=azuras+wrath

that normal response api, when ean doesn't exist on locale.

you won't receive error when utilize ean exist.

zend-framework amazon-web-services barcode

Comments

Popular posts from this blog

web services - java.lang.NoClassDefFoundError: Could not initialize class net.sf.cglib.proxy.Enhancer -

Accessing MATLAB's unicode strings from C -

javascript - mongodb won't find my schema method in nested container -