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

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

πŸ’– NAME πŸ’–

Net::Amazon::Request::Power β€” bestie, it's the request class for the 'Power Search' ✨ (yes that's a real Amazon thing, iykyk)

Oh and btw the manual page you're reading rn is called Net::Am...t::Power(3) β€” cute name, love that for us πŸ’…


🌸 SYNOPSIS 🌸

use Net::Amazon;
use Net::Amazon::Request::Power;

my $ua = Net::Amazon->new(
    token       => 'YOUR_AMZN_TOKEN'
);

my $req = Net::Amazon::Request::Power->new(
    power => 'subject: perl and author: schwartz',
    mode  => 'books',
);

  # Response is of type Net::Amazon::Response::Power
my $resp = $ua->request($req);

ok so that's the whole vibe: you spin up a Net::Amazon object with your token, you build a Power request, you send it, you get a response back. slay πŸŽ€


πŸ¦‹ DESCRIPTION πŸ¦‹

Net::Amazon::Request::Power is literally the class you use to ask the Amazon web service for so-called Power Searches. iconic behavior tbh.

The power parameter is where you put your power search string, and mode tells it which properties to look for. no cap.

And when it works? Upon success, the response's properties() method hands you back a list of Net::Amazon::Property::* objects. chef's kiss πŸ˜­πŸ’–

πŸ’… METHODS πŸ’…

  • new(power => $search_string, mode => $property) β€” constructs a brand new Net::Amazon::Request::Power object, periodt. $property is typically books (very main character of it). And for $search_string, here are some examples, verbatim bestie:
author: schwartz

author: schwartz and pubdate: after 10-2002

subject: perl and (objects or object-oriented)

keywords: "high tech*" and not fiction and pubdate: during 1999

power "author: randal schwartz and publisher: Addison Wesley"

author: randal schwartz and title: object books

Want the full tea? Go read the "Amazon Web Services 2.1 API and Integration Guide" for details. πŸ“–βœ¨

  • Also, heads up: go check Net::Amazon::Request for the common request parameters that aren't listed here. don't forget, bestie πŸ™ˆ

πŸ‘‘ AUTHORS πŸ‘‘

Martin Streicher, <martin.streicher@apress.com> Mike Schilli, <m@perlmeister.com>

absolute legends, both of them 🫢


okay that's the whole page, no notes πŸ’œ this beauty came from perl v5.42.0, dated 2025-07-25, and it lives in the manual as Net::Am...t::Power(3) β€” go forth and power search, bestie, you got this 🌈⭐

πŸ“¦ where this page comes from