Giter VIP home page Giter VIP logo

mailchimp-subscribe's Introduction


This project is no longer maintained.


mailchimp-subscribe

MailChimp subscription request handler, built with Scotty. Intended to support custom signup forms.

Usage

Listens for HTTP POST requests at /subscribe. All requests are forwarded to the MailChimp /lists/subscribe endpoint.

Query parameter Description
name Subscriber name. Required.
email_address Subscriber email address. Required.
list_id Mailing list identifier. Required, unless MAILCHIMP_LIST_ID is set.
email_type Either html or text.
double_optin Send a double opt-in confirmation message.
update_existing Accept already existing email addresses.
send_welcome If double opt-in is off, send the list welcome message.

Configuration

Authentication credentials and defaults can be configured by setting environment variables.

Environment variable Description
MAILCHIMP_API_KEY Authentication token. Required.
MAILCHIMP_LIST_ID Default for list_id.
MAILCHIMP_EMAIL_TYPE Default for email_type.
MAILCHIMP_DOUBLE_OPTIN Default for double_optin.
MAILCHIMP_UPDATE_EXISTING Default for update_existing.
MAILCHIMP_SEND_WELCOME Default for send_welcome.
PORT HTTP listening port. Defaults to 8080.

Deployment

Installs in seconds on most Linux and OS X machines, using Halcyon.

$ halcyon install https://github.com/mietek/mailchimp-subscribe
$ export MAILCHIMP_API_KEY=…
$ mailchimp-subscribe

Deploying to Heroku

Ready to deploy in one click to the Heroku web application platform, using Haskell on Heroku.

Deploy

Clicking the button is equivalent to executing the following commands:

$ git clone https://github.com/mietek/mailchimp-subscribe
$ cd mailchimp-subscribe
$ heroku create -b https://github.com/mietek/haskell-on-heroku
$ heroku config:set MAILCHIMP_API_KEY=…
$ git push heroku master
$ heroku ps:scale web=1
$ heroku open

About

Made by Miëtek Bak. Published under the BSD license.

mailchimp-subscribe's People

Contributors

mietek avatar

Stargazers

Guido avatar

Watchers

James Cloos avatar  avatar

mailchimp-subscribe's Issues

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.