Amazon-PAApi5-Signature
view release on metacpan or search on metacpan
lib/Amazon/PAApi5/Signature.pm view on Meta::CPAN
'ACCESS_KEY',
'SECRET_KEY',
$payload->to_json({
Keywords => 'Perl',
SearchIndex => 'All',
ItemCount => 2,
Resources => [qw/
ItemInfo.Title
/],
}),
);
my $ua = LWP::UserAgent->new;
my $req = POST $sig->req_url, $sig->headers, Content => $sig->payload;
my $res = $ua->request($req);
warn Dumper($res->status_line, $res->content);
NOTE that Product Advertising API 5.0 has usage limit. Please confirm L<https://webservices.amazon.com/paapi5/documentation/troubleshooting/api-rates.html> or a page for your region.
See B<example/> directory of this module for more examples.
L<https://github.com/bayashi/Amazon-PAApi5-Signature/tree/main/example>
=head1 DESCRIPTION
Amazon::PAApi5::Signature generates a request headers and request body for Amazon Product Advertising API(PA-API) 5.0
L<https://webservices.amazon.com/paapi5/documentation/quick-start.html>
=head1 METHODS
=head2 new($access_key, $secret_key, $request_payload, $options)
Constructor
=head2 req_url
Get request URL string
=head2 headers
Get signed HTTP headers as hash
=head3 headers_as_arrayref
=head3 headers_as_hashref
=head2 to_request
Get a hash for HTTP request
=head1 REPOSITORY
=begin html
<a href="https://github.com/bayashi/Amazon-PAApi5-Signature/blob/main/LICENSE"><img src="https://img.shields.io/badge/LICENSE-Artistic%202.0-GREEN.png"></a> <a href="https://github.com/bayashi/Amazon-PAApi5-Signature/actions"><img src="https://github...
=end html
Amazon::PAApi5::Signature is hosted on github: L<http://github.com/bayashi/Amazon-PAApi5-Signature>
I appreciate any feedback :D
=head1 AUTHOR
Dai Okabayashi E<lt>bayashi@cpan.orgE<gt>
=head1 LICENSE
C<Amazon::PAApi5::Signature> is free software; you can redistribute it and/or modify it under the terms of the Artistic License 2.0. (Note that, unlike the Artistic License 1.0, version 2.0 is GPL compatible by itself, hence there is no benefit to ha...
=cut
( run in 0.519 second using v1.01-cache-2.11-cpan-df04353d9ac )