Expand description
A fully generated, opinionated API client library for SendGrid.
§API Details
The Beta endpoints for the new Email Activity APIs - functionality is subject to change without notice. You may not have access to this Beta endpoint.
Email Activity offers filtering and search by event type for two days worth of data. There is an optional add-on to store 60 days worth of data. This add-on also gives you access to the ability to download a CSV of the 60 days worth of email event data. The Beta endpoints for the new Email Activity APIs - functionality is subject to change without notice. You may not have access to this Beta endpoint.
Email Activity offers filtering and search by event type for two days worth of data. There is an optional add-on to store 60 days worth of data. This add-on also gives you access to the ability to download a CSV of the 60 days worth of email event data.
§Client Details
This client is generated from the SendGrid OpenAPI specs based on API spec version ``. This way it will remain up to date as features are added. The documentation for the crate is generated along with the code to make this library easy to use.
To install the library, add the following to your Cargo.toml
file.
[dependencies]
sendgrid-api = "0.7.0"
§Basic example
Typical use will require intializing a Client
. This requires
a user agent string and set of credentials.
use sendgrid_api::Client;
let sendgrid = Client::new(
String::from("api-key"),
);
Alternatively, the library can search for most of the variables required for the client in the environment:
SENDGRID_API_KEY
And then you can create a client from the environment.
use sendgrid_api::Client;
let sendgrid = Client::new_from_env();
Modules§
- alerts
- api_
key_ permissions - api_
keys - blocks_
api - bounces_
api - campaigns_
api - cancel_
scheduled_ sends - categories
- certificates
- contacts
- contacts_
api_ custom_ fields - contacts_
api_ lists - contacts_
api_ recipients - contacts_
api_ segments - csv_
ui_ only - custom_
fields - designs_
api - domain_
authentication - email_
address_ validation - email_
cname_ records - invalid_
emails_ api - ip_
access_ management - ip_
addresses - ip_
pools - ip_
warmup - link_
branding - lists
- mail_
send - marketing_
campaigns_ stats - query
- reverse_
dns - segmenting_
contacts - segmenting_
contacts_ beta - send_
test_ email - sender_
identities_ api - sender_
verification - senders
- settings_
enforced_ tls - settings_
inbound_ parse - settings_
mail - settings_
partner - settings_
tracking - single_
sends - single_
sign_ on_ settings - single_
sign_ on_ teammates - spam_
reports_ api - stats
- subuser_
monitor_ settings - subuser_
statistics - subusers_
api - suppressions
- suppressions_
global - suppressions_
unsubscribe_ groups - teammates
- traits
- transactional_
templates - transactional_
templates_ versions - types
- The data types sent to and returned from the API client.
- users_
api - webhooks
Structs§
- Client
- Entrypoint for interacting with the API client.
- Header
Map - A set of HTTP headers
- Response
- Root
Default Server - Status
Code - An HTTP status code (
status-code
in RFC 7230 et al.).
Enums§
- Client
Error - Errors returned by the client