Skip to content

Instantly share code, notes, and snippets.

@paulbjensen
Created July 13, 2014 05:59
Show Gist options
  • Save paulbjensen/ddce38f23dd40c6f820f to your computer and use it in GitHub Desktop.
Save paulbjensen/ddce38f23dd40c6f820f to your computer and use it in GitHub Desktop.
Example usage of Dashku's node module to send data to Dashku
var dashku = require('dashku');
var payload = {
"bigNumber": 200,
"_id": "53c21e50c24b67fb166beed4",
"apiKey": "a4f368ba-0a46-4e3f-a2fd-f1b68ffe64af"
};
dashku.setApiKey(payload.apiKey, function () {
dashku.setApiUrl('http://localhost:3000', function () {
dashku.transmission(payload, function (response) {
console.log(response);
});
});
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment