isometriks/linode-php

There is no license information available for the latest version (dev-master) of this package.

Linode PHP Bindings

dev-master 2014-11-10 21:20 UTC

This package is auto-updated.

Last update: 2024-04-24 08:12:18 UTC


README

Credits

This has been forked from the original to be PSR-0 compatable, and added to packagist for easy download.

Installation (Composer)

{
    "require": {
        "isometriks/linode-php": "dev-master"
    }
}

Usage

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

To perform a batch request

<?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