Product Advertising API Signed Requests Sample Code - Perl REST/QUERY

Sample Code & Libraries>Product Advertising API Signed Requests Sample Code Perl REST/QUERY
Community Contributed Software

  • Amazon Web Services provides links to these packages as a convenience for our customers, but software not authored by an "@AWS" account has not been reviewed or screened by AWS.
  • Please review this software to ensure it meets your needs before using it.

Shows how to send a signed REST/Query request to the Product Advertising API (previously Amazon Associates Web Service) using Perl.

Details

Submitted By: ProductAdvtAPI@AMZN
AWS Products Used: Amazon Associates Web Service
Language(s): Perl
License: Apache License 2.0
Created On: May 7, 2009 5:49 PM GMT
Last Updated: July 8, 2009 2:03 PM GMT
Download


This sample shows how to send a signed ItemLookup request to the Product Advertising API (previously Amazon Associates Web Service) using REST/Query protocol in Perl. It displays the title of the ASIN provided.

To get started this this sample, extract the contents of the ZIP file and follow the instructions in README.html.

Please post questions and feedback at the Product Advertising API Community Forum.

Comments

Thx
Thx. This worked well for us albeit we had to convert it into Ruby equivalent. http://www.hotelsoutlook.com
Rajat Garg on November 6, 2009 4:47 AM GMT
Works well
This worked well for us and helped save the (very, very long) day. It uses a perl module called RequestSignatureHelper.pm that could/should probably just store the constants (environment variables) for anyone using this approach across multiple scripts. Alternatively, in case of future module updates, these constants could be put in another module. Slightly modified from the example, and something we recommend, we moved the signature code into a subroutine called "SignRequest." This will eventually be put in a module when we have time. It makes it more portable. Perhaps the example should be set up this way or a second example provided? If not done already, we suggest putting this module up on CPAN for others to find, test, and possibly refine. The more users for this the better so there will be a user base for it helping out (or at least noticing) as Amazon makes changes. Thanks for the helpful example and module.
Adam Sheridan on August 19, 2009 5:08 PM GMT
We are temporarily not accepting new comments.
©2014, Amazon Web Services, Inc. or its affiliates. All rights reserved.