Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Unofficial Rust library for the SendGrid API

License

NotificationsYou must be signed in to change notification settings

gsquire/sendgrid-rs

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

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"

Build Dependencies

This library utilisesreqwest. Follow the instructions on thereqwest README in order to enable sending HTTPSrequests to the SendGrid API.

Features

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.

Example

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

Documentation

Documentation

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.

Mentions

Thanks tomeehow for their contributions.

Thanks toricho for their improvements to the V2 API.

License

MIT

About

Unofficial Rust library for the SendGrid API

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors35

Languages


[8]ページ先頭

©2009-2025 Movatter.jp