Softpedia
 


LINUX CATEGORIES:



GLOBAL PAGES >>
NEWS ARCHIVE >>
SOFTPEDIA REVIEWS >>
MEET THE EDITORS >>
WEEK'S BEST
  • Linux Kernel 3.9.6 / 3....
  • Linux Kernel 3.0.82 LTS...
  • KDE Software Compilatio...
  • PulseAudio 4.0
  • Wireshark 1.10.0
  • NetworkManager 0.9.8.2
  • LibreOffice 3.6.6 / 4.0...
  • SystemRescueCd 3.7.0
  • Linux Kernel 3.10 RC6
  • Ubuntu Tweak 0.8.5
  • Home > Linux > Programming > Perl Modules

    XML::Amazon 0.12

    Download button

    No screenshots available
    Downloads: 281  View global page NEW!  Tell us about an update
    User Rating:
    Rated by:
    NOT RATED
    0 user(s)
    Developer:

    License / Price:

    Last Updated:

    Category:
    Yusuke Sugiyama | More programs
    Perl Artistic License / FREE
    October 15th, 2009, 23:33 GMT
    ROOT / Programming / Perl Modules

     Read user reviews (0)  Refer to a friend  Subscribe

    XML::Amazon description

    Perl extension for getting information from Amazon

    XML::Amazon is a Perl module that provides a simple way to get information from Amazon. XML::Amazon can connect to US, JP, UK, FR, DE and CA.

    SYNOPSIS

     use XML::Amazon;
     
     my $amazon = XML::Amazon->new(token => AMAZON-ID, sak => Secret Access Key, locale => 'uk');
     
     my $item = $amazon->asin('0596101058');## ASIN access
     
     if ($amazon->is_success){
     print $item->title;
     }
     
     my $items = $amazon->search(keywords => 'Perl');## Search by 'Perl'
     
     foreach my $item ($items->collection){
     my $title = $item->title;
     utf8::encode($title);
     print $title . "Â¥n";
     }


    USAGE

    XML::Amazon->new(token => AMAZON-ID, associate => ASSOCIATE-ID, sak => Secret Access Key, locale => UK)

    Creates a new empty XML::Amazon object. You should specify your Amazon Web Service ID and Secret Access Key (which can be obteined thorough http://www.amazon.com/gp/aws/registration/registration-form.html). You can also specify your locale (defalut: US; you can choose us, uk, jp, fr, de, ca) and your Amazon associate ID (default: webservices-20, which is Amazon default).

    $XML_Amazon->asin(ASIN)

    Returns an XML::Amazon::Item object whose ASIN is as given.

    $XML_Amazon->search(keywords => 'Perl', page => '2', type => 'Books')

    Returns an XML::Amazon::Collection object. i can be Blended, Books, Music, DVD, etc.

    $XML_Amazon->is_success

    Returns 1 when successful, otherwise 0.

    $XML_Amazon_Collection->total_results, $XML_Amazon_Collection->total_pages, $XML_Amazon_Collection->current_page

    Returns as such.

    $XML_Amazon_Collection->collection

    Returns a list of XML::Amazon::Item objects.

    $XML_Amazon_Item->title
    $XML_Amazon_Item->made_by


    Returns authors when the item is a book, and likewise.

    $XML_Amazon_Item->publisher
    $XML_Amazon_Item->url
    $XML_Amazon_Item->image(size)


    Returns the URL of the cover image. size can be s, m, or l.

    $XML_Amazon_Item->price


    Product's homepage

    Requirements:

    · Perl

      


    TAGS:

    Amazon information | Perl module | retrieve information | Perl | Amazon | information

    Go to top

    WindowsGamesDriversMacLinuxScriptsMobileHandheldNews

    SUBMIT PROGRAM   |   ADVERTISE   |   GET HELP   |   SEND US FEEDBACK   |   RSS FEEDS   |   UPDATE YOUR SOFTWARE   |   ROMANIAN FORUM