Net::Amazon::Validate - Validate user supplied options against known valid


Net-Amazon documentation  | view source Contained in the Net-Amazon distribution.

Index


NAME

Top

Net::Amazon::Validate - Validate user supplied options against known valid options.

SYNOPSIS

Top

  use Net::Amazon::Validate;

  # ...

  my $valid = Net::Amazon::Validate::factory(operation => 'ResponseGroup',
                                            );

  $valid->ResponseGroup([qw(Small Request)]);
  $valid->ResponseGroup('Large');

DESCRIPTION

Top

METHODS

Asin()

The item's ASIN number.

Please check the subclasses of Net::Amazon::Validate for specialized methods.

TODO

Top

I should probably add a function to dispatch calls automatically, that way the user doesn't have to explicity call a function to verify an option. It would make it very easy to write loops to validate input.

BUGS

Top

This library was designed to validate ResponseGroup requests only. Support for other parameters were autogenerated but not verified. The biggest problems are with the intrepration of 'Integers 1 to 30', 'A Merchant ID', or 'Amazon (the default value)'.

AUTHOR

Top

Christopher Boumenot, <boumenot@gmail.com>

COPYRIGHT AND LICENSE

Top


Net-Amazon documentation  | view source Contained in the Net-Amazon distribution.