-
-
27 Jan 2013 00:01:12 UTC
- Distribution: Net-Amazon
- Source (raw)
- Browse (raw)
- Changes
- How to Contribute
- Repository
- Issues (9)
- Testers (1073 / 5 / 0)
- Kwalitee
Bus factor: 0- 84.60% Coverage
- License: perl_5
- Perl: v5.6.0
- Activity
24 month- Tools
- Download (214.2KB)
- MetaCPAN Explorer
- Permissions
- Subscribe to distribution
- Permalinks
- This version
- Latest version
- Dependencies
- Data::Dumper
- Digest::SHA
- HTTP::Message
- LWP::UserAgent
- Log::Log4perl
- Time::HiRes
- URI
- URI::Escape
- XML::Simple
- and possibly others
- Reverse dependencies
- CPAN Testers List
- Dependency graph
NAME
Net::Amazon::Request - Baseclass for requests to Amazon's web service
SYNOPSIS
my $req = Net::Amazon::Request::XXX->new( [ type => 'Large', ] [ page => $start_page, ] [ mode => $mode, ] [ offer => 'All', ] [ sort => $sort_type, ] );
DESCRIPTION
Don't use this class directly, use derived classes (like
Net::Amazon::Request::ASIN
, etc.) instead to specify the type of request and its parameters.However, there's a bunch of parameters to the constructor that all request types have in common, here they are:
- type
-
Defaults to
Large
, but can also be set toMedium
, orSmall
.- Large
-
The
Large
type provides everything inMedium
as well as music track information, customer reviews, similar products, offers, and accessory data, i.e. the kitchen sink. - Medium
-
The
Medium
type provides everything inSmall
as well as sales rank, editorial reviews, and image URLs. - Small
-
The
Small
type provies ASIN, product title, creator (author, artist, etc.), product group, URL, and manufacturer.
- mode
-
Defaults to
books
, but can be set to other catalog values. - page
-
Defaults to
1
, but can be set to a different number to start with a different result page. Used in conjunction with themax_pages
parameter of theNet::Amazon
object.page
is the offset,max_pages
is the maximum number of pages pulled in starting atpage
. - sort
-
Defaults to
salesrank
, but search results can be sorted in various ways, depending on the type of product returned by the search. Search results may be sorted by the following criteria:Featured Items
Bestselling
Alphabetical (A-Z and Z-A)
Price (High to Low and Low to High)
Publication or Release Date
Manufacturer
Average Customer Review
Artist Name
Consult Net::Amazon::Request::Sort for details.
- offer
-
To receive values for the fields
CollectibleCount
,NumberOfOfferings
,UsedCount
, specifyoffer => "All"
.
AUTHOR
Mike Schilli, <m@perlmeister.com>
COPYRIGHT AND LICENSE
Copyright 2003 by Mike Schilli <m@perlmeister.com>
This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
Module Install Instructions
To install Net::Amazon, copy and paste the appropriate command in to your terminal.
cpanm Net::Amazon
perl -MCPAN -e shell install Net::Amazon
For more information on module installation, please visit the detailed CPAN module installation guide.