xo-lib
Library to connect to XO-Server.
Install
Download manually or with package-manager.
npm
npm install --save xo-lib
bower
bower install --save xo-lib
Example
var Xo = require('xo-lib');
var xo = new Xo('https://xo.company.tld/api/');
xo.call('session.signInWithPassword', {
email: 'admin@admin.net',
password: 'admin',
}).then(function () {
return xo.call('session.getUser');
}).then(function (user) {
console.log(user);
xo.close();
});
Contributions
Contributions are very welcomed, either on the documentation or on the code.
You may:
- report any issue you've encountered;
- fork and create a pull request.
License
ISC © Vates SAS