Page 1 of 1

How to send IFTTT webhook trigger with 3 datafields

PostPosted: Wed Sep 13, 2017 7:32 pm
by EricZ
IFTTT.com can be used to make interesting automation applets for various things.

Here is a good way to trigger the webhook and send data from ESPbasic. First you have to get you key code from the IFTTT website, search webhook and then press the documentation button. This shows how to send value1 = 1, value2 = two, and value3 = 333. The print will show the returned response from IFTTT. One caveat there cannot be any spaces in the data for the three values otherwise a 502 BAD GATEWAY is returned by ESPBasic.

print wget("maker.ifttt.com/trigger/your_event_name/with/key/your_key_here?value1=1&value2=two&value3=333")