Note: Only supports the GET api currently.
Using the API is simple. Just create an instance of the API class, passing in your auth key and the name of your app. From there, call any of the methods to retrieve the data from the API.
import API from 'toa-api';
let api = new API("YOUR_AUTH_KEY_HERE", "Name your app"
554A
span>);
// All the requests will return promises of the model.
let event = await api.getEvent("1920-FIM-FIMFS1");
// OR
api.getEvent("1920-FIM-FIMFS1").then(event => {
// Do Something
});