Simon PainterSomewhere to keep things

Python IFTTT Trigger Class

I have started using Python a lot for day to day tasks and as I use IFTTT quite a lot I needed an class to trigger the webhooks feature to send myself alerts or whatever recipe I choose within IFTTT.

To use the class just create a Trigger object with the trigger name and your key from IFTTT and then use the alert method to send the trigger alert with up to three values (which can be retrieved as ingredients in IFTTT).

trigger = “trigger_name”
ifttt = MakerTrigger(key,trigger)

Tags: ,

Comments are currently closed.