ColdFusion Amazon Web Service ItemSearch
October 20, 2006 9:45 PM
Related Categories: Web Dev
A few days ago I blogged on how to use the amazon web service ecommerce API to query for a list of products and get a struct of the results. I have cleaned up the code and tested it with BlueDragon and CFMX 6.1.
I call it AmazonCFC.
Right now the only function is ItemSearch. It should be pretty easy for someone to modify should they need to and it is free for anyone to use. Over time I will add other methods.
It gathers artist, title, ASIN, category (group), and detail URL based on a search string. Many filters allow you to refine your search and the number of results.
Example Use:
<cfinvoke component = "amazonWS" method = "itemSearch" returnVariable = "amazonresults"
searchstring = "Bon Jovi"
grouptypes="Apparel,DVD,Music,VHS,Video"
accesskey=""
maxpages = "5"
merchantId = "All"
condition = "All"
availability = "Available"
>
<cfdump var="#amazonresults#">
searchstring = "Bon Jovi"
grouptypes="Apparel,DVD,Music,VHS,Video"
accesskey=""
maxpages = "5"
merchantId = "All"
condition = "All"
availability = "Available"
>
<cfdump var="#amazonresults#">
For more on amazon web services check out aws.amazon.com
Like this entry? Subscribe to my blog.


Comments (moderation on)
There are no comments for this entry.
[Add Comment]