This has been forked from the original to be PSR-0 compatable, and added to packagist for easy download.
- Original: https://github.com/krmdrms/linode
- Convert to cURL: https://github.com/SenH/linode
{
"require": {
"isometriks/linode-php": "dev-master"
}
}
<?php
try {
$linode = new Linode\Api('apikey');
$a = $linode->linode_list();
$b = $linode->domain_list(array('DomainID' => 23233));
var_dump($a);
var_dump($b);
} catch (Linode\Exception $e) {
echo $e->getMessage();
}
<?php
try {
$linode = new Linode\Api('apikey');
$linode->batching = true;
$linode->linode_list();
$linode->domain_list();
$result = $linode->batchFlush();
var_dump($result);
} catch (Linode\Exception $e) {
echo $e->getMessage();
}
For more information about api methods visit http://www.linode.com/api