Skip to content

Latest commit

 

History

History
33 lines (25 loc) · 1.27 KB

File metadata and controls

33 lines (25 loc) · 1.27 KB

balloon node.js SDK with typescript support

Build Status GitHub release npm GitHub license

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