sendgrid-flows

Crates.iosendgrid-flows
lib.rssendgrid-flows
version0.1.2
sourcesrc
created_at2023-02-23 07:22:44.929633
updated_at2023-03-03 08:19:52.181814
descriptionSendGrid integration for flows.network
homepage
repository
max_upload_size
id792380
size5,401
DarumaDocker!! (DarumaDocker)

documentation

https://docs.rs/sendgrid-flows

README

This is a library for integrating SendGrid in your flow function for flows.network.

Usage example

use sendgrid_flows::{Email, send_email};
use slack_flows::{listen_to_channel};

#[no_mangle]
pub fn run() {
    listen_to_channel("myworkspace", "mychannel", |sm| {
        let email = Email {
            to: vec![String::from("receiver@domain.com")],
            subject: String::from("Hi"),
            content: sm.text
        };
        send_email("sender@domain.com", &email);
    });
}

When a new message is received from mychannel, we will send an email using send_email.

The whole document is here.

Commit count: 0

cargo fmt