In your settings.json
file, you'll need to add the following configuration object to the actions
property:
"actions": {
"mailchimp": {
"apiKey": "abcd-xyz",
"listID": "1234"
}
}
POST /api/v1/actions/mailchimp
curl -X POST -H "Content-Type: application/json" -d '{
"email": "me@example.com",
"fname": "John",
"lname": "Doe"
}' "http://localhost:6060/api/v1/actions/mailchimp"
name | type | required | description |
---|---|---|---|
string |
× | email to be suscribed | |
fname | string |
− | firstname of the account |
lname | string |
− | lastname of the account |
→ to subscribe multiple accounts, simply pass an array of objects following the above scheme.