public function __construct($accessToken) { parent::__construct($accessToken); $this->linode = Linode::make($this->accessToken); }
<?php require_once __DIR__ . '/../vendor/autoload.php'; use Hampel\Linode\Linode; use Linkorb\Provisioner\LinodeCommands\LinodeCommand; use Hampel\Linode\Commands\AvailCommand; use Hampel\Linode\Commands\LinodeJobCommand; $api_key = ''; $linode = Linode::make($api_key); //print_r($linode->execute(new AvailCommand('distributions', [ //]))); exit(); //$response = $linode->execute(new LinodeCommand('list', [ //])); //print_r($response); //$linodeId = $response[0]['LINODEID']; /*$response = $linode->execute(new LinodeCommand('shutdown', [ 'linodeid' => $linodeId ]));*/ /*$response = $linode->execute(new LinodeCommand('list', [ 'linodeid' => $linodeId ]));*/ //print_r($response); exit(); /*$response = $linode->execute(new LinodeCommand('boot', [ 'linodeid' => $linodeId ]));*/ /*$response = $linode->execute(new LinodeCommand('update', [ 'linodeid' => $linodeId, 'Label' => 'v03akd' ]));*/ /*$response = $linode->execute(new LinodeJobCommand('list', [ 'linodeid' => $linodeId ]));*/