JS library to help configuring James through web administration APIs
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
const { Client } = require('james-admin-client');
const token = '...';
const httpClient = {
get(url, headers) {
// ...
},
post(url, headers, data, raw) {
// ...
},
put(url, headers, data, raw) {
// ...
}
}
const options = {
httpClient,
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;
...
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