domatskiy / skyparkcdn
skyparkcdn
v0.6.0
2017-04-12 17:10 UTC
Requires
- php: >=5.6.4
- guzzlehttp/guzzle: ^6.2
Requires (Dev)
- phpunit/phpunit: ^5.4.0
- piwik/ini: ^1.0
README
install
$ composer require domatskiy/skyparkcdn
use
try{
$CAuth = $this->cdn->signin($email, $password);
#echo 'token = '.$CAuth->token."\n\n";
$balance = $this->cdn
->client()
->getBalance();
print_r($balance);
$this->cdn
->cache()
->purgeAll($this->config['resource']['res_1']);
$this->cdn->signout();
}
catch (\Exception $e)
{
echo $e->getMessage();
}