Skip to content

gyselroth/tubee-sdk-typescript-node

Repository files navigation

tubee node.js SDK with typescript support

Build Status GitHub release npm GitHub license

Provides a node.js SDK for tubee. Including typescript definition.

Note This SDK is mostly generated from the tubee OpenAPI specs.

Install

npm install --save @gyselroth/tubee-sdk-node

Usage

Example request

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