1Net::Amazon::Request::AUSsIeNr(3C)ontributed Perl DocumeNnetta:t:iAomnazon::Request::ASIN(3)
2
3
4
6 Net::Amazon::Request::ASIN - Class for submitting ASIN requests
7
9 use Net::Amazon;
10 use Net::Amazon::Request::ASIN;
11
12 my $ua = Net::Amazon->new(
13 token => 'YOUR_AMZN_TOKEN'
14 );
15
16 my $req = Net::Amazon::Request::ASIN->new(
17 asin => '0201360683'
18 );
19
20 # Response is of type Net::Amazon::Response::ASIN
21 my $resp = $ua->request($req);
22
24 "Net::Amazon::Request::ASIN" is a class used to submit ASIN requests to
25 the Amazon web service.
26
27 The ASIN of the item to look is specified in the "asin" parameter.
28
29 Upon success, the responses' "properties()" method will return one
30 single "Net::Amazon::Property::*" object.
31
32 METHODS
33 new( asin => $asin )
34 Constructs a new "Net::Amazon::Request::ASIN" object, used to query
35 the Amazon web service for an item with the specified ASIN number.
36
37 $asin can also be a reference to an array of ASINs, like in
38
39 $ua->search(asin => ["0201360683", "0596005083"])
40
41 in which case a search for multiple ASINs is performed, returning a
42 list of results.
43
44 Check Net::Amazon::Request for common request parameters not listed
45 here.
46
48 Mike Schilli, <m@perlmeister.com>
49
51 Copyright 2003 by Mike Schilli <m@perlmeister.com>
52
53 This library is free software; you can redistribute it and/or modify it
54 under the same terms as Perl itself.
55
56
57
58perl v5.30.0 2019-07-26 Net::Amazon::Request::ASIN(3)