node-red-contrib-ifttt
Advanced tools
Comparing version 0.2.0 to 0.3.0
var request = require('request'); | ||
var IFTT_CONNECTION_TIMEOUT_MS = 20000; | ||
@@ -29,2 +30,3 @@ module.exports = function (RED) { | ||
method: 'POST', | ||
timeout: IFTTT_CONNECTION_TIMEOUT_MS, | ||
json: iftttPayload | ||
@@ -39,3 +41,4 @@ }, function (error, response, body) { | ||
} catch (e) { | ||
errorMessage = (body.hasOwnProperty('errors')) ? body.errors[0].message : body; | ||
node.error("IFTTT Read error"); | ||
errorMessage = e; | ||
} | ||
@@ -42,0 +45,0 @@ node.status({fill: 'red', shape: 'dot', text: 'Error!'}); |
{ | ||
"name": "node-red-contrib-ifttt", | ||
"version": "0.2.0", | ||
"version": "0.3.0", | ||
"description": "A node-red node to connect to ifttt Maker channel", | ||
@@ -5,0 +5,0 @@ "homepage": "http://github.com/diegopamio/node-red-ifttt", |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
13404
50