Using Amazon Products API and Flash

Update:Due to the Amazon API changes requiring Signature and Timestamps which breaks this post, i have created a new post which updates this process here….

EDIT:There was a bug with the demo when showing a product with no customer review as i’m using that as the flavour text in this demo. Fixed in demo and source code.

Continuing the theme of Affiliate marketing, here’s a free source code demo of how to use Amazon products in flash. It uses similar process’s I’ve demoed before, signing up for the API, creating a php page to receive the keywords then search the Amazon API, and then return the data in XML format to the Flash front end.

To get started yourself, register for Amazon associates account – http://aws.amazon.com/associates/, then download the example code, change my code for yours so you receive the percentage, and play away.





Here I’ve just parsed the response xml for the products into instances of my AmazonProductData.as Class. This makes it easy to code against, and be confident in the ability to retrieve basic data about each product without spelling or case mistakes. As long as you’re using FlashDevelop, FDT or FlexBuilder that is.

I will make a full scale tutorial on how to use the API, parse the data and create a simple front end like this when i get a chance and finish creating LearnToFlash.com .


Posted

in

,

by

Tags: