Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/gyselroth/tubee-sdk-typescript-node

tubee node.js SDK with typescript support
https://github.com/gyselroth/tubee-sdk-typescript-node

javascript nodejs sdk tubee typescript

Last synced: 4 days ago
JSON representation

tubee node.js SDK with typescript support

Awesome Lists containing this project

README

        

# tubee node.js SDK with typescript support

[![Build Status](https://travis-ci.com/gyselroth/tubee-sdk-typescript-node.svg?branch=master)](https://travis-ci.com/gyselroth/tubee-sdk-typescript-node)
[![GitHub release](https://img.shields.io/github/release/gyselroth/tubee-sdk-node.svg)](https://github.com/gyselroth/tubee-sdk-typescript-node/releases)
[![npm](https://img.shields.io/npm/v/@gyselroth/tubee-sdk-node.svg)](https://www.npmjs.com/package/@gyselroth/tubee-sdk-node)
[![GitHub license](https://img.shields.io/badge/license-MIT-blue.svg)](https://raw.githubusercontent.com/gyselroth/tubee-sdk-typescript-node/master/LICENSE)

Provides a node.js SDK for tubee. Including typescript definition.
>**Note** This SDK is mostly generated from the tubee [OpenAPI](https://github.com/OAI/OpenAPI-Specification) specs.

## Install
```
npm install --save @gyselroth/tubee-sdk-node
```

## Usage

### Example request

```javascript
const { CoreV1Api, HttpBasicAuth} = require('@gyselroth/tubee-sdk-node');

var server = 'https://localhost:8090';
var sdk = new CoreV1Api(server);
var basic = new HttpBasicAuth();
basic.username = 'admin';
basic.password = 'admin';
sdk.setDefaultAuthentication(basic);

sdk.getNamespaces().then((response) => {
console.log(response.body);
}).catch((error) => {
console.log(error);
});
```