Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/taylorbriggs/mailchimp-lambda
A Lambda function for subscribing to a MailChimp list
https://github.com/taylorbriggs/mailchimp-lambda
Last synced: 2 months ago
JSON representation
A Lambda function for subscribing to a MailChimp list
- Host: GitHub
- URL: https://github.com/taylorbriggs/mailchimp-lambda
- Owner: TaylorBriggs
- License: mit
- Created: 2015-10-07T03:23:26.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2017-10-31T14:29:45.000Z (about 7 years ago)
- Last Synced: 2024-07-02T16:42:12.715Z (6 months ago)
- Language: JavaScript
- Size: 5.86 KB
- Stars: 44
- Watchers: 3
- Forks: 9
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# 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](http://developer.mailchimp.com/documentation/mailchimp/guides/get-started-with-mailchimp-api-3/).
## Deployment
There's a handy script included to create your zip archive:
```
$ npm run zip
```Integrate with the
[AWS API Gateway](http://docs.aws.amazon.com/lambda/latest/dg/gs-amazon-gateway-integration.html)
to access the function via HTTP POST:```
$ curl -X POST -H "Content-Type: application/json" \
-d '{ "email": "[email protected]" }' \
YOUR_API_GATEWAY_URL
```