1Net::Amazon::Validate::UIsteermSCeoanrtcrhi(b3u)ted PerlNeDto:c:uAmmeanztoant:i:oVnalidate::ItemSearch(3)
2
3
4
6 Net::Amazon::Validate::ItemSearch - Validate ItemSearch requests.
7
9 Net::Amazon::Validate::ItemSearch;
10
11 my $valid = Net::Amazon::Validate::ItemSearch::factory(search_index => 'Actor');
12 my $option = $itemsearch_valid->user_or_default($input);
13 my $default = $itemsearch_valid->default();
14
16 "Net::Amazon::Validate::ItemSearch" is a class used to verify
17 ItemSearch operation based on the current version of the WSDL and
18 locale. For example if an Artist search is executed the user can
19 search against Classical, Merchants, or Music.
20
21 METHODS
22 factory(search_index => type)
23 Constructs a new "Net::Amazon::Validate::ItemSearch" object, used
24 to validate user input for a SearchIndex. Valid types include
25 Actor, Artist, AudienceRating, Author Brand, BrowseNode, City,
26 Composer, Condition, Conductor, Count, Cuisine, DeliveryMethod,
27 Director, ISPUPostalCode, ItemPage, Keywords, MPAARating,
28 Manufacturer, MaximumPrice, MerchantId, MinimumPrice, MusicLabel,
29 Neighborhood, Orchestra, Power, Publisher, Sort, TextStream and
30 Title. Which departments these search indexes are valid for is
31 dependent upon locale.
32
33 default()
34 Return the default value for a given SearchIndex. Default are
35 determined in order of preference and existence from the following
36 list: Books, Music, DVD, Software. If none of those items are
37 valid for a given SearchIndex then the first valid department of
38 said SearchIndex is used.
39
40 user_or_default( $input )
41 If user input is specified it validates the input, and return it,
42 otherwise it returns the default value for the SearchIndex.
43
45 Christopher Boumenot, <boumenot@gmail.com>
46
48 Copyright 2006 by Christopher Boumenot, <boumenot@gmail.com>
49
50 This library is free software; you can redistribute it and/or modify it
51 under the same terms as Perl itself.
52
54 Net::Amazon::Validate::ItemSearch - Validate user supplied options
55 against known valid options.
56
58 use Net::Amazon::Validate::ItemSearch;
59
60 # ...
61
62 my $valid = Net::Amazon::Validate::ItemSearch::factory(search_index => 'Actor');
63 $valid->user_or_default($input);
64 $valid->default();
65
67 METHODS
68 Asin()
69 The item's ASIN number.
70
71 Please check the subclasses of "Net::Amazon::Validate" for specialized
72 methods.
73
75 I should probably add a function to dispatch calls automatically, that
76 way the user doesn't have to explicity call a function to verify an
77 option. It would make it very easy to write loops to validate input.
78
80 This library was designed to validate ResponseGroup requests only.
81 Support for other parameters were autogenerated but not verified. The
82 biggest problems are with the intrepration of 'Integers 1 to 30', 'A
83 Merchant ID', or 'Amazon (the default value)'.
84
86 Christopher Boumenot, <boumenot@gmail.com>
87
89 Copyright 2006 by Christopher Boumenot <boumenot@gmail.com>
90
91 This library is free software; you can redistribute it and/or modify it
92 under the same terms as Perl itself.
93
94
95
96perl v5.30.1 2020-01-3N0et::Amazon::Validate::ItemSearch(3)