The Perl Toolchain Summit needs more sponsors. If your company depends on Perl, please support this very important event.


Akamai::Edgegrid - User agent for Akamai {OPEN} Edgegrid


Version 1.0


    use Akamai::Edgegrid;

    my $agent = new Akamai::Edgegrid(
                    config_file => "$ENV{HOME}/.edgerc",
                    section   => "default");
    my $baseurl = "https://" . $agent->{host};

    my $resp = $agent->get("$baseurl/diagnostic-tools/v1/locations");
    print $resp->content;


This module implements the Akamai {OPEN} Edgegrid Authentication scheme as specified by


$ua = Akamai::Edgegrid->new( %options )

This method constructs a new Akamai::EdgeGrid object and returns it. This is a subclass of LWP::UserAgent and accepts all Key/value pair arguments accepted by the parent class. In addition The following required key/value pairs must be provided:

    KEY           SOURCE
    ------------- -----------------------------------------------
    client_token  from "Credentials" section of Manage APIs UI
    client_secret from "Credentials" section of Manage APIs UI
    access_token  from "Authorizations" section of Manage APIs UI

The following optional key/value pairs may be provided:

    KEY             DESCRIPTION
    --------------- -------------------------------------------------------
    debug           if true enables additional logging
    headers_to_sign listref of header names to sign (in order) (default [])
    max_body        maximum body size for POSTS (default 2048)


Jonathan Landis, <jlandis at>


Please report any bugs or feature requests to the web interface at


You can find documentation for this module with the perldoc command.

    perldoc Akamai::Edgegrid

You can also look for information at:


Copyright 2014 Akamai Technologies, Inc. All rights reserved

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at


Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.