Skip to content
Marcos Minond edited this page Apr 7, 2019 · 3 revisions

mx-atrium-node

This is a Node.js wrapper for the MX Atrium API. It provides helper methods for each of the endpoints.

Installaton

npm install mx-atrium --save

Usage

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);
});

Clone this wiki locally