GSP
Quick Navigator

Search Site

Unix VPS
A - Starter
B - Basic
C - Preferred
D - Commercial
MPS - Dedicated
Previous VPSs
* Sign Up! *

Support
Contact Us
Online Help
Handbooks
Domain Status
Man Pages

FAQ
Virtual Servers
Pricing
Billing
Technical

Network
Facilities
Connectivity
Topology Map

Miscellaneous
Server Agreement
Year 2038
Credits
 

USA Flag

 

 

Man Pages
Net::Amazon::Request::BrowseNode(3) User Contributed Perl Documentation Net::Amazon::Request::BrowseNode(3)

Net::Amazon::Request::BrowseNode - request class for browse node search

  use Net::Amazon;
  use Net::Amazon::Request::BrowseNode;

  my $ua = Net::Amazon->new(
      token       => 'YOUR_AMZN_TOKEN'
  );

  my $req = Net::Amazon::Request::BrowseNode->new( 
      browsenode  => 30,
      mode        => 'books'
  );

  # Response is of type Net::Amazon::Response::BrowseNode
  my $resp = $ua->request($req);

"Net::Amazon::Request::BrowseNode" is a class used to submit node search requests to the Amazon web service.

The node to search for is specified in the "browsenode" parameter. The browse node ID is a number that corresponds to a general subject area of Amazon.com.

To find browse node IDs, the best way is to visit the "browse" area of the various product lines at Amazon.com. When you find a subject area that you would like to generate XML for, look at the web page URL. The browse ID should appear after the string "/tg/browse/-/". Here are some examples of URLs that contain browse IDs:

http://www.amazon.com/exec/obidos/tg/browse/-/30 (In this example, the browse ID = 30)
http://www.amazon.com/exec/obidos/tg/browse/-/467970 (In this example, the browse ID = 467970)
http://www.amazon.com/exec/obidos/tg/browse/-/602314 (In this example, the browse ID = 60231

Please be aware that some nodes cannot be used with a BrowseNodeSearch. (The vast majority of them can, but you may run across a few that simply will not work). It is also important to point out that from time to time, some browse nodes are deprecated or are changed without notice.

The catalog to search in is specified in the "mode" parameter, typical values are "books", "music", "classical" or "electronics".

An optional "keywords" parameter may be added to filter the results by that keyword.

Upon success, the responses' "properties()" method will return a list of "Net::Amazon::Properties::*" objects.

new( browsenode => $nodeID, mode => $mode [, keywords => $keywords] )
Constructs a new "Net::Amazon::Request::BrowseNode" object, used to query the Amazon web service for items in a particular category (node) in the mode (catalog) specified.

Check Net::Amazon::Request for common request parameters not listed here.

Net::Amazon framework by Mike Schilli, <m@perlmeister.com>

BrowseNode.pm by Jackie Hamilton, <kira@cgi101.com>

This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
2009-09-15 perl v5.32.1

Search for    or go to Top of page |  Section 3 |  Main Index

Powered by GSP Visit the GSP FreeBSD Man Page Interface.
Output converted with ManDoc.