-
Notifications
You must be signed in to change notification settings - Fork 9
Home
Marcos Minond edited this page Apr 7, 2019
·
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.AtriumClient(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);
});