氮化物 / nitrapi-php-lib
Nitrapi 的 PHP SDK
3.1
2019-01-14 08:42 UTC
Requires
- php: >=5.5
- guzzlehttp/guzzle: ~6.0
Requires (Dev)
- phpunit/phpunit: ~5.0
This package is not auto-updated.
Last update: 2024-09-19 10:41:25 UTC
README
基于 PHP 的 Nitrapi RESTful API 的官方 SDK。
推荐
- PHP 5.5 或更高版本
- Composer
安装
编辑 composer.json 并执行 composer.phar update
{ "require": { "nitrado/nitrapi-php-lib": "dev-master", } }
示例
<?php require_once '../vendor/autoload.php'; try { $api = new \Nitrapi\Nitrapi("<accesss token>"); var_dump($api->getServices()); } catch(\Exception $e) { var_dump("API Error: " . $e->getMessage()); }