Validate user supplied options against known valid options.
use Net::Amazon::Validate; # ... my $valid = Net::Amazon::Validate::factory(operation => 'ResponseGroup', ); $valid->ResponseGroup([qw(Small Request)]); $valid->ResponseGroup('Large');
The item's \s-1ASIN\s0 number.
Please check the subclasses of \*(C`Net::Amazon::Validate\*(C' for specialized methods.
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.
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 \s-1ID\s0', or 'Amazon (the default value)'.
Christopher Boumenot, <[email protected]>
Copyright 2006 by Christopher Boumenot <[email protected]>
This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself.