Skip to content
jmophoto edited this page Oct 10, 2016 · 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(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