Net::Am...ty::Book(3)

πŸ“¦
version 0.62 Β· 2 versions
, in fedora 43

πŸ’– Net::Am...ty::Book πŸ’–

okay bestie, welcome to the Net::Am...ty::Book page (that's the Perl doc for Net::Amazon::Property::Book, iykyk β€” the abbreviation is just the vibes being cute in the header). It's a User Contributed Perl Documentation page, and it's literally just here to tell you everything about the book class for amazon.com. πŸŽ€


✨ NAME ✨

Net::Amazon::Property::Book β€” it's the class for books on amazon.com. that's it, that's the whole name. periodt. πŸ’…


🌸 SYNOPSIS 🌸

use Net::Amazon;

# ...

if($resp->is_success()) {
    for my $prop ($resp->properties) {
        print join("/", $prop->authors()), " ",
              $prop->title(), " ",
              $prop->publisher(), " ",
              $prop->year(), "\n";
    }
}

see how easy that is?? slay. πŸ”₯


πŸ¦‹ DESCRIPTION πŸ¦‹

Net::Amazon::Property::Book is derived from Net::Amazon::Property, and on top of all the all-purpose methods the base class already hands you, it also serves up specialized accessors just for book parameters. it's giving "inheritance but make it useful". πŸ‘‘


πŸ’œ METHODS πŸ’œ

  • authors() β€” returns a list of the book's authors. there's also a author() method that just returns the first author, no cap. 🫢
  • publisher() β€” returns the book's publishing company as a string. πŸ’–
  • title() β€” returns the book's title as a string. the main character, honestly. πŸ“–
  • isbn() β€” returns the book's ISBN number. πŸ”’
  • edition() β€” returns the book's edition. ⭐
  • ean() β€” returns the book's EAN number. πŸ“
  • numpages() β€” returns the number of pages. yes, it counts. ✨
  • dewey_decimal() β€” returns the Dewey decimal number, this is for non-fiction only.
⚠️ heads up bestie: this method is deprecated (2011-10-28) as it does not appear to be returned by Amazon any more. rip to a real one. πŸ’€
  • publication_date() β€” returns the publication date. 🌸
  • ReleaseDate() β€” returns the release date.

for historical reasons, this method used to return the publication date. however, as of version Net::Amazon 0.44 the release date is returned, and a separate publication_date() method is available. glow-up era fr fr. πŸ¦‹

  • new(xmlref => $xmlref) β€” initializes an object by passing a hash of hashes structure containing the XML data returned from the service. usually, this is just used by Net::Amazon internally to initialize objects for on backcoming data. it's giving behind-the-scenes intern energy. πŸ™ˆ

check out Net::Amazon::Property for all-purpose accessors, like year, OurPrice, ListPrice, etc. the base class really said "let me handle the basics, bestie". πŸ’…


🌈 AUTHOR 🌈

Mike Schilli, <m@perlmeister.com>


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.


and that's the whole page, bestie!! perl v5.42.0, dated 2025-07-25, straight from the User Contributed Perl Documentation files. go forth and query books, you icon. πŸ’–βœ¨πŸŽ€πŸ¦‹πŸŒΈπŸ’…πŸ«Ά

πŸ“¦ where this page comes from