14 unstable releases (4 breaking)

0.7.0 Jul 19, 2023
0.4.1 Mar 29, 2023
0.3.1 Nov 18, 2022
0.2.3 Jun 1, 2022
0.1.1 Jul 9, 2020

#70 in Email

Download history 213/week @ 2024-07-24 114/week @ 2024-07-31 235/week @ 2024-08-07 196/week @ 2024-08-14 123/week @ 2024-08-21 148/week @ 2024-08-28 172/week @ 2024-09-04 128/week @ 2024-09-11 180/week @ 2024-09-18 184/week @ 2024-09-25 36/week @ 2024-10-02 7/week @ 2024-10-09

1,061 downloads per month

MIT license

1MB
21K SLoC

sendgrid-api

A fully generated, opinionated API client library for SendGrid.

docs.rs

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();

Dependencies

~16–33MB
~606K SLoC