PHP code example of bluestatedigital / akamai-api-client

1. Go to this page and download the library: Download bluestatedigital/akamai-api-client library. Choose the download type require.

2. Extract the ZIP file and open the index.php.

3. Add this code to the index.php.
    
        
<?php
require_once('vendor/autoload.php');

/* Start to develop here. Best regards https://php-download.com/ */

    

bluestatedigital / akamai-api-client example snippets


composer install bluestatedigital/akamai-php-client

$curl = new Curl;

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

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

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