Created
July 13, 2014 05:59
-
-
Save paulbjensen/ddce38f23dd40c6f820f to your computer and use it in GitHub Desktop.
Example usage of Dashku's node module to send data to Dashku
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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