Hello,
if you don't know the ifttt, it's simple site where you can define a trigger
condition and then some action if the condition is met. It's a closed source software
(no need to pay though), but the number of possible actions is enormous. I'd say
it's industrial standard for this kind of problems. They provide a way to trigger the
action manually by sending http POST to their api.
It's described here:
https://ifttt.com/maker
The post request looks like this:
`curl -X POST -H "Content-Type: application/json" -d
'{"value1":"1","value2":"2","value3":"foo"}'
https://maker.ifttt.com/trigger/sdf/with/key/aabbccddeeffgghh`
where sdf is the name of the event (must be defined via their website), aabbcc.. is the
secret token for the user and valueN:n in the json is the arbitrary data you can then use
inside the actions. For instance in the subject of the email or whatever the action
allows.
So, if we add a new alert notification that can do such a post request we can get for free
all these actions:
https://ifttt.com/recipes/do
Again, the if-condition-then-action rule must be defined via their website (if condition
is called 'maker' in this case), the actions use the oauth so it asks for
permission if needed. For instance I use it for pushbullet notifications so It asked
pushbulet "auth api"
wdyt?
jk