Your wishlist in 'consumable' XML

| 1 min read

While experimenting with wishlist data, it occurred to me that it might be desirable to have one’s wishlist exposable directly from a URL, and in a consumable format. This would lend itself quite nicely to URL pipelining.

I hacked up a very simple module, WWW::Amazon::Wishlist::XML (keeping to the original namespace in CPAN) which acts as an Apache handler so you can plug your wishlist ID (mine’s 3G7VX6N7NMGWM) in and get some basic XML out, in a simple HTTP GET request.

Here’s an example:

http://www.pipetree.com/service/wishlist/uk/3G7VX6N7NMGWM

Note the ‘uk’ part in the path. It signifies that the wishlist is held at amazon.co.uk. If held at amazon.com, specify ‘com’, like this:

http://www.pipetree.com/service/wishlist/com/11SZLJ2XQH8UE

It uses the patched version of WWW::Amazon::Wishlist so should be ok for now with .com-based wishlists too. Of course, it’s experimental anyway (as are most of the things I post here) and is likely to explode without warning.