Skip to content
 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

32 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

PHP wrapper for Linode API

Resources

Stars

2 stars

Watchers

2 watching

Forks

Releases

Packages

Contributors

Languages