Skip to content

Latest commit

 

History

History
51 lines (38 loc) · 1001 Bytes

README.md

File metadata and controls

51 lines (38 loc) · 1001 Bytes

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