Struct mailchimp_api::MailChimp [−][src]
pub struct MailChimp { /* fields omitted */ }
Expand description
Entrypoint for interacting with the MailChimp API.
Implementations
Create a new MailChimp client struct. It takes a type that can convert into
an &str (String
or Vec<u8>
for example). As long as the function is
given a valid API key your requests will work.
pub fn new_from_env<T, R, C>(token: T, refresh_token: R, endpoint: C) -> Self where
T: ToString,
R: ToString,
C: ToString,
pub fn new_from_env<T, R, C>(token: T, refresh_token: R, endpoint: C) -> Self where
T: ToString,
R: ToString,
C: ToString,
Create a new MailChimp client struct from environment variables. It
takes a type that can convert into
an &str (String
or Vec<u8>
for example). As long as the function is
given a valid API key and your requests will work.
We pass in the token and refresh token to the client so if you are storing
it in a database, you can get it first.
Auto Trait Implementations
impl !RefUnwindSafe for MailChimp
impl !UnwindSafe for MailChimp