Net::Am...t::ASIN(3)

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

πŸ’– 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 new Net::Amazon::Request::ASIN object, 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 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