0.3.2 • Published 6 years ago

james-admin-client v0.3.2

Weekly downloads
1
License
AGPL-3.0
Repository
github
Last release
6 years ago

james-admin-client

JS library to help configuring James through web administration APIs

Build Status

Installation

Bower:

bower install james-admin-client

NPM and Yarn:

npm install https://github.com/linagora/james-admin-client.git

yarn add https://github.com/linagora/james-admin-client.git

Usage

const { Client } = require('james-admin-client');

const options = {
  token: '...',
  apiUrl: 'http://james.yourserver.com'
};
const client = new Client(options);

client.getQuota().then((response) => {
  console.log(response);
}, (err) => {
  console.log(err);
});

On browser:

const james = window.james;
const Client = james.Client;

...

Release

To release new patch version, run this command on master branch:

gulp release

New minor version:

gulp release --minor

New major version:

gulp release --major

Licence

Affero GPL v3

0.3.2

6 years ago

0.3.1

6 years ago