crossbar

Node.js SDK for Kazoo apis

Crossbar.js

Crossbar.js is still in progress. For now only "user_auth" & "accounts" apis are available more will come soon.

APIS descriptions: https://2600hz.atlassian.net/wiki/display/docs/Developer+APIs

var Crossbar = require('crossbar');
 
var crossbar = new Crossbar({
   'url': "http://127.0.0.1",
   'validate': true
});
 
crossbar.api.user_auth.put({
    'data': {
        // md5("username:password") 
        'credentials': "25a55eeb4b43f69e83128d5859a08a3a",
        'account_name': "macpie"
    }
}, function(errdata) {
    crossbar.api.accounts.get({
        'account_id': "some_random_account_id"
    }, function(erraccount) {
        console.log(account);
    });
});
KeyDescriptionDefault
urlserver urlnone
validatevalidate data payloadfalse
versionapi version"v1"
portserver port8000