Syncano Socket to manage mailchimp subscriptions
Main Socket features:
- mailchimp/signup — sign up email to the mailchimp list
Getting Started
Install package in your project:
cd my_project
npm install @syncano/cli --save-dev
npm install @eyedea-sockets/mailchimp --save
export SOCKET_MAILCHIMP_API_KEY=<mailchimp api key> // or you will be asked during deploy
npx s deploy
Use it:
import Syncano from '@syncano/client'
const s = new Syncano(<instaneName>)
// List and email
const params = {
listId: 12345
email: 'test@test.pl'
}
const signupStatus = await s.get('mailchimp/signup', params)