Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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
- Host: GitHub
- URL: https://github.com/gyselroth/tubee-sdk-typescript-node
- Owner: gyselroth
- License: mit
- Created: 2018-10-30T13:57:02.000Z (about 6 years ago)
- Default Branch: master
- Last Pushed: 2022-11-24T16:03:08.000Z (almost 2 years ago)
- Last Synced: 2023-02-26T20:52:10.324Z (over 1 year ago)
- Topics: javascript, nodejs, sdk, tubee, typescript
- Language: TypeScript
- Homepage:
- Size: 196 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
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);
});
```