Details
-
Type:
Bug
-
Status:
Open
-
Priority:
Major
-
Resolution: Unresolved
-
Affects Version/s: 1.11.11
-
Fix Version/s: None
-
Component/s: Zend_Service_Amazon
-
Labels:None
-
Tags:
Description
Amazon requires an associate tag for all API queries now, see https://affiliate-program.amazon.com/gp/advertising/api/detail/main.html:
—
The changes, described below, will help us continue to provide you with relevant and useful features to advertise Amazon products. The following changes to the API will take effect on November 1, 2011:
- Associate Tag will be a required and verified input parameter in all requests to the API
—
The sample code at http://framework.zend.com/manual/en/zend.service.amazon.html does not work any more:
—
$query = new Zend_Service_Amazon_Query('AMAZON_API_KEY', 'US', 'AMAZON_SECRET_KEY');
$query->category('Books')->Keywords('PHP');
$results = $query->search();
foreach ($results as $result) {
echo $result->Title . '<br />';
}
—
A first step would be to update the documentation to reflect this working usage:
$query ->category('Books') ->AssociateTag('myassociatetag-21') ->Keywords('PHP');
But preferably the constructor would be changed:
$query = new Zend_Service_Amazon_Query('AMAZON_API_KEY', 'US', 'AMAZON_SECRET_KEY', 'myassociatetag-21');