:Payload;
use strict;
use warnings;
use Carp qw/croak/;
use String::CamelCase qw/decamelize/;
use JSON qw//;
use Class::Accessor::Lite (
rw => [qw/
partner_tag
marketplace
rketplace,
partner_type => $opt->{partner_type} || 'Associates',
}, $class;
}
sub to_json {
my ($self, $data) = @_;
my $hash = {};
for my $k (keys %{$data}) {
$hash-
my $method = decamelize($k);
$hash->{$k} = $self->$method;
}
return JSON::to_json($hash, { utf8 => 0, canonical => 1 });
}
1;
__END__
=encoding UTF-8
=head1 NAME
Amazon:
_headers->{'content-encoding'} = 'amz-1.0';
$aws_headers->{'content-type'} = 'application/json; charset=UTF-8';
$aws_headers->{'host'} = $self->host;
$aws_headers->{'x-amz-
Amazon::PAApi5::Signature->new(
'ACCESS_KEY',
'SECRET_KEY',
$payload->to_json({
Keywords => 'Perl',
SearchIndex => 'All',
ItemCount =>