node-red-contrib-ifttt
Advanced tools
Comparing version 0.0.12 to 0.0.13
@@ -19,10 +19,12 @@ var request = require('request'); | ||
node.status({fill: 'blue', shape: 'dot', text: 'Sending...'}); | ||
var iftttPayload = {}; | ||
if (msg.payload) { | ||
iftttPayload.value1 = msg.payload.value1; | ||
iftttPayload.value2 = msg.payload.value2; | ||
iftttPayload.value3 = msg.payload.value3; | ||
} | ||
request({ | ||
uri: 'https://maker.ifttt.com/trigger/' + node.config.eventName + '/with/key/' + node.key.credentials.key, | ||
method: 'POST', | ||
json: { | ||
value1: msg.payload.value1, | ||
value2: msg.payload.value2, | ||
value3: msg.payload.value3 | ||
} | ||
json: iftttPayload | ||
}, function (error, response, body) { | ||
@@ -29,0 +31,0 @@ if (!error && response.statusCode === 200) { |
{ | ||
"name": "node-red-contrib-ifttt", | ||
"version": "0.0.12", | ||
"version": "0.0.13", | ||
"description": "A node-red node to connect to ifttt Maker channel", | ||
@@ -5,0 +5,0 @@ "homepage": "http://github.com/diegopamio/node-red-ifttt", |
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
Found 1 instance in 1 package
12905
40
0