Skip to content
Ultra-thin layer for the Leftronic Dashboard API based on request
JavaScript
Find file
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Failed to load latest commit information.
.gitignore
README.md
index.js
package.json

README.md

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.

Something went wrong with that request. Please try again.