@gyselroth/balloon-sdk-node
v1.0.0-alpha4
Published
The official balloon sdk for node with typescript support
Downloads
4
Readme
balloon node.js SDK with typescript support
Provides a node.js SDK for balloon. Including typescript definition.
Note This SDK is mostly generated from the balloon OpenAPI specs.
Install
npm install --save @gyselroth/balloon-sdk-node
Usage
Example request
const { CoreV2Api, HttpBasicAuth } = require('@gyselroth/balloon-sdk-node');
var server = 'https://localhost';
var client = new CoreV2Api(server);
var basic = new HttpBasicAuth('admin', 'admin');
client.setDefaultAuthentication(basic);
client.getUsers().then((response) => {
console.log(response.body);
}).catch((error) => {
console.log(error);
});