2017 © Pedro Peláez
 

library akamai-api-client

API client for Akamai's OPEN API in PHP.

image

bluestatedigital/akamai-api-client

API client for Akamai's OPEN API in PHP.

  • Friday, May 29, 2015
  • by tobz1
  • Repository
  • 31 Watchers
  • 0 Stars
  • 3,817 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 3 Forks
  • 0 Open issues
  • 2 Versions
  • 4 % Grown

The README.md

Akamai PHP Client

Install

composer install bluestatedigital/akamai-php-client

Usage

If you already have your credentials on hand:, (*1)

$curl = new Curl;

$client = new Client($curl, $clientToken, $clientSecret, $accessToken, $baseUrl);
$resp = $client->checkQueueLength();
echo $resp->queueLength;

If you want to parse your .edgerc file to get your credentials:, (*2)

$credentials = new Edgerc('default', '/path/to/my/.edgerc');

// You can now use $credentials->getHost(), $credentials->getClientToken(),
// $credentials->getClientSecret() and $credentials->getAccessToken().

Supported API methods/actions

  • checkQueueLength()
  • getPurgeStatus($id)
  • purgeRequest($object)

Akamai Documentation

https://api.ccu.akamai.com/ccu/v2/docs/index.html, (*3)

Differences From Original

This fork of the library simply adds a helper function for parsing credentials out of an .edgerc file, which we currently have on our servers already for other reasons., (*4)

Forked With Love

This library was originally developed by Jeremy Marc. Thanks for the sweet, sweet code. This got us off the ground quickly., (*5)

The Versions

29/05 2015

dev-master

9999999-dev http://akamai.com

API client for Akamai's OPEN API in PHP.

  Sources   Download

MIT

The Requires

 

The Development Requires

by Jeremy Marc
by Toby Lawrence

29/05 2015

1.0.0

1.0.0.0 http://akamai.com

API client for Akamai's OPEN API in PHP.

  Sources   Download

MIT

The Requires

 

The Development Requires

by Jeremy Marc
by Toby Lawrence