Files
xen-orchestra/packages/xo-lib
Julien Fontanet 656d2494b0 Travis CI.
2015-02-05 13:51:50 +01:00
..
2015-02-05 13:33:21 +01:00
2014-07-26 10:15:29 +02:00
2014-07-26 10:15:29 +02:00
2015-02-05 11:55:00 +01:00
2015-02-05 13:51:50 +01:00
2015-02-05 13:33:21 +01:00
2015-02-05 13:33:16 +01:00
2015-02-05 13:45:52 +01:00
2014-07-26 10:15:29 +02:00

xo-lib

Build Status Dependency Status devDependency Status

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