leftronic-request

Ultra-thin layer for the Leftronic Dashboard API based on request

leftronic-request

Ultra-thin layer for the Leftronic Dashboard API based on request.

var leftronic = require('leftronic-request').createClient('my_api_key');
 
var data = [{
  'streamName': 'world_map',
  'point': {
    'latitude': 31.821699142456055,
    'longitude': -82.62680053710938,
    'color': 'green'
  }
}
 
leftronic.sendData(data, function(errresultbody) {
  console.log(err || body);
  bombWorld();
});

See https://www.leftronic.com/api/#dataformats for more information on the Leftronic API.