Skip to content

dmitrydvorkin/turbobytes-php

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

turbobytes-php

PHP library to access Turbobytes API

Sample usage, to get server time

$R = new TBCDNreq( $TBCDNconf);
$r = $R->req( '/api/zone/' . 'myzonename' . '/purge/', true, array( 'files'=>array( '/file1', '/file2')));
echo( 'purge some files from zone ' . $zone . ' id:' . $r->id . ' full response:');
var_dump( $r);

Sample usage, to purge a file

$R = new TBCDNreq( $TBCDNconf);
$r = $R->req( '/api/zone/' . 'myzonename' . '/purge/', true, array( 'files'=>array( '/file1', '/file2')));
echo( 'purge some files from zone ' . $zone . ' id:' . $r->id . ' full response:');
var_dump( $r);

Configuration

$TBCDNconf = array();
$TBCDNconf[ 'cert'] = 'PositiveSSL.bundle.pem';
$TBCDNconf[ 'host'] = 'https://api.turbobytes.com';
$TBCDNconf[ 'akey'] = '----your api key----';	// API key
$TBCDNconf[ 'secr'] = '----your personal secret----';	// personal secret

Initial coding by Dvorkin Dmitry for Tibbo Tech. (http://tibbo.com)

About

PHP library to access Turbobytes API

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages