Skip to content

Instantly share code, notes, and snippets.

@stephendeyoung
Created January 13, 2016 13:55
Show Gist options
  • Save stephendeyoung/5885f42bb0356e9df42d to your computer and use it in GitHub Desktop.
Save stephendeyoung/5885f42bb0356e9df42d to your computer and use it in GitHub Desktop.
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: {
test2: true
}
}).then(() => done()).catch(done);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment