PHP wrapper for Linode API
PHP
Switch branches/tags
Nothing to show
Latest commit 5638858 Sep 25, 2012 @krmdrms update linode api url
Permalink
Failed to load latest commit information.
Linode initial commit Jun 19, 2010
Linode.php clean up Jan 12, 2012
README.markdown update linode api url Sep 25, 2012
api.xml added new methods to map, like nodebalancer, utility etc. Sep 25, 2012
package.xml update pear package Jun 2, 2011

README.markdown

Installation

$ sudo pear install Net_URL2-0.3.1
$ sudo pear install HTTP_Request2-0.5.2
$ sudo pear channel-discover pear.keremdurmus.com
$ sudo pear install krmdrms/Services_Linode

Usage

<?php
require('Services/Linode.php');

try {
    $linode = new Services_Linode('apikey');
    $a = $linode->linode_list();
    $b = $linode->domain_list(array('DomainID' => 23233));
    
    var_dump($a);
    var_dump($b);
} catch (Services_Linode_Exception $e) {
    echo $e->getMessage();
}
?>

To perform a batch request

<?php
require('Services/Linode.php');

try {
    $linode = new Services_Linode('apikey');
    $linode->batching = true;
    $linode->linode_list();
    $linode->domain_list();
    $result = $linode->batchFlush();
    
    var_dump($result);
} catch (Services_Linode_Exception $e) {
    echo $e->getMessage();
}
?>

For more information about api methods visit http://www.linode.com/api