Skip to content
☁️ Mailchimp single opt-in Amazon Lambda function
JavaScript
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
.babelrc
.env.sample
.gitignore
.nvmrc
LICENSE
README.md
context.json
event.json
index.babel.js
index.js
package.json

README.md

☁️ Mailchimp single opt-in Lambda

An Amazon Lambda function for creating MailChimp subscriptions with single opt-in. Based on Mailchimp Lambda and Node Lambda.

Authentication

Set your API key and list ID in the .env file. Copy the sample to get started:

$ cp .env.sample .env

API_KEY=YOUR_API_KEY
LIST_ID=YOUR_LIST_ID

Deployment

There's a handy script included to create your zip archive:

$ npm start

Build (Babel ⇒ ES5)

$ npm run build

Deploy

$ npm run deploy
$ curl -X POST -H "Content-Type: application/json" \
-d '{ "email": "hey@gmail.com", "first_name": "Anibal" }' \
YOUR_API_GATEWAY_URL
You can’t perform that action at this time.