Node.js

Download our Node.js package from Github or use the Node Package Manager (npm) to install the Leftronic package with npm install leftronic.

Create a client instance with your Access Key:

var Leftronic = require('leftronic')
    .createClient('YOUR_ACCESS_KEY);

Use the various push… functions as follows:

// push a number
Leftronic.pushNumber({
    streamName: 'numberStream',
    number: 35,
    suffix: '%'
    }, function(err, result) {
        if (err) console.log(err);
        console.log(result);
    }
);