Working with Zend_Service_Amazon
Seems there is a lack of documentation related to working with Zend_Service_Amazon, so newbies can easily get lost...
For getting detailed information about an item (as images, reviews, aso) would be needed to use ResponseGroup clause.
Here are two samples, first using Traditional API, Second is by using Query API:
require_once 'Zend/Service/Amazon.php';
$amazon = new Zend_Service_Amazon((string)$this->config->site->api_key);
$this->view->books = $amazon->itemSearch(array('SearchIndex' => 'Books', 'Keywords' => 'PHP', 'ResponseGroup'=>'Large' ));
require_once 'Zend/Service/Amazon/Query.php';
$query = new Zend_Service_Amazon_Query((string)$this->config->site->api_key);
$query->category('Books')->Keywords('PHP')->ResponseGroup('Large');
$this->view->books = $query->search();
|