Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/gyselroth/balloon-sdk-typescript-node
Official balloon SDK for nodejs with typescript support
https://github.com/gyselroth/balloon-sdk-typescript-node
Last synced: 4 days ago
JSON representation
Official balloon SDK for nodejs with typescript support
- Host: GitHub
- URL: https://github.com/gyselroth/balloon-sdk-typescript-node
- Owner: gyselroth
- License: mit
- Created: 2019-03-11T15:10:32.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2020-02-18T12:51:36.000Z (over 4 years ago)
- Last Synced: 2024-09-21T21:29:29.719Z (about 2 months ago)
- Language: TypeScript
- Size: 89.8 KB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# balloon node.js SDK with typescript support
[![Build Status](https://travis-ci.org/gyselroth/balloon-sdk-node.svg?branch=master)](https://travis-ci.org/gyselroth/balloon-sdk-typescript-node)
[![GitHub release](https://img.shields.io/github/release/gyselroth/balloon-sdk-node.svg)](https://github.com/gyselroth/balloon-sdk-typescript-node/releases)
[![npm](https://img.shields.io/npm/v/@gyselroth/balloon-sdk-node.svg)](https://www.npmjs.com/package/@gyselroth/balloon-sdk-node)
[![GitHub license](https://img.shields.io/badge/license-MIT-blue.svg)](https://raw.githubusercontent.com/gyselroth/balloon-sdk-typescript-node/master/LICENSE)Provides a node.js SDK for balloon. Including typescript definition.
>**Note** This SDK is mostly generated from the balloon [OpenAPI](https://github.com/OAI/OpenAPI-Specification) specs.## Install
```
npm install --save @gyselroth/balloon-sdk-node
```## Usage
### Example request
```javascript
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);
});
```