IFTTT Trigger with arguments wait for respond

Example of building IFTTT maker trigger web request and get IFTTT respond for it.

Make new applet

  • Go to https://ifttt.com/create
  • IF
    • Maker
    • Receive a web request
    • Set Event name to test-trigger
  • THEN
    • Maker
    • Make a web request
    • Set URL to
      http://your_Node-RED_public_url:1880/ifttt?EventName={{EventName}}&Value1={{Value1}}&Value2={{Value2}}&Value3={{Value3}}&OccurredAt={{OccurredAt}}
      
    • Set Method to GET
    • SAVE
[{"id":"36a2ac41.41bac4","type":"http in","z":"336a3e55.4aee32","name":"","url":"/ifttt","method":"get","swaggerDoc":"","x":95,"y":506,"wires":[["1651081e.2e8688"]]},{"id":"1651081e.2e8688","type":"debug","z":"336a3e55.4aee32","name":"debug3","active":true,"console":"false","complete":"true","x":263,"y":486,"wires":[]},{"id":"ee402faa.b312","type":"inject","z":"336a3e55.4aee32","name":"trigger","topic":"","payload":"","payloadType":"date","repeat":"","crontab":"","once":false,"x":113,"y":277,"wires":[["3129d670.1291ea"]]},{"id":"fad33f9c.20843","type":"http request","z":"336a3e55.4aee32","name":"Make a web request","method":"use","ret":"txt","url":"","tls":"","x":288,"y":387,"wires":[["472fad81.63c2d4"]]},{"id":"472fad81.63c2d4","type":"debug","z":"336a3e55.4aee32","name":"debug2","active":true,"console":"false","complete":"true","x":482,"y":368,"wires":[]},{"id":"c3b9180.e099ae8","type":"comment","z":"336a3e55.4aee32","name":"IFTTT trigger ping","info":"","x":125,"y":239,"wires":[]},{"id":"3129d670.1291ea","type":"function","z":"336a3e55.4aee32","name":"Request factory","func":"var key = global.get(\"ifttt-key\");\n\n//trigger name\nvar trigger = \"test-trigger\";\n//arguments\nvar value1 = \"1\";\nvar value2 = \"just string\";\nvar value3 = \"ON\";\n\nmsg.url = \"https://maker.ifttt.com/trigger/\"+trigger+\"/with/key/\"+ key+\"?value1=\"+value1+\"&value2=\"+value2+\"&value3=\"+value3;\nmsg.headers = \"Content-Type: application/json\"\nmsg.playload = \"\";\nmsg.method = \"POST\"\n\nreturn msg;\n\n","outputs":1,"noerr":0,"x":201,"y":338,"wires":[["94615056.64ac7","fad33f9c.20843"]]},{"id":"94615056.64ac7","type":"debug","z":"336a3e55.4aee32","name":"debug1","active":true,"console":"false","complete":"true","x":370,"y":319,"wires":[]},{"id":"8e3bd245.2f0d","type":"inject","z":"336a3e55.4aee32","name":"onStartup","topic":"","payload":"","payloadType":"str","repeat":"","crontab":"","once":true,"x":132,"y":165,"wires":[["2b97145a.7f38fc"]]},{"id":"2b97145a.7f38fc","type":"function","z":"336a3e55.4aee32","name":"Setup ifttt-key","func":"global.set(\"ifttt-key\",\"_you_IFTTT _maker_key\");\nreturn;","outputs":1,"noerr":0,"x":323,"y":165,"wires":[[]]},{"id":"41cf2d72.558154","type":"comment","z":"336a3e55.4aee32","name":"Setup","info":"","x":85,"y":128,"wires":[]},{"id":"11318f72.602091","type":"comment","z":"336a3e55.4aee32","name":"IFTTT trigger pong","info":"","x":126,"y":443,"wires":[]}]
pawelfiedor

Flow Info

created 4 months, 2 weeks ago

Node Types

Core
  • comment (x3)
  • debug (x3)
  • function (x2)
  • http in (x1)
  • http request (x1)
  • inject (x2)

Tags

  • ifttt
  • example
  • trigger
Copy this flow JSON to your clipboard and then import into Node-RED using the Import From > Clipboard (Ctrl-I) menu option