UNPKG

geckoboard-push-reloaded

Version:

Send data to Geckoboard via their new push API - FORKED FROM: git://github.com/danjenkins/node-geckoboard-push.git

18 lines (14 loc) 465 B
var Base = require('./GeckoboardPushSend'); module.exports = GeckoboardPushLineV2; function GeckoboardPushLineV2(params,widget_key){ this.options = params; this.options.widget_key = widget_key; this.prototype = new Base(this.options); } GeckoboardPushLineV2.prototype.send = function(items, callback){ /* https://developer.geckoboard.com/#line-chart items is object with at least one series of data */ this.prototype.send(items, callback); }