Popularity
0.5
Growing
Activity
2.2
-
1
3
1

Programming language: Rust
License: MIT License

IFTTT Webhook alternatives and similar packages

Based on the "Utilities" category.
Alternatively, view ifttt-webhook alternatives based on common mentions on social networks and blogs.

Do you think we are missing an alternative of IFTTT Webhook or a related project?

Add another 'Utilities' Package

README

IFTTT Webhook

crate.io

A simple Rust async library for triggering IFTTT events using webhooks.

Installation

Installation can be performed using cargo add:

cargo add ifttt-webhook

Usage

use ifttt_webhook::IftttWebhook;
use std::collections::HashMap;

// IFTTT Webhook key, available under "Documentation"
// at https://ifttt.com/maker_webhooks/.
let ifttt_key = 'your_ifttt_webhook_key';

let webhook = IftttWebhook {
    key: ifttt_key,
    event: "event_name",
};

// this will trigger a GET to https://maker.ifttt.com/trigger/{event}/with/key/{key}
webhook.trigger(None).await;

The .trigger method can be used to pass values as shown in the example below:

use ifttt_webhook::IftttWebhook;

// IFTTT Webhook key, available under "Documentation"
// at https://ifttt.com/maker_webhooks/.
let ifttt_key = 'your_ifttt_webhook_key';

let mut values = HashMap::new();
values.insert("value1", "value_1_test_value");
values.insert("value2", "value_2_test_value");
values.insert("value3", "value_3_test_value");

let webhook = IftttWebhook {
    key: ifttt_key,
    event: "event_name",
};

// this will trigger a POST to https://maker.ifttt.com/trigger/{event}/with/key/{key}
webhook.trigger(Some(&values)).await;

Bugs and feedback

If you discover a bug please report it here. Express gratitude here.

Mail me at [email protected], or on twitter @leodutra.

License

MIT @ Leo Dutra


*Note that all licence references and agreements mentioned in the IFTTT Webhook README section above are relevant to that project's source code only.