Created
January 13, 2016 13:46
-
-
Save stephendeyoung/27aa0c33d71044bf7bf8 to your computer and use it in GitHub Desktop.
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
const EVT = require('evrythng-extended'); | |
const evtClient = new EVT.TrustedApp(apiKey); | |
function onThngPropertiesChanged(event) { | |
console.log('Running onThngPropertiesChanged'); | |
evtClient.thng('UXmVNF5kBHCe6BRBhHfFtkVq').action('_custom').create({ | |
customFields: { | |
test: true | |
} | |
}).then(() => done()).catch(done); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment