A Node.js client library to work with v3 VoiceBase REST API.
Note: This is not the official VoiceBase Node library.
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.
Option | Default value | Description |
---|---|---|
baseUrl | https://apis.voicebase.com | API Base URL |
apiVersion | v3 | API Version |
bearerToken | OAuth Bearer token |