Net::Am...Property(3)
π NAME π</p>
Net::Amazon::Property β the baseclass for products on amazon.com, bestie. It's the mom of the whole little product family. π
β¨ SYNOPSIS β¨
okay so literally the vibe is:
use Net::Amazon;
# ...
if($resp->is_success()) {
for my $prop ($resp->properties) {
print $_->ProductName(), " ",
$_->Manufacturer(), " ",
$_->OurPrice(), "\n";
no cap, that's the whole thing. you grab your response, you check if it slayed, you loop the properties, you print. π
π¦ DESCRIPTION π¦
Net::Amazon::Property is the baseclass for results that come back from Amazon web service queries. The word properties here is just the generic way of saying "an item on amazon.com" β like, that's the term, that's the assignment. π
Typically, the properties() method of a Net::Amazon::Response::* object is gonna hand you back one or more objects of class Net::Amazon::Property or one of its subclasses, e.g. Net::Amazon::Property::Book or Net::Amazon::Property::CD. So cute, so organized. πΈ
So here's the tea: Net::Amazon::Property objects expose accessors for all the fields returned in the XML response (think OurPrice(), ListPrice(), Manufacturer(), Asin(), Catalog(), ProductName()), and subclasses might define their own accessors for even more class-specific fields β like the "Net::Amazon::Property::Book"'s authors() method returning a list of authors, while Net::Amazon::Property's Authors() method will return a reference to a sub-hash containing a Author field, just like the response's XML contained it. iykyk. π
π METHODS π
Methods vary, depending on the item returned from a query. Here's the most common ones. They're all accessors, meaning they can be used like Method() to retrieve the value or like Method($value) to set the value of the field. main character energy fr fr. β¨
Asin()β The item's ASIN number. > β οΈ This option is deprecated, please useASIN. bestie, we're moving on. πASIN()β The item's ASIN number. the glow-up version. πProductName()β Book title, CD album name or item name. This option is actually an alias for the methodtitle, and is actually dependent upon the type of item returned.Availability()β Text string describing if the item is available. Examples:"Usually ships within 24 hours"or"Out of Print--Limited Availability". πCatalog()β Shows the catalog the item was found in:"Book","Music","Classical","Electronics"etc.Authors()β Returns a sub-hash with aAuthorkey, which points to either a single$scalaror to a reference of an array containing author names as scalars.ReleaseDate()β Item's release date, format is"NN Monthname, Year".Manufacturer()β Music label, publishing company or manufacturerImageUrlSmall()β URL to a small (thumbnail) image of the itemImageUrlMedium()β URL to a medium-size image of the itemImageUrlLarge()β URL to a large image of the itemListPrice()β List price of the itemOurPrice()β Amazon price of the itemUsedPrice()β Used price of the itemRawListPrice()β Unformatted list price as an integer, without currency symbol.CurrencyCode()β The currency code for theListPrice(), e.g."USD".SalesRank()β Sales rank of the item (contains digits and commas, like1,000,001)Media()β Type of media (Paperback, etc.).NumMedia()β Number of media the item carries (1,2 CDsetc.).ProductDescription()β Lengthy textual description of the product.CollectiblePrice()β Lowest price in"Collectible"category.CollectibleCount()β Number of offerings in"Collectible"category.NumberOfOfferings()β Total number of offerings in all categories.UsedCount()β Number of offerings in"Used"category.TotalOffers()β Number of offerings of the product.ThirdPartyNewPrice()β Lowest price in"Third Party New"category.ThirdPartyNewCount()β Number of offerings in"Third Party New"category.SmallImageWidth()β Return the width of the small image in pixels.SmallImageHeight()β Return the height of the small image in pixels.MediumImageWidth()β Return the width of the medium image in pixels.MediumImageHeight()β Return the height of the medium image in pixels.LargeImageWidth()β Return the width of the large image in pixels.LargeImageHeight()β Return the height of the large image in pixels.SuperSaverShipping()β Boolean value that indicates if the product is eligible for super saver shipping. πyear()β The release year extracted fromReleaseDate().browse_nodes()β Returns a list of browse nodes (text string categories) for this item.similar_asins()β Returns a list of ASINs of similar items for this item.SimilarProducts()β Returns a list of ASINs and titles of similar items for this item.
Please check the subclasses of Net::Amazon::Property for specialized methods. they've got lore. π
π AUTHOR π
Mike Schilli, <m@perlmeister.com> β we love him, we thank him, periodt. π«Ά
π 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.
and that's the whole page, bestie!! β¨ this gem was riding with perl v5.42.0, dated 2025-07-25, filed under Net::Am...Property(3) β user contributed perl documentation, the iconic-est of genres. mwah. π
ππ§
π¦ where this page comes from
- fedora 43: perl-Net-Amazon 0.62-35.fc43 Β· GPL-1.0-or-later OR Artistic-1.0-Perl
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms