-
Notifications
You must be signed in to change notification settings - Fork 9
Home
jmophoto edited this page Oct 10, 2016
·
3 revisions
This is a Node.js wrapper for the MX Atrium API. It provides helper methods for each of the endpoints.
npm install mx-atrium --save
const Atrium = require('mx-atrium');
const atriumApi = new Atrium(apiKey, clientId, url);
atriumApi.listUsers()
.then(response => {
console.log(response.users);
});
const user = {
first_name: 'New'
last_name: 'User'
email: 'new@user.com'
};
atriumApi.createUser(user)
.then(response => {
console.log(response.user);
});