View Source Mailchimp.Account (mailchimp v0.2.0)

Details about the Mailchimp user account.

struct-fields

Struct Fields

  • account_id - The Mailchimp account ID.

  • account_name - The name of the account.

  • contact - Information about the account contact.

  • last_login - The date and time of the last login for this account in ISO 8601 format.

  • total_subscribers - The total number of subscribers across all lists in the account.

  • links - A list of Mailchimp.Link types and descriptions for the API schema documents.

Link to this section Summary

Functions

Same as get_all_lists/0 but raises errors.

Fetch a list of all Mailchimp.List for the given account

Same as lists/2 but raises errors.

Fetch a list of Mailchimp.List for the given account with an optional query params. If you are looking for fetching all lists check get_all_lists

Generates an Mailchimp.Account struct from the given attributes.

Link to this section Functions

Same as get_all_lists/0 but raises errors.

Fetch a list of all Mailchimp.List for the given account

Link to this function

get_list!(account, list_id, query_params \\ %{})

View Source

Same as get_list/3 but raises errors.

Link to this function

get_list(account, list_id, query_params \\ %{})

View Source

Fetch a Mailchimp.List from an ID

Link to this function

lists!(account, query_params \\ %{})

View Source

Same as lists/2 but raises errors.

Link to this function

lists(account, query_params \\ %{})

View Source

Fetch a list of Mailchimp.List for the given account with an optional query params. If you are looking for fetching all lists check get_all_lists

Generates an Mailchimp.Account struct from the given attributes.