GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — GitHub - pfcs/mailchimp: A basic Elixir wrapper for version 3 of the MailChimp API

BranchesTags
Open more actions menu
 
 

Latest commit

 

History

75 Commits
75 Commits

Folders and files

NameName
Last commit message
Last commit date
config
config
 
 
lib
lib
 
 
priv/test
priv/test
 
 
test
test
 
 
.gitignore
.gitignore
 
 
.hex
.hex
 
 
LICENSE
LICENSE
 
 
README.md
README.md
 
 
mix.exs
mix.exs
 
 

Repository files navigation

Hex Version

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.0.7"}]
end

and run $ mix deps.get. Now, list the :mailchimp application as your application dependency:

def application do
  [applications: [:mailchimp]]
end

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")

Start a new process:

Mailchimp.start_link

Getting Account Details

Mailchimp.Account.get!()

Getting All Lists

Mailchimp.Account.get! |> Mailchimp.Account.lists!

Adding a Member to a List

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

Creating a new Campaign

Mailchimp.Campaign.create!(:regular)     

About

A basic Elixir wrapper for version 3 of the MailChimp API

Resources

Readme
MIT license
Activity
Custom properties

Stars

0 stars

Watchers

0 watching

Forks

0 forks
Report repository

Releases

Packages

Contributors

Languages

You are visitor 01402520 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.