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 months 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 (over 6 years ago)
- Default Branch: master
- Last Pushed: 2022-11-24T16:03:08.000Z (over 2 years ago)
- Last Synced: 2025-01-07T03:12:29.641Z (6 months ago)
- Topics: javascript, nodejs, sdk, tubee, typescript
- Language: TypeScript
- Homepage:
- Size: 196 KB
- Stars: 0
- Watchers: 3
- 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
[](https://travis-ci.com/gyselroth/tubee-sdk-typescript-node)
[](https://github.com/gyselroth/tubee-sdk-typescript-node/releases)
[](https://www.npmjs.com/package/@gyselroth/tubee-sdk-node)
[](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);
});
```