sendgrid2

Crates.iosendgrid2
lib.rssendgrid2
version4.0.0
sourcesrc
created_at2022-10-11 18:39:05.903775
updated_at2022-10-21 02:19:18.939455
descriptionSendgrid client, generated from the OpenAPI spec.
homepagehttps://github.com/libninjacom/sendgrid-rs
repositoryhttps://github.com/libninjacom/sendgrid-rs
max_upload_size
id685517
size1,205,784
Kurt Wolf (kurtbuilds)

documentation

https://docs.rs/sendgrid2

README

GitHub Contributors Stars Build Status Downloads Crates.io

Sendgrid client, generated from the OpenAPI spec.

Usage

use sendgrid2::SendgridClient;
use sendgrid2::model::*;
#[tokio::main]
async fn main() {
    let client = SendgridClient::from_env();
    let response = client
        .get_access_settings_activity()
        .limit(1)
        .on_behalf_of("your on behalf of")
        .send()
        .await
        .unwrap();
    println!("{:#?}", response);
}

This example loads configuration from environment variables, specifically:

  • SENDGRID_AUTHORIZATION

Installation

Add this to your Cargo.toml:

[dependencies]
sendgrid2 = "0.1.0"

Documentation

You can see working examples of every API call in the examples/ directory.

Contributing

Contributions are welcome!

Library created with Libninja.

Commit count: 5

cargo fmt