Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/anaibol/lambda-mailchimp-single-opt-in
:cloud: Mailchimp single opt-in Amazon Lambda function
https://github.com/anaibol/lambda-mailchimp-single-opt-in
Last synced: 4 months ago
JSON representation
:cloud: Mailchimp single opt-in Amazon Lambda function
- Host: GitHub
- URL: https://github.com/anaibol/lambda-mailchimp-single-opt-in
- Owner: anaibol
- License: mit
- Created: 2016-06-16T09:20:32.000Z (about 8 years ago)
- Default Branch: master
- Last Pushed: 2016-06-23T17:27:51.000Z (about 8 years ago)
- Last Synced: 2024-01-16T06:04:48.315Z (5 months ago)
- Language: JavaScript
- Homepage:
- Size: 15.6 KB
- Stars: 6
- Watchers: 2
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Lists
- awesome-serverless - Mailchimp Lambda Single Opt-in - An Amazon Lambda function for creating MailChimp subscriptions with single opt-in. (Email sending, subscriptions and newsletters)
README
# :cloud: Mailchimp single opt-in Lambda
An Amazon Lambda function for creating MailChimp subscriptions with single opt-in.
Based on [Mailchimp Lambda](https://github.com/TaylorBriggs/mailchimp-lambda) and [Node Lambda](https://github.com/motdotla/node-lambda).## Authentication
Set your API key and list ID in the .env file. Copy the sample to get started:
```
$ cp .env.sample .envAPI_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": "[email protected]", "first_name": "Anibal" }' \
YOUR_API_GATEWAY_URL
```