Hacker News new | ask | show | jobs
by dahx4Eev 2101 days ago
Any examples of how you use the webhooks?
2 comments

It's literally just:

1. Here's a URL (custom to each user/applet). You can either GET or POST to it. No auth/headers required (the URL includes a token).

2. You can optionally submit a JSON in the format of {"value1": ..., "value2": ..., "value3": ...} and set up the applet to set those values as the notification title, body, link, or image.

Rather unfortunately, you can only specify three values in the JSON so you can only ever have three of those four properties filled in for a single notification. But you can set up multiple receiving URLs/applets such that you can send the first notification containing three of those properties and then a second notification containing the last property.

I hope we'll see more than three values as a possibility with IFTTT Pro.
You basically just POST/GET url they provide with the json payload then hook it up to a notification service (whether that be their Android app, Telegram, etc.)

Came in handy when I needed to poll something on my end, which would trigger the webhook when it met certain conditions.