Crate mailchimp_api

Source
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§