Skip to content

Latest commit

 

History

History
36 lines (27 loc) · 802 Bytes

mailchimp.md

File metadata and controls

36 lines (27 loc) · 802 Bytes

Mailchimp list subscription

Setup

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"
  }
}

Usage

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"

Options

name type required description
email 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.