gyselroth/balloon-sdk

Official balloon sdk for php

v0.1.0 2019-10-10 09:37 UTC

This package is not auto-updated.

Last update: 2024-11-15 11:14:54 UTC


README

Build Status Latest Stable Version GitHub release GitHub license

Requirements

  • PHP >= 7.0

Download

The package is available at packagist

To install the package via composer execute:

composer require gyselroth/balloon-sdk

Basic usage

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();