Simple AWS lambda written in golang to subscribe users on Mailchimp list
To deploy and test you can use Apex :)
At the first, you need to install Apex, it's very simple:
curl https://raw.githubusercontent.com/apex/apex/master/install.sh | sh
After configure your AWS Credentials, then run:
apex deploy
create a event.json
file like this:
{"email_address": "email@vsouza.com", "status": "subscribed", "merge_fields": {"FNAME": "Vinicius Souza"}}
save on project root folder.
Then run:
apex invoke newsletter-subscribe < event.json
- 0.0.1
- Subscribe users with first name on mailchimp 3.0 API
Vinicius Souza – @iamvsouza – hi@vsouza.com
Distributed under the MIT license. See License