Expand description
A rust library for interacting with the MailChimp API.
For more information, the MailChimp API is documented at docs.mailchimp.com.
Example:
use mailchimp_api::MailChimp;
use serde::{Deserialize, Serialize};
async fn get_subscribers() {
// Initialize the MailChimp client.
let mailchimp = MailChimp::new_from_env("", "", "");
// Get the subscribers for a mailing list.
let subscribers = mailchimp.get_subscribers("some_id").await.unwrap();
println!("{:?}", subscribers);
}
Modules§
Structs§
- Error type returned by our library.
- The data type for the response to Mailchimp’s API for listing members of a mailing list.
- Entrypoint for interacting with the MailChimp API.
- The data type for a member of a Mailchimp mailing list.
- The data type for the webhook from Mailchimp.