Results 1 to 2 of 2

Thread: Moving to a signed request with Amazon Web Services (AWS)

  1. #1
    Not that blue at all Blue Cat Buxton's Avatar
    Join Date
    May 2004
    Location
    UK
    Posts
    932

    Moving to a signed request with Amazon Web Services (AWS)

    With effect from 15 August 2009, AWS will require all requests to their product advertising API database to be signed to authenticate the request. The signing process uses public key cryptography to effectively encode your request to Amazon, and decode the response. There is a stack of documentation on the AWS website that explains how it all works, but effect, and thanks to some nifty plugins this is relatively simple to achieve.

    Firstly you need 2 pieces of information from Amazon, your public key and your private key. From aws.amazon.com go to ‘Your Account’ and select the ‘Access Identifiers’ link. From that page select the ‘AWS Access Key Identifiers’ link.

    Your public key is the one shown on the page as Your Access Key ID. The private key, described as Your Secret AccessKey, is hidden until you select the show link.

    Make a note of both of these.

    You then need to head over to http://mierendo.com/software/aws_signed_query/ and download the include file that you will find there. Save the file as aws_signed_request.php and upload it to your server.

    I also needed the sha256.inc.php include file called from aws_signed_request.php which you can get here: http://www.nanolink.ca/pub/sha256/

    To call the application and make a request to Amazon the mierendo script needs the 2 keys, the Amazon region (ie com) and the parameters you want to search Amazon with.

    The following code gives you the xml feed that you can then parse in your preferred way:

    PHP Code:
    <?php
    include("aws_signed_request.php");
        
       
    $public_key "your_public_key_here";
       
    $private_key " your_private_key_here ";

    $SearchString='B000PIEG1Q';
    $Type='Small';

    $xmlfeed aws_signed_request("com", array("Operation"=>"ItemLookup","ItemId"=>$SearchString,"ResponseGroup"=>$Type), $public_key$private_key);

    echo 
    $xmlfeed;



    ?>

  2. #2
    Administrator Chris's Avatar
    Join Date
    Feb 2003
    Location
    East Lansing, MI USA
    Posts
    7,055
    Thanks, hopefully I can get it to work with my script.
    Chris Beasley - My Guide to Building a Successful Website[size=1]
    Content Sites: ABCDFGHIJKLMNOP|Forums: ABCD EF|Ecommerce: Swords Knives

Similar Threads

  1. Fulfillment by Amazon
    By Chris in forum Ecommerce
    Replies: 3
    Last Post: 06-27-2008, 03:00 PM
  2. french Amazon web services
    By robwil in forum Advertising & Affiliate Programs
    Replies: 4
    Last Post: 06-21-2005, 01:48 AM
  3. Dan O'Brien's Tutorial Amazon Web Services: A Brief Introduction Using PHP
    By PhilMarkey in forum Website Programming & Databases
    Replies: 6
    Last Post: 01-21-2005, 09:53 AM
  4. Amazon Web Services
    By KeithMcL in forum Advertising & Affiliate Programs
    Replies: 32
    Last Post: 11-10-2004, 08:18 AM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •