Simon Bisson (sbisson) wrote,
Simon Bisson

  • Mood:
  • Music:

Fun with the Amazon API

The XML column I'm in the middle of writing is the first of two on working with the Amazon web services API.

Looking at it in more detail as I research and write the piece I've found the API an extremely interesting piece of work. The query URI structures used in the XML/HTTP version of the API are very interesting, as it's clear that they've been designed to be both relatively easy to design and use and to map relatively easily to the backend SQL queries that Amazon will be using on its databases. A query URI for a search that's exploring just one area of the Amazon site looks like this:[Developer's ID goes here]&BrowseNodeSearch=[browse node goes here]&mode=[product line goes here]&type=[lite or heavy] &page=[page # goes here]&f=xml

You can see just how the resulting code on the Amazon side will operate. It will first authenticate using the Developer's ID, place restrictions on the search scope using the browse node information, and finally chooses the type of document returned (along with the page number in the query response). This type of request will allow you to see the most popular items in a product class - so you could use it to deliver a regularly updated list of top selling books or CDs for a web site.

It's an interesting piece of work, and something I'm going to need to keep in mind as a design pattern for future KM work.

  • (no subject)

    So a Dragon just launched, heading to the ISS. Luckily for us in the UK, we're in a period of bright ISS passes - and that means we were able to…

  • InstaGIFmatic

    I have a new phone, a shiny red Nokia Lumia 920. Among its many nifty features is a fun little camera app, Cinemagraph. It takes a short image loop…

  • The lights in the sky are green fire from heaven

    How long is a photograph? According to my back of the envelope calculations, each of these images is about 4.5 miles long. That's roughly how far…

  • Post a new comment


    Anonymous comments are disabled in this journal

    default userpic

    Your reply will be screened

    Your IP address will be recorded