This is a library for integrating SendGrid in your flow function for [flows.network](https://flows.network).

## Usage example
```rust
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`](https://docs.rs/sendgrid-flows/latest/sendgrid_flows/fn.send_email.html).

The whole document is [here](https://docs.rs/sendgrid-flows).
