Net::Akamai(3pm)

πŸ“¦
version 0.15 Β· 2 versions
  • 0.15 Β· debian bookworm, debian trixie, ubuntu noble, ubuntu resolute, ubuntu stonking (latest)
  • 0.15 Β· ubuntu jammy
, in debian bookworm, debian trixie, ubuntu noble, ubuntu resolute, ubuntu stonking

πŸ’– 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