IFTTT Webhook
A simple Rust async library for triggering IFTTT events using webhooks.
Installation
Installation can be made using cargo add:
Usage
use IftttWebhook;
use HashMap;
// IFTTT Webhook key, available under "Documentation"
// at https://ifttt.com/maker_webhooks/.
let ifttt_key = 'your_ifttt_webhook_key';
let webhook = IftttWebhook ;
// this will trigger a GET to https://maker.ifttt.com/trigger/{event}/with/key/{key}
webhook.trigger.await;
The .trigger method can be used to pass values as shown in the example below:
use IftttWebhook;
// IFTTT Webhook key, available under "Documentation"
// at https://ifttt.com/maker_webhooks/.
let ifttt_key = 'your_ifttt_webhook_key';
let mut values = new;
values.insert;
values.insert;
values.insert;
let webhook = IftttWebhook ;
// this will trigger a POST to https://maker.ifttt.com/trigger/{event}/with/key/{key}
webhook.trigger.await;
Bugs and feedback
If you discover a bug please report it here. Express gratitude here.
Mail me at leodutra.br+foss@gmail.com, or on twitter @leodutra.
License
MIT @ Leo Dutra