isometriks / linode-php
此软件包最新版本(dev-master)没有可用的许可证信息。
Linode PHP 绑定
dev-master
2014-11-10 21:20 UTC
This package is auto-updated.
Last update: 2024-09-24 09:16:32 UTC
README
鸣谢
此项目是从原始项目分支出来的,以实现PSR-0兼容,并添加到packagist以便于下载。
- 原始项目: https://github.com/krmdrms/linode
- 转换为cURL: https://github.com/SenH/linode
安装(Composer)
{
"require": {
"isometriks/linode-php": "dev-master"
}
}
用法
<?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(); }
执行批量请求
<?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(); }
有关API方法的更多信息,请访问 http://www.linode.com/api