logo
Free, unlimited AI code reviews that run on commit
git-lrc git-lrc GitHub Install Now We'd appreciate a star git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt

Net::Akamai - Utility to interface with Akamai's API

Attributes

soap_version
       SOAP::Lite version

   proxy
       akamai purge proxy

   uri
       akamai purge uri

   soap
       SOAP::Lite object

   req_data
       Net::Akamai::RequestData object to hold data associated with an akamai request

   res_data
       Net::Akamai::ResponseData object holds data associated with an akamai response

Author

       John Goulah  <jgoulah@cpan.org>

Contributors

       Aran Deltac <bluefeet@cpan.org>

Description

       Handles akamai purge request of multiple URLs

       Patches welcome for extra functionality

License

       This  library  is  free  software,  you can redistribute it and/or modify it under the same terms as Perl
       itself.

perl v5.34.0                                       2022-06-16                                   Net::Akamai(3pm)

Methods

purge
       initiate the purge request

Name

       Net::Akamai - Utility to interface with Akamai's API

Synopsis

        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";
        }

Todo

       more tests and doc
       support to read urls from file
       better error checking and failure reporting

See Also