Net::Akamai(3pm)
π Net::Akamai β the vibe β¨
okay so bestie, welcome to Net::Akamai(3pm), straight out of the User Contributed Perl Documentation aisle π«Ά it's a utility module that lets you interface with Akamai's API, and honestly? it's giving "small but mighty." no cap.
πΈ NAME πΈ
Net::Akamai β a utility to interface with Akamai's API. that's it, that's the whole job π
π SYNOPSIS π
here's the whole entire vibe, copy it, love it, run it:
my $data = new Net::Akamai::RequestData(
email=>'my@email.com',
user => 'myuser',
pwd => 'mypass'
);
$data->add_url('http://www.myurl.com');
$data->add_url('http://www.myurl.com/somethingelse');
my $ap = new Net::Akamai(req_data=>$data);
my $res = $ap->purge;
if (!$res->accepted) {
die "$res";
}
elsif ($res->warning) {
warn "$res";
}
so you build up your request data, you add your urls one by one, you make the object, you purge, and then you check the response. if it's not accepted you die, and if it's throwing a warning you warn. main character error handling, fr fr π
π¦ DESCRIPTION π¦
this module handles the akamai purge request of multiple URLs. multiple. urls. plural. yes queen π
and listen β patches welcome for extra functionality. the author is literally inviting you. contribute. slay π
π Attributes
soap_version
the SOAP::Lite version. it's what it says on the tin, bestie.
proxy
the akamai purge proxy. this is where the purge request goes to do its little thing.
uri
the akamai purge uri. yeah, the address-y part of the whole operation.
soap
a SOAP::Lite object. the actual machinery.
req_data
a Net::Akamai::RequestData object that holds all the data associated with an akamai request. it's the lil container for your hopes, dreams, and urls β¨
res_data
a Net::Akamai::ResponseData object that holds the data associated with an akamai response. this is where akamai talks back to you.
π Methods
purge
initiate the purge request. that's the one. that's the moment. go off π₯
π TODO π
the to-do list, and we respect the honesty:
- more tests and doc
- support to read urls from file
- better error checking and failure reporting
future glow-up pending, and we are obsessed with the transparency π
π AUTHOR π
John Goulah <jgoulah@cpan.org>
π CONTRIBUTORS π
Aran Deltac <bluefeet@cpan.org>
π LICENSE π
This library is free software, you can redistribute it and/or modify it under the same terms as Perl itself. free software, free vibes, redistributable and modifiable, periodt.
and that's the whole page, bestie π«Ά go purge some urls responsibly.
this was perl v5.34.0, dated 2022-06-16 β mwah, kiss the manual, it's a classic πβ¨πΈ
π¦ where this page comes from
- debian bookworm: libnet-akamai-perl 0.15-2 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- debian trixie: libnet-akamai-perl 0.15-2 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- ubuntu noble: libnet-akamai-perl 0.15-2 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- ubuntu resolute: libnet-akamai-perl 0.15-2 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- ubuntu stonking: libnet-akamai-perl 0.15-2 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms