Skip to content

Lambda function for creating MailChimp subscriptions with email, first name, and last name

License

zgallagher08/mailchimp-lambda

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

MailChimp Lambda

Lambda function for creating MailChimp subscriptions with email, first name, and last name.

Configuration

Create a .env file and set your MailChimp API key, List ID, and username. See .env.example

For reference, here is the MailChimp API documentation.

Deployment

To create your zip archive, run the following npm script:

$ 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": "example@gmail.com", "firstName": "Bruce", "lastName": "Wayne" }' \
API_GATEWAY_URL

About

Lambda function for creating MailChimp subscriptions with email, first name, and last name

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published