hey Carl

I have messed with their REST API briefly. Here is an example of what
I am doing.

First of all searching for Walter and Bunny Rabbits famous album
"Rabbits Go Pop". Do a CFHTTP call to:

http://webservices.amazon.com/onca/xml?Service=AWSECommerceService&SubscriptionId=XYZ123&Keywords=walter+and+the+bunny+rabbits+rabbits+go+pop&Operation=ItemSearch&ResponseGroup=ItemIds&SearchIndex=Music

NOTE: you will need to replace the subscription id "XYZ123" with
whatever they assign you and the search on an artist/album that
actually exists if you want to get results.

Its then a matter of doing some XML parsing on the response to check
if any results were returned and if they were then grabbing the ASIN
(product code). Once you have this you can go in and grab some more
detail on that particular product.

http://webservices.amazon.com/onca/xml?Service=AWSECommerceService&SubscriptionId=XYZ123&ItemId=#ASIN#&Operation=ItemLookup&ResponseGroup=Small,Tracks,EditorialReview,Images,Reviews

You'll then get another XML response that will contain whatever you
requested in the ResponseGroup parameter. In this case I'm asking for
the short summary, the track listing, the editorial review, then
images and the customer reviews.

Thats about all I've done - fairly straight forward and easy to set
up. The only really tricky bit is working out which elements of the
response may be missing (e.g. some products may not have an editorial
review) and dealing with that.

The docs I used are at
http://www.amazon.com/gp/aws/sdk/104-7433918-9841549?v=2005%2d07%2d26&s=AWSEcommerceService

-- 
Mark Stanton 
Gruden Pty Ltd 
http://www.gruden.com

---
You are currently subscribed to cfaussie as: [email protected]
To unsubscribe send a blank email to [EMAIL PROTECTED]
Aussie Macromedia Developers: http://lists.daemon.com.au/

Reply via email to