Exeu / Amazon-ECS-PHP-Library

This library is no longer maintained! Please have a look at my new amazon Lib at: https://github.com/Exeu/apai-io
https://github.com/Exeu/apai-io
GNU General Public License v3.0
238 stars 97 forks source link

Changes in the Product Advertising API #38

Closed sparkyfen closed 12 years ago

sparkyfen commented 12 years ago

As written on the Amazon forums, there are changes to how many requests can be made per second. More information here: https://affiliate-program.amazon.com/gp/advertising/api/detail/faq.html

What it means for this library: When making requests for a product, if you make more than 1 per second (if you are not making any revenue), a SoapClient error exception occurs. Something like this: Fatal Error: Your account id XXXXX is been throttled.

To fix: My personal fix was to sleep(1) after every lookup() call.

Exeu commented 12 years ago

Thanks for the hint! I will have a look what changes will result for the class. I think this part has to be configurable.

Exeu commented 12 years ago

This feature is now implemented by default in version 1.3.3 You can no enable the delay via $amazonECS->requestDelay(true);