Product Advertising API Signed Requests Helper

Sample Code & Libraries>Product Advertising API>Product Advertising API Signed Requests Helper
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.

A JavaScript-based tool to help you debug issues with signed requests.

Details

Submitted By: ProductAdvtAPI@AMZN
AWS Products Used: Amazon Associates Web Service
Language(s): JavaScript
License: Apache License 2.0
Created On: June 16, 2009 9:44 PM GMT
Last Updated: July 8, 2009 1:58 PM GMT
Download
This helper is available online at http://associates-amazon.s3.amazonaws.com/signed-requests/helper/index.html

Alternatively, you may download the ZIP file, extract the contents to a folder and open index.html in a browser. This tool works best with Mozilla Firefox; other browsers including Internet Explorer have not been tested.

This tool allows you to provide a Product Advertising API request URL, your AWS Access Key ID and your AWS Secret Key. It then displays the corresponding signed URL. It also shows the intermediate values in the computation. You can compare these with the values you are seeing in your application, which should make it easier to debug problems.

This tool does not transmit any data; all calculations are done using JavaScript in your browser, hence you AWS Access Key and Secret Key are safe. Please be aware that Amazon.com will never ask you for your AWS Secret Key. This tool is provided only to help you debug your application by comparing the values shown by the tool with the values calculated by your application. Since this comparison can be accomplished by using a fake secret key instead of your actual one, you are strongly encouraged to do that to further reduce the chances of exposing your AWS Secret Key.

We will be grateful for feedback to improve this tool. Please post feedback at the Product Advertising API Community Forum.

Please note that this tool only works with REST/Query requests and not with SOAP.

Comments

Classic ASP Example
I am a Classic ASP developer. I want to integrate Amazon Custom Book search to my site http://www.FAT.lk Does anyone know how to create the API URL using Classic ASP / VBScript (i.e. without using Javascript)
tilanp on November 22, 2009 12:02 PM GMT
Very Handy
Thanks for the tool. This came in handy for my API implementation work. http://www.hotelsoutlook.com
Rajat Garg on November 6, 2009 4:43 AM GMT
BUG: if you omit AWSAccessKeyId
If you use the signed requests helper and omit the AWSAccessKeyId as a param in your initial URL, it will add it (which makes sense, since we provide it up top) but it adds it at the wrong position. In my test, it adds it *after* the timestamp, which is incorrect according to this doc: http://docs.amazonwebservices.com/AWSECommerceService/latest/DG/index.html?RequestAuthenticationArticle.html= As a result, it then creates an invalid signature for the request.
wishpot on August 14, 2009 8:51 AM GMT
Could use a validator
A simple signed URL validator would be more useful to most developers using prepared functions for signing. Paste in a signed URL and get an OK or an error report.
Capesius on July 2, 2009 10:36 PM GMT
We are temporarily not accepting new comments.
©2014, Amazon Web Services, Inc. or its affiliates. All rights reserved.