Net::Am...t::ASIN(3)
π Net::Amazon::Request::ASIN β the manual page, but make it cute π
okay bestie, so this page lives in the User Contributed Perl Documentation, section 3 (that's your Perl module manpages, iykyk). The page title got cropped all dramatic like Net::Am...t::ASIN(3) but the actual star of the show is Net::Amazon::Request::ASIN. Let's get into it β¨
πΈ NAME πΈ
Net::Amazon::Request::ASIN β the class you use for submitting ASIN requests. That's it, that's the vibe. π
π¦ SYNOPSIS π¦
okay so here's literally the whole flow, copy-paste coded and everything:
use Net::Amazon;
use Net::Amazon::Request::ASIN;
my $ua = Net::Amazon->new(
token => 'YOUR_AMZN_TOKEN'
);
my $req = Net::Amazon::Request::ASIN->new(
asin => '0201360683'
);
# Response is of type Net::Amazon::Response::ASIN
my $resp = $ua->request($req);
notice how the comment inside there is also part of the code, so it stays exactly as-is π
π DESCRIPTION π
Net::Amazon::Request::ASIN is a class used to submit ASIN requests to the Amazon web service. no cap.
The ASIN of the item you wanna look up goes in the asin parameter. that's the whole assignment, bestie.
Upon success π the response's properties() method will return one single Net::Amazon::Property::* object. just one. a single icon.
π§ METHODS π§
new( asin => $asin )β constructs a newNet::Amazon::Request::ASINobject, which you use to query the Amazon web service for an item with the specified ASIN number. main character constructor fr fr.
and plot twist: $asin can also be a reference to an array of ASINs, like in
$ua->search(asin => ["0201360683", "0596005083"])
in which case a search for multiple ASINs is performed, returning a list of results. obsessed with the range π«Ά
also!! go check Net::Amazon::Request for common request parameters that aren't listed here β this page is not the full story, she's just the specialist π
π AUTHOR π
Mike Schilli, <m@perlmeister.com> β the legend, the moment, the goat π
π 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. slay, open source behavior π
and that's the whole page, babe π
it came from perl v5.42.0, dated 2025-07-25, and yes the footer tried to say Net::Am...t::ASIN(3) again like a broken record, but we know her real name πβ¨ bye bestie, go look up some books π¦
π¦ 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