3 ms·
My main use for IFTTT is that they accept incoming webhooks to send push notifications to my phone via their app. Incredibly useful and convenient.
by kevindong 6y ago
My main use for IFTTT is that they accept incoming webhooks to send push notifications to my phone via their app.
Incredibly useful and convenient.
- dahx4Eev 6y agoAny examples of how you use the webhooks?
- Namidairo 6y agoYou 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.
- kevindong 6y agoIt'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.
- m-p-3 6y agoI hope we'll see more than three values as a possibility with IFTTT Pro.
- windexh8er 6y agoIf that's your only use case - wouldn't Pushbullet (or something similar) be a more complete solution? Genuinely curious.
- kevindong 6y agoShort answer is that yes, there are other options. But they're always vastly more complex and would require actual work to use. Why bother with all that when I can just issue a GET or POST to a simple HTTP endpoint (no auth/headers required) and have IFTTT fill in the title, message, link (if the notification is tapped), and image with the values in the uploaded JSON object? The IFTTT API is truly a joy to use as a someone trying to quickly hack something together using cURL. Re Pushbullet specifically: it no longer supports iOS but either way, it's also much more complex [0] to use. [0]: https://docs.pushbullet.com/#create-push https://docs.pushbullet.com/#create-push
- CarelessExpert 6y agoIf you can run a docker container and you have an Android phone, Gotify is a nice alternative for this use case.
- kevindong 6y agoI have an iPhone so it's not really an option. That's a really interesting project that I'd definitely look into if I still had an Android phone.