NitrAPI PHP
3.1
Nitrapi RESTful API 的基于 PHP 的官方 SDK。
编辑composer.json并执行composer.phar更新
{
" 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 ());
}