The London Perl and Raku Workshop takes place on 26th Oct 2024. If your company depends on Perl, please consider sponsoring and/or attending.

NAME

Amazon::PAApi5::Payload - Handle request body

SYNOPSIS

    use Amazon::PAApi5::Payload;

    my $payload = Amazon::PAApi5::Payload->new(
        'PARTNER_TAG'
    );

    say $payload->to_json({
        Keywords    => 'Perl',
        SearchIndex => 'All',
        ItemCount   => 2,
        Resources   => [qw/
            ItemInfo.Title
        /],
    });

DESCRIPTION

Amazon::PAApi5::Payload handles request body

See example/ directory of this module.

https://github.com/bayashi/Amazon-PAApi5-Signature/tree/main/example

https://webservices.amazon.com/paapi5/documentation/api-reference.html

METHODS

new($partner_tag, $marketplace, $options)

Constructor

to_json

Get request body as JSON string

AUTHOR

Dai Okabayashi <bayashi@cpan.org>

LICENSE

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 having an Artistic 2.0 / GPL disjunction.) See the file LICENSE for details.