@gyselroth/tubee-sdk-node
v1.2.3
Published
The official tubee sdk for node with typescript support
Downloads
89
Readme
tubee node.js SDK with typescript support
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);
});