IFTTT connects services without those services having to know from each other. It offers an easy to use interface to configure applets, where you just have to define:
If this then that, or short: IFTTT.
How To Add IFTTT To JDownloader?
This script engine is a JDownloader plugin that's called Event Scripter. It can be found in the "Extension Modules" section of your JDownloader Settings.
How Do I connect IFTTT And JDownloader?
To demonstrate how to do this, we implement a very simple example:
Get an Android mobile notfication if a download stopped.
You first have to register on IFTTT.
Then you should download the IFTTT mobile app and connect the app with your account.
Then you are ready to create an applet on IFTTT that connects it with the JDownloader Event Scripter!
- Activate the maker channel: https://ifttt.com/maker
- Create a new applet: https://ifttt.com/create
- Search for "Maker" and use this service
- Choose "Receive a web request" as a trigger
- Choose your "that", in our case "Notifications"
In your JDownloader:
- Go to "Settings", then choose "Event Scripter" in the sidebar
- Create a new Script: Click the "+ Add" Button
- For the newly created script, choose a fitting trigger, in our case "A Download stopped"
- Edit the script, remove everything and add the following lines:
var iftttBrowser = getBrowser();
Replace <YOUR_EVENT_NAME> with the name you have chosen for the event when you created the applet on IFTTT.com
Replace <YOUR_API_KEY> with the key you'll find on https://internal-api.ifttt.com/maker
Done! In your JDownloader, if you edit the script, you can easily "Test Run" it with the corresponding button. The notification should arrive soon after the test button was pressed!