Logo

0x5a.live

for different kinds of informations and explorations.

GitHub - duartejc/mailchimp: A basic Elixir wrapper for version 3 of the MailChimp API

A basic Elixir wrapper for version 3 of the MailChimp API - duartejc/mailchimp

Visit SiteGitHub - duartejc/mailchimp: A basic Elixir wrapper for version 3 of the MailChimp API

GitHub - duartejc/mailchimp: A basic Elixir wrapper for version 3 of the MailChimp API

A basic Elixir wrapper for version 3 of the MailChimp API - duartejc/mailchimp

Powered by 0x5a.live ๐Ÿ’—

MailChimp

Module Version Hex Docs Total Download License Last Updated

This is a basic Elixir wrapper for version 3 of the MailChimp API.

Installation

First, add MailChimp lib to your mix.exs dependencies:

def deps do
  [
    {:mailchimp, "~> 0.2.0"}
  ]
end

and run $ mix deps.get

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

Mailchimp.Account.get!()

Getting All Lists

Mailchimp.Account.get_all_lists!

Adding a Member to a List

Mailchimp.List.create_member(list, "[email protected]", "subscribed", %{}, %{})

Creating a new Campaign

Mailchimp.Campaign.create!(:regular)

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.

Elixir Resources

are all listed below.

Resources

listed to get explored on!!

Made with โค๏ธ

to provide different kinds of informations and resources.