Active911 for Node.js ===================== by Ben Burwell Installation ------------ Installation is simple: `npm install --save active911`. Basic Usage ----------- ```javascript var Active911 = require('active911'); var client = new Active911.RefreshClient('YOUR REFRESH TOKEN'); client.getAgency().then(function(agency) { console.log(agency.name); }).catch(function(err) { console.log('Problem getting Agency details:', err); }); ``` API Methods ----------- The following public API methods are available: * `getAgency()` * `getDevice(device_id)` * `getAlerts()` * `getDeviceAlerts(device_id)` * `getAlert(alert_id)` * `getLocations()` * `getLocation(location_id)` * `getResource(resource_id)` Each method returns a promise for a result, which will resolve as either an object or an array, depending on the cardinality (e.g. `getAlerts` resolves as an array, while `getAlert` resolves as an object). For details on the format of the result, please see the [Active911 API wiki](http://wiki.active911.com/wiki/index.php/Accessing_the_API). Contributing ------------ Contributions are encouraged. For a list of open issues, see . More Information ---------------- More information about the API is available on [the Active911 wiki](http://wiki.active911.com/wiki/index.php/Active911_Developer_API).