Name : perl-Net-Amazon
| |
Version : 0.62
| Vendor : obs://build_opensuse_org/devel:languages:perl
|
Release : lp154.10.1
| Date : 2023-01-27 16:55:20
|
Group : Development/Libraries/Perl
| Source RPM : perl-Net-Amazon-0.62-lp154.10.1.src.rpm
|
Size : 1.38 MB
| |
Packager : https://www_suse_com/
| |
Summary : Framework for accessing amazon.com via REST
|
Description :
\'Net::Amazon\' works very much like \'LWP\': First you define a useragent like
my $ua = Net::Amazon->new( associate_tag => \'YOUR_AMZN_ASSOCIATE_TAG\', token => \'YOUR_AMZN_TOKEN\', secret_key => \'YOUR_AMZN_SECRET_KEY\', max_pages => 3, );
which you pass your personal amazon developer\'s token (can be obtained from http://amazon.com/soap) and (optionally) the maximum number of result pages the agent is going to request from Amazon in case all results don\'t fit on a single page (typically holding 20 items). Note that each new page requires a minimum delay of 1 second to comply with Amazon\'s one-query-per-second policy.
According to the different search methods on Amazon, there\'s a bunch of different request types in \'Net::Amazon\'. The user agent\'s convenience method \'search()\' triggers different request objects, depending on which parameters you pass to it:
* \'$ua->search(asin => \"0201360683\")\'
The \'asin\' parameter has Net::Amazon search for an item with the specified ASIN. If the specified value is an arrayref instead of a single scalar, like in
$ua->search(asin => [\"0201360683\", \"0596005083\"])
then a search for multiple ASINs is performed, returning a list of results.
* \'$ua->search(actor => \"Adam Sandler\")\'
The \'actor\' parameter has the user agent search for items created by the specified actor. Can return many results.
* \'$ua->search(artist => \"Rolling Stones\")\'
The \'artist\' parameter has the user agent search for items created by the specified artist. Can return many results.
* \'$ua->search(author => \"Robert Jordan\")\'
The \'author\' parameter has the user agent search for items created by the specified author. Can return many results.
* \'$ua->search(browsenode=>\"4025\", mode=>\"books\" [, keywords=>\"perl\"])\'
Returns a list of items by category ID (node). For example node \"4025\" is the CGI books category. You can add a keywords parameter to filter the results by that keyword.
* \'$ua->search(exchange => \'Y04Y3424291Y2398445\')\'
Returns an item offered by a third-party seller. The item is referenced by the so-called _exchange ID_.
* \'$ua->search(keyword => \"perl xml\", mode => \"books\")\'
Search by keyword, mandatory parameters \'keyword\' and \'mode\'. Can return many results.
DETAILS Net::Amazon is based on Amazon Web Services version 4, and uses WSDL version 2011-08-01.
|
RPM found in directory: /packages/linux-pbone/ftp5.gwdg.de/pub/opensuse/repositories/devel:/languages:/perl:/CPAN-N/15.4/noarch |