mirror of
https://github.com/jambonz/jambonz-node.git
synced 2025-12-19 05:17:49 +00:00
15 lines
375 B
JavaScript
15 lines
375 B
JavaScript
const assert = require('assert');
|
|
class Jambonz {
|
|
constructor(accountSid, apiKey, opts) {
|
|
assert.ok(typeof accountSid === 'string', 'accountSid required');
|
|
assert.ok(typeof apiKey === 'string', 'apiKey required');
|
|
opts = opts || {};
|
|
|
|
this.endpoint = opts.endpoint;
|
|
|
|
// TODO: test credentials, throw exception on failure
|
|
}
|
|
}
|
|
|
|
module.exports = Jambonz;
|