Use Hubot to add or remove members to a mailing list and get a report of your latest sent campaign.
In the Hubot project repo, run:
npm install hubot-mailchimp --save
Then add hubot-mailchimp
to your external-scripts.json
:
[
"hubot-mailchimp"
]
Configuration Variable | Required | Description |
---|---|---|
MAILCHIMP_API_KEY |
Yes | API key for your Hubot integration |
MAILCHIMP_LIST_ID |
Yes | The unique identifier for the desired list |
MAILCHIMP_SERVER_PREFIX |
Yes | Server identifier, e.g. us10 |
User> @hubot subscribe [email protected]
Hubot> @user Attempting to subscribe [email protected]...
Hubot> You successfully subscribed [email protected].
User> @hubot unsubscribe [email protected]
Hubot> @user Attempting to unsubscribe [email protected]...
Hubot> You successfully unsubscribed [email protected].
User> @hubot mailchimp
Hubot> Last campaign "My Awesome Campaign" was sent to 431 subscribers (310 opened, 225 clicked)