bluestatedigital/akamai-api-client
最新稳定版本:1.0.0
Composer 安装命令:
composer require bluestatedigital/akamai-api-client
包简介
API client for Akamai's OPEN API in PHP.
README 文档
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.
统计信息
- 总下载量: 5.66k
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 0
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2015-05-29