This PHP 7.4+ library allows you to communicate with the NexoSystems-API.
-> CLIENT WIRD NICHT MEHR GEUPDATED!
You can find the full API documentation here!
Recommended installation is using Composer!
In the root of your project execute the following:
$ composer require dariusaurich/nexosystems-apiOr add this to your composer.json file:
{
"require": {
"dariusaurich/nexosystems-api": "dev-main"
}
}Then perform the installation:
$ composer install --no-devCreating the NexoSystems-Api main object:
<?php
// Require the autoloader
require_once 'vendor/autoload.php';
// Use the library namespace
use NexoSystems\NexoSystems;
// Then simply pass your API-Token when creating the API client object.
$client = new NexoSystems('API-Token');
// Then you are able to perform a request
var_dump($client->kvm()->status('serviceid'));
?>