1Net::Amazon::Request::UUPsCe(r3)Contributed Perl DocumenNteatt:i:oAnmazon::Request::UPC(3)
2
3
4

NAME

6       Net::Amazon::Request::UPC - request class for UPC search
7

SYNOPSIS

9         use Net::Amazon;
10         use Net::Amazon::Request::UPC;
11
12         my $ua = Net::Amazon->new(
13             token       => 'YOUR_AMZN_TOKEN'
14         );
15
16         my $req = Net::Amazon::Request::UPC->new(
17             upc  => '724381198421',
18             mode => 'music',
19
20         );
21
22           # Response is of type Net::Amazon::Response::UPC
23         my $resp = $ua->request($req);
24

DESCRIPTION

26       "Net::Amazon::Request::UPC" is a class used to submit UPC (product
27       barcode) search requests to the Amazon web service.
28
29       The UPC number to search for is specified in the "upc" parameter.  It
30       currently works with the following values of the "mode" parameter:
31       "music", "classical", "software", "dvd", "video", "vhs", "electronics",
32       "pc-hardware", and "photo".
33
34       Upon success, the response's "properties()" method will return a single
35       "Net::Amazon::Property::Music" object.
36
37   METHODS
38       new(upc => $upc)
39           Constructs a new "Net::Amazon::Request::UPC" object, used to query
40           the Amazon web service for an item with the given UPC number.
41

AUTHOR

43       Mike Schilli, <m@perlmeister.com>
44
46       Copyright 2003 by Mike Schilli <m@perlmeister.com>
47
48       This library is free software; you can redistribute it and/or modify it
49       under the same terms as Perl itself.
50
51
52
53perl v5.32.0                      2020-07-28      Net::Amazon::Request::UPC(3)
Impressum