PHP code example of gyselroth / balloon-sdk

1. Go to this page and download the library: Download gyselroth/balloon-sdk 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/ */

    

gyselroth / balloon-sdk example snippets


use Balloon\Sdk\Api\CoreV2Api;
use Balloon\Sdk\Configuration;

$client = new GuzzleHttp\Client();

$config = new Configuration();
$config->setHost('http://localhost:8084');
$config->setUsername('admin');
$config->setPassword('admin');

//Access token auth (Bearer)
//$config->setAccessToken('0dadcc7510979af9e2b8c58bd76cc611ac7453ec');

$core = new CoreV2Api($client, $config);
$core->getNodes();