Skip to content

duartejc/mailchimp

Folders and files

NameName
Last commit message
Last commit date

Latest commit

a119913 · Jun 3, 2024
Dec 10, 2021
Mar 24, 2022
Mar 24, 2022
Dec 15, 2023
Dec 15, 2023
Dec 15, 2023
Nov 6, 2021
Nov 6, 2021
Mar 10, 2020
Nov 6, 2021
Oct 3, 2022
Jan 18, 2024
Mar 24, 2022

Repository files navigation

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, "test@email.com", "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.

About

A basic Elixir wrapper for version 3 of the MailChimp API

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages