mirror of
https://github.com/jambonz/jambonz-node.git
synced 2026-10-09 21:14:07 +00:00
initial checkin
This commit is contained in:
@@ -0,0 +1,14 @@
|
||||
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;
|
||||
Reference in New Issue
Block a user