View Source MailChimp
This is a basic Elixir wrapper for version 3 of the MailChimp API.
installation
Installation
First, add MailChimp lib to your mix.exs
dependencies:
def deps do
[
{:mailchimp, "~> 0.2.0"}
]
end
and run $ mix deps.get
usage
Usage
Put your API key in your config.exs
file:
config :mailchimp,
api_key: "your api-us10"
or
Application.put_env(:mailchimp, :api_key, "your apikey-us12")
getting-account-details
Getting Account Details
Mailchimp.Account.get!()
getting-all-lists
Getting All Lists
Mailchimp.Account.get_all_lists!
adding-a-member-to-a-list
Adding a Member to a List
Mailchimp.List.create_member(list, "test@email.com", "subscribed", %{}, %{})
creating-a-new-campaign
Creating a new Campaign
Mailchimp.Campaign.create!(:regular)
copyright-and-license
Copyright and License
Copyright (c) 2017 Jean Duarte
This work is free. You can redistribute it and/or modify it under the terms of the MIT License. See the LICENSE.md file for more details.