A simple node.js library for talking to the ducksboard API.
A simple node.js library for sending data to the ducksboard API.
Sends a number or a string to a ducksboard API endpoint.
var peking = ;peking;
Pushes an array of value objects to a ducksboard API endpoint. The value objects may or may not have timestamps associated with them.
Sends a number or string to a ducksboard API endpoint with a timestamp.
Each API function requires an options JSON object and a callback function. The following properties in the options object are supported: ### value String or number to send to ducksboard. Required. ### timestamp Unix timestamp to send to ducksboard. ### api_key Ducksboard Push API key. Required. ### host Ducksboard push API host (default push.ducksboard.com) ### port Ducksboard push API port (default 443)
Each peking function has a callback. If the HTTP response from ducksboard returns anything other than
200, the HTTP status code will be set as the only parameter in the callback function.
Copyright (c) 2012 Flite, Inc.
Licensed under the MIT license.