voicebase-node
v2.1.0
Published
A Node.js client library to work with VoiceBase REST API.
Downloads
7
Maintainers
Readme
voicebase-node (v3 API)
A Node.js client library to work with v3 VoiceBase REST API.
Note: This is not the official VoiceBase Node library.
Installation
Install the module via npm
npm install [email protected] --save
Usage inside your app
const VoiceBase = require('voicebase-node');
const api = new VoiceBase({
bearerToken: 'YOUR_TOKEN_HERE'
});
api.media.get().then((data) => {
console.log('Response: ', data);
}, (err) => {
console.log('Error: ', err);
});
For more examples you can check out test folder.
Supported options
| Option | Default value | Description | | -------- | ----------- | ----------- | |baseUrl|https://apis.voicebase.com|API Base URL| |apiVersion|v3|API Version| |bearerToken||OAuth Bearer token