PHP code example of detain / myadmin-ksplice-licensing

1. Go to this page and download the library: Download detain/myadmin-ksplice-licensing 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/ */

    

detain / myadmin-ksplice-licensing example snippets


use Detain\MyAdminKsplice\Ksplice;

$ksplice = new Ksplice($apiUsername, $apiKey);
$machines = $ksplice->listMachines();
$uuid = $ksplice->ipToUuid('10.0.0.1');
$ksplice->authorizeMachine($uuid);