Re: [fw-general] Zend Amazon not working anymore

2009-08-30 Thread Matthew Weier O'Phinney
-- PHPScriptor cont...@phpscriptor.com wrote
(on Friday, 28 August 2009, 04:13 PM -0700):
 Ah found it. Damn, I need to update to a newer version of Zend Framework
 now... ooh wel maybe later :-).

You can always just update your Zend_Service_Amazon sources from a
recent tarball; that way your Amazon calls continue to work, but you
don't need to worry about updating your entire application to the latest
ZF version.


 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.
 

-- 
Matthew Weier O'Phinney
Project Lead| matt...@zend.com
Zend Framework  | http://framework.zend.com/


[fw-general] Zend Amazon not working anymore

2009-08-28 Thread PHPScriptor

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\IndexController.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\Standard.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_Request_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/ 
-- 
View this message in context: 
http://www.nabble.com/Zend-Amazon-not-working-anymore-tp25195723p25195723.html
Sent from the Zend Framework mailing list archive at Nabble.com.



Re: [fw-general] Zend Amazon not working anymore

2009-08-28 Thread Benjamin Eberlei
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


Re: [fw-general] Zend Amazon not working anymore

2009-08-28 Thread PHPScriptor

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.