The script I get from WebHooks looks like this:
- Code: Select all
do shell script "curl -X POST -H "Content-Type: application/json" -d '{"value1":"Garage","value2":"Door","value3":"Alert"}' https://maker.ifttt.com/trigger/Notify/with/key/abcdefghijklmnopqrstuvwxyz"
The only thing I can get to work, albeit without passing the variables to WebHooks, is this:
- Code: Select all
do shell script "curl -d 'data1=Garage&data2=door&text3=Alert' https://maker.ifttt.com/trigger/Garage_Door_Alert/with/key/abcdefghijklmnopqrstuvwxyz"
I'd like to be able to change the data fields to suit the alarms and motion detectors that are going off around the house, but I don't know how to pass the variable.
Can anyone please help?