IFTTT Sample Service in Java

The other day I looked at IFTTT for tying up a couple of services together. Though IFTTT had the services I needed, they lacked the specifics I needed. That is what got me into looking creating my own service. There is some really good documentation on IFTTT but I was not able to find a Java analog.

An IFTTT service has a few requirements:

  • A trigger
  • An action
  • A status end point
  • A test end point

These APIs also require authentication via a service key which you load into your IFTTT service and include in your requests as a header. To learn more visit: https://platform.ifttt.com/docs/hello_world#hello-world

With the above in mind, I created this Jersey-powered Java analog of their Ruby sample. It is setup to be deployable on Heroku’s free dyno tier and if you use Ngrok you can even standup the service locally and have IFTTT communicate with it.

You can find the service here: https://github.com/ivanalonzo/heroku-ifttt-service

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.