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...
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.
creates a new Net::Amazon::Signature object
Takes in a hashref with key Service
Example
my $foo = Net::Amazon::Signature->new({Service => 'AWSMechanicalTurkRequester'});
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.
makes the encoded signature give an unencoded string and a hashing key (the
secret access id). You do not need to call this function directly. Call
create_signature instead.
Rachel Richard, "<rachel at
nmcfarl.org>"
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.
You can find documentation for this module with the perldoc command.
perldoc Net::Amazon::Signature
You can also look for information at:
- AnnoCPAN: Annotated CPAN documentation
<http://annocpan.org/dist/Net-Amazon-Signature>
- CPAN Ratings
<http://cpanratings.perl.org/d/Net-Amazon-Signature>
- RT: CPAN's request tracker
<http://rt.cpan.org/NoAuth/Bugs.html?Dist=Net-Amazon-Signature>
- Search CPAN
<http://search.cpan.org/dist/Net-Amazon-Signature>
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.