- Notifications
You must be signed in to change notification settings - Fork53
Unofficial Rust library for the SendGrid API
License
gsquire/sendgrid-rs
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
Unofficial Rust library for the SendGrid API.
Weigh inhere if you find the crate'sSender
type confusing.
This crate requires Rust 1.15 or higher as it uses a crate that has a custom derive implementation.
sendgrid-rs implements all of the functionality of other supported SendGrid client libraries.To use sendgrid-rs you must first create a SendGrid account and generate an API key. To create an APIkey for your SendGrid account, use the account management interface or see theSendGrid API Documentation.
sendgrid-rs is available oncrates.io and can be included in your Cargo.toml as follows:
[dependencies]sendgrid ="X.X.X"
This library utilisesreqwest. Follow the instructions on thereqwest README in order to enable sending HTTPSrequests to the SendGrid API.
You can take advantage of a couple features for the crate. To enable the blocking send function, youcan use theblocking
flag. To enable therustls TLS feature,use therustls
flag.
An example of using this library can be found in the examples directory. This example code expects tofind your SendGrid API key in the process environment. In shells such as Bash or ZSH this can be set as follows:
export SENDGRID_API_KEY="SG.my.api.key"
SENDGRID_API_KEY=SG.... cargo run --example v3_disable_tracking --features="blocking" from@examle.com to@example.com
Please don't hesitate to contact me at the email listed in my profile. I willtry to help as quickly as I can. If you would like to contribute, contact meas well.
Thanks tomeehow for their contributions.
Thanks toricho for their improvements to the V2 API.
MIT
About
Unofficial Rust library for the SendGrid API
Topics
Resources
License
Uh oh!
There was an error while loading.Please reload this page.
Stars
Watchers
Forks
Releases
Packages0
Uh oh!
There was an error while loading.Please reload this page.