Ah found it. Damn, I need to update to a newer version of Zend Framework
now... ooh wel maybe later :-).
beberlei wrote:
>
> hey,
>
> the API was changed by amazon. you need to provide a private key as third
> argument to the constructor. The documentation has an example how to do
> this
> and your Amazon WS account has the private key somewhere in the admin
> console.
>
> greetings,
> Benjamin
>
> On Friday 28 August 2009 09:35:27 pm PHPScriptor wrote:
>> Hello,
>>
>> a time ago I made a script with zend amazon. It worked fine. It tried the
>> same script today. And it's not working anymore. Something changed on
>> Amazon?
>>
>> $amazon = new Zend_Service_Amazon_Query('MYKEY','US');
>> $amazon->category('Books')
>> ->Keywords("php")
>> ->ResponseGroup('Large')
>> ->ItemPage($this->_getParam('page'));
>> $books = $amazon->search();
>>
>> output:
>>
>> Fatal error: Uncaught exception 'Zend_Service_Exception' with message 'An
>> error occurred sending request. Status code: 400' in
>> C:\wamp\www\_phpscriptor\public_html\library\Zend\Service\Amazon.php:110
>> Stack trace: #0
>> C:\wamp\www\_phpscriptor\public_html\library\Zend\Service\Amazon\Query.php(
>>96): Zend_Service_Amazon->itemSearch(Array) #1
>> C:\wamp\www\_phpscriptor\public_html\app\modules\books\controllers\IndexCon
>>troller.php(24): Zend_Service_Amazon_Query->search() #2
>> C:\wamp\www\_phpscriptor\public_html\library\Zend\Controller\Action.php(502
>>): Books_IndexController->indexAction() #3
>> C:\wamp\www\_phpscriptor\public_html\library\Zend\Controller\Dispatcher\Sta
>>ndard.php(293): Zend_Controller_Action->dispatch('indexAction') #4
>> C:\wamp\www\_phpscriptor\public_html\library\Zend\Controller\Front.php(946)
>>:
>> Zend_Controller_Dispatcher_Standard->dispatch(Object(Zend_Controller_Reques
>>t_Http), Object(Zend_Controller_Response_Http)) #5
>> C:\wamp\www\_phpscriptor\public_html\application.php(182):
>> Zend_Controller_Front->dispatch() #6 C:\wamp\w in
>> C:\wamp\www\_phpscriptor\public_html\library\Zend\Service\Amazon.php on
>> line 110
>>
>> -----
>> visit my website at http://www.phpscriptor.com/
>> http://www.phpscriptor.com/
>
>
> --
> Benjamin Eberlei
> http://www.beberlei.de
>
>
-----
visit my website at http://www.phpscriptor.com/ http://www.phpscriptor.com/
--
View this message in context:
http://www.nabble.com/Zend-Amazon-not-working-anymore-tp25195723p25198322.html
Sent from the Zend Framework mailing list archive at Nabble.com.