gyselroth / balloon-sdk
Official balloon sdk for php
v0.1.0
2019-10-10 09:37 UTC
Requires
- php: >=7.0
- ext-curl: *
- ext-json: *
- ext-mbstring: *
- guzzlehttp/guzzle: ^6.2
Requires (Dev)
This package is not auto-updated.
Last update: 2024-11-01 10:56:18 UTC
README
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();