News Feed
Sections




News Archive
Looking for more information on how to do PHP the right way? Check out PHP: The Right Way

Sameer Borate's Blog:
Accessing Amazon Product Advertising API
August 24, 2009 @ 10:52:04

Sameer Borate recently posted this new look at hooking your PHP application into the Amazon Product Advertising API to use the updated key system Amazon has put in place.

In this post we will see how to access the Amazon Product Advertising API from PHP. Amazon has recently changed (from 15th Aug '09) the authentication mechanism for accessing their API which must now be signed with your Amazon keys. Unsigned requests will be rejected by Amazon. Note that the code uses the hash_hmac() hash function which is only available for PHP versions 5.1.2 and above, so the code will not work for versions below that.

The full code, including an example if it in action - connecting to the API and searching for the DVD of "X-Men Origins". The full code of his class is included, perfect for cut and pasting.

0 comments voice your opinion now!
amazon api product advertising tutorial


blog comments powered by Disqus

Similar Posts

SitePoint.com: WordPress in the Cloud with Amazon EC2 and the Microsoft Web Platform

SitePoint PHP Blog: User Authentication in Symfony2 with UserApp.io

Wan Qi Chen: Background jobs with php and resque (Series, Parts 4, 5 & 6)

DevShed: Fundamentals of Recursion in PHP (Part 1)

Padraic Brady's Blog: Example Zend Framework Blog Application Tutorial: Parts 1-8 Revisited


Community Events

Don't see your event here?
Let us know!


framework laravel opinion voicesoftheelephpant extension library podcast series release php7 introduction community laravel5 unittest api xdebug install language interview example

All content copyright, 2015 PHPDeveloper.org :: info@phpdeveloper.org - Powered by the Solar PHP Framework