Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/libninjacom/sendgrid-rs
Sendgrid client, generated from the OpenAPI spec
https://github.com/libninjacom/sendgrid-rs
openapi rust sendgrid
Last synced: 6 days ago
JSON representation
Sendgrid client, generated from the OpenAPI spec
- Host: GitHub
- URL: https://github.com/libninjacom/sendgrid-rs
- Owner: libninjacom
- License: mit
- Created: 2022-10-11T18:36:47.000Z (about 2 years ago)
- Default Branch: master
- Last Pushed: 2022-10-21T02:17:25.000Z (about 2 years ago)
- Last Synced: 2024-10-11T19:23:43.770Z (about 1 month ago)
- Topics: openapi, rust, sendgrid
- Language: Rust
- Homepage: https://docs.rs/sendgrid2/
- Size: 271 KB
- Stars: 0
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
- Code of conduct: CODE_OF_CONDUCT.md
Awesome Lists containing this project
README
Sendgrid client, generated from the OpenAPI spec.
# Usage
```rust
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:
```toml
[dependencies]
sendgrid2 = "0.1.0"
```# Documentation
* [API Documentation](https://docs.sengrid.com)
* [Client Library Documentation](https://docs.rs/sendgrid2)
You can see working examples of every API call in the `examples/` directory.
# Contributing
Contributions are welcome!
*Library created with [Libninja](https://www.libninja.com).*