GitHub Contributors Stars Build Status Downloads Crates.io

Sendgrid client, generated from the OpenAPI spec.

Usage

```rust use sendgrid2::SendgridClient; use sendgrid2::model::*;

[tokio::main]

async fn main() { let client = SendgridClient::fromenv(); let response = client .getaccesssettingsactivity() .limit(1) .onbehalfof("your on behalf of") .send() .await .unwrap(); println!("{:#?}", response); }

```

This example loads configuration from environment variables, specifically:

Installation

Add this to your Cargo.toml:

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.