Reputation: 5712
I am using Zend Framework to retrieve book information from amazon. This code is not showing any error in the page neither displaying any results. Can you solve this?
define("AMAZON_API_KEY","#################");
define("AMAZON_SECRET_KEY","############################################");
require_once 'Zend/Service/Amazon.php';
$amazon = new Zend_Service_Amazon(AMAZON_API_KEY, 'US', AMAZON_SECRET_KEY);
$results = $amazon->itemSearch(array('SearchIndex' => 'Books','Keywords' => 'history'));
print_r($results);
foreach ($results as $result) {
echo $result->Title . '<br />';
}
Thanks in advance. Prakash
Upvotes: 1
Views: 1844
Reputation: 5712
This fix for the amazon API zend should be updated in next release of framework. If you don't like to wait for that release, you can apply the patch file from here http://framework.zend.com/issues/browse/ZF-12046 to your copy to fix this error. Mine is solved. Hope this works for you too..
If you have problem making the patch, let me know
Upvotes: 2