Skip to content

Latest commit

 

History

History
32 lines (22 loc) · 800 Bytes

File metadata and controls

32 lines (22 loc) · 800 Bytes

MailChimp Lambda

A Lambda function for creating MailChimp subscriptions.

Authentication

Set your MailChimp data center, API key, list ID, and username in the .env file. Copy the sample to get started:

$ cp .env.sample .env

Additional details about authenticating with the MailChimp API is available here.

Deployment

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

$ npm run zip

Integrate with the AWS API Gateway to access the function via HTTP POST:

$ curl -X POST -H "Content-Type: application/json" \
-d '{ "email": "[email protected]" }' \
YOUR_API_GATEWAY_URL