Java wrapper for the MX Atrium API
Clone or download
brettmortensen Merge pull request #6 from almir-sne/master
Add package information to all classes
Latest commit ac97538 Oct 19, 2018
Type Name Latest commit message Commit time
Failed to load latest commit information.
src/main/java Add package information to all classes Oct 18, 2018
LICENSE.txt first commit Nov 1, 2017 Add package information to all classes Oct 18, 2018
gitignore added workflows and objects Nov 28, 2017
pom.xml Exclude examples from default jar Oct 18, 2018


A Java wrapper for the MX Atrium API. In order to make requests, you will need to sign up for the MX Atrium API and get a MX-API-KEY and a MX-CLIENT-ID.


Add the / directory to your source code's directory. Then configure your instance with the following. (The ENVIRONMENT will be either for the development environment or for the production environment.)

AtriumClient atriumClient = new AtriumClient("ENVIRONMENT", "YOUR_MX_API_KEY", "YOUR_MX_CLIENT_ID");

Then start using class methods to make calls to the Atrium API for data. See the full Atrium documentation for more details.

public class Main {
  public static void main(String[] args) {

    // Configure AtriumClient
    AtriumClient atriumClient = new AtriumClient("ENVIRONMENT", "YOUR_MX_API_KEY", "YOUR_MX_CLIENT_ID");

    // Now begin making Atrium calls
    atriumClient.createUser("UniqueID", "", ""); // Create a user, etc...



The /examples directory contains various workflows and code snippets. You will first need to modify the line shown below in each example with the environment, YOUR-MX-API-KEY, and YOUR-MX-CLIENT-ID before running.

AtriumClient atriumClient = new AtriumClient("ENVIRONMENT", "YOUR_MX_API_KEY", "YOUR_MX_CLIENT_ID");

Using Maven, you can quickly build all the examples into executable .jar files by running from the command line

mvn package

The executable .jar files will be outputted in the /target directory.