leftronic-request

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

npm install leftronic-request
8 downloads in the last week
18 downloads in the last month

leftronic-request

Description

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

Initialization

var leftronic = require('leftronic-request').createClient('my_api_key');

Usage


var data = [{
  'streamName': 'world_map',
  'point': {
    'latitude': 31.821699142456055,
    'longitude': -82.62680053710938,
    'color': 'green'
  }
}

leftronic.sendData(data, function(err, result, body) {
  console.log(err || body);
});

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

npm loves you