description |
---|
Interact with IFTTT.com |
{% embed url="https://ifttt.com" %} Website {% endembed %}
Connect to IFTTT and first go to the webhook page: https://ifttt.com/maker_webhooks/
Hit the documentation button, your key appears on the first line:
The driver enables you to create any action inside
import naas_drivers
event = "myevent"
key = "cl9U-VaeBu1**********"
data = { "value1": "Bryan", "value2": "Helmig", "value3": 27 }
result = naas_drivers.ifttt.connect(key).send(event, data)
First, you need to create an event in IFTTT, then you can just copy paste this formula.
import naas_drivers
twitter_post = """Hello world, this is my first automated post
with @JupyterNaas @IFTTT driver🔥
"""
event = "NAME_OF_YOUR_EVENT"
key = "**********"
data = { "value1": twitter_post }
result = naas_drivers.ifttt.connect(key).send(event, data)
{% embed url="https://ifttt.com/maker_webhooks/" %} Documentation {% endembed %}