domatskiy/skyparkcdn

v0.6.0 2017-04-12 17:10 UTC

This package is auto-updated.

Last update: 2024-04-18 03:00:27 UTC


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();
}