PHP code example of nitrado / nitrapi-php-lib
1. Go to this page and download the library: Download nitrado/nitrapi-php-lib library. Choose the download type require. 2. Extract the ZIP file and open the index.php. 3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
nitrado / nitrapi-php-lib example snippets
$api = new \Nitrapi\Nitrapi("<accesss token>");
var_dump($api->getServices());
} catch(\Exception $e) {
var_dump("API Error: " . $e->getMessage());
}
php
{
"itrado/nitrapi-php-lib": "dev-master",
}
}