If this, then webhook

Last weekend, I went to Comedy Hack Day 8, met some very funny people, and built MomMMS. Designed as an invisible app, it texts your mother a short message after every 100 texts to your ratchet friends.

MomMMS in action

That’s literally all it does, but texts could be triggered at 3pm when you’re making dinner plans, or 3am when you’re making booty calls. Either way, your mom’s getting a text and you have to deal with the consequences.

MomMMS is Android only, but I didn’t have to write any native / hybrid code. It’s a total MacGyver hack powered by IFTTT. Here’s how it works:

  1. IFTTT’s mobile app keeps track of all my outgoing texts and for each one, it triggers a webhook that I wrote in Python.

  2. The webhook checks a Firebase to see how many requests have been logged, and if there more than 99, it clears the db and sends a specially addressed email to my gmail account. If there are less than 99 messages, it adds a new record to the db.

  3. Finally, IFTTT’s mobile app intercepts the special email and sends a text to my mom.

MomMMS triggers in IFTTT app

Neat right? But here’s the thing — IFTTT doesn’t support webhooks! (It’s been the most requested feature for over 3 years.)

Fortunately, there’s a workaround: Abhay Rana’s totally rad ifttt-webhook.

ifttt-webhook is a PHP script that spoofs WordPress’ XML-RPC endpoints. It tricks IFTTT into thinking that it’s creating a new WordPress blog post (which is a supported action), but it actually sends JSON to your webhook and runs code on your server!

With IFTTT’s Android app and ifttt-webhook, you can build very sophisticated workflows without any Java/PhoneGap code. Fork my webhook and try it for yourself.

Comments :)
2017 Neal Shyam