NAME
WebGUI::Macro::AWS_ItemLookup
DESCRIPTION
The AWS_ItemLookup macro uses Amazon E-Commerce Service to lookup book, music or other item details from the Amazon website using an ASIN (Amazon Standard Item Number). For books, the ASIN is the same as the ISBN.
USAGE
^AWS_ItemLookup(ASIN,YOURACCESSKEY);
SEE IT IN ACTION
Screenshot
INSTALLATION
To use this macro, you will need to install XML::Parser and XML::XPath. XML::Parser is a compiled module. To install it under Linux, follow the steps below:
- become root user
- source setenvironment (. /data/wre/sbin/setenvironment)
- run cpan (perl -MCPAN -e shell)
- install XML::Parser
- if you run into errors, be sure that you have installed the libexpat1 libraries (for Ubuntu you need to install the build-essential and libexpat1-dev packages to build)
- install XML::XPath
Now you're ready to install the macro. See the POD in the AWS_ItemLookup.pm file for details about installing macros into WebGUI.
Before you can access the Amazon Web Services, you'll need a developer's key. You can obtain one here for free. There are some services which require a fee to use. The ECS service which this macro uses is free.
TEMPLATES
Currently the output format is fixed. A future task will be to allow the output to be templatable. Patches are welcome.
AUTHOR
Copyright 2007 by William McKee. All rights reserved.
LICENCE
This program is free software; you can redistribute
it and/or modify it under the same terms as Perl itself.