Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Branch: master
Fetching contributors…

Cannot retrieve contributors at this time

56 lines (33 sloc) 1.306 kB

Climp

A simple Clojure library wrapper for MailChimp

Build Status

Usage

Add the following to your project.clj's dependencies section:

[climp "0.1.2"]

Import the library:

(use 'climp.core)

You can call any method listed in the MailChimp V1.3 API

(call-mailchimp "listSubscribe" {:id "123" :email_address "test@test.com"})

A few of the methods have nicer clojure wrappers around them. I hope to expand this as we go.

(lists) ; Returns your mailing lists

Subscribe an email address:

(subscribe "123" "test@test.com")

Configuring API Keys

The easiest way to set it up is to set your api key in the MC_API_KEY environment variable or system property.

Alternatively you can create a dynamic binding for mc-api-key.

Use Mandrill?

We also maintain a simple clojure library clj-mandrill for interacting with Mandrill.

License

Copyright © 2012 PicoMoney Company

Manage and track your startups economy using our new service Economi.co.

Distributed under the Eclipse Public License, the same as Clojure.

Jump to Line
Something went wrong with that request. Please try again.