Sendgrid client, generated from the OpenAPI spec.
```rust use sendgrid2::SendgridClient; use sendgrid2::model::*;
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:
SENDGRID_AUTHORIZATION
Add this to your Cargo.toml:
toml
[dependencies]
sendgrid2 = "0.1.0"
You can see working examples of every API call in the examples/
directory.
Contributions are welcome!
Library created with Libninja.