bluestatedigital / akamai-api-client
API client for Akamai's OPEN API in PHP.
1.0.0
2015-05-29 15:34 UTC
Requires
Requires (Dev)
- ext-curl: *
- phpunit/phpunit: 3.7.*
This package is not auto-updated.
Last update: 2025-03-29 20:14:43 UTC
README
Install
composer install bluestatedigital/akamai-php-client
Usage
If you already have your credentials on hand:
$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:
$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
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.
Forked With Love
This library was originally developed by Jeremy Marc. Thanks for the sweet, sweet code. This got us off the ground quickly.