NAME

Net::Amazon::Signature

VERSION

Version 0.02

SYNOPSIS

use Net::Amazon::Signature;
my $sig_maker = Net::Amazon::Signature->new(Service => AWSServiceName);

my ($signature, $timestamp) = $sig_maker->create({
 Operation => 'GetInfo', 
 SecretAccessKey => 'Your Secret Key Here',
 uri_escape => 1
});

# go ahead and make your SOAP or REST call now...

DESCRIPTION

This module creates the encrypted signature needed to login to Amazon's Mechanical Turk and Alexa web services and any other web services that Amazon might make in the future that require an encrypted signature, assuming they follow the same convention.

METHODS

new

creates a new Net::Amazon::Signature object
Takes in a hashref with key Service
Example
my $foo = Net::Amazon::Signature->new({Service => 'AWSMechanicalTurkRequester'});

create

Creates the signature. The method takes in a hashref with two required values:
* SecretAccessKey - the secret access key that Amazon has assigned to you.
* Operation - the name of the operation to perform.

Returns an array with the signature and the timestamp used in creating the authenticated request.

AUTHOR

Rachel Richard, <rachel at nmcfarl.org>

BUGS

Please report any bugs or feature requests to bug-net-amazon-signature at rt.cpan.org, or through the web interface at http://rt.cpan.org/NoAuth/ReportBug.html?Queue=Net-Amazon-Signature. I will be notified, and then you'll automatically be notified of progress on your bug as I make changes.

SUPPORT

You can find documentation for this module with the perldoc command.

perldoc Net::Amazon::Signature

You can also look for information at:

ACKNOWLEDGEMENTS

COPYRIGHT & LICENSE

Copyright 2005 Rachel Richard, all rights reserved.

This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself.