hapi-mailchimp-simple-subscribe

0.0.1 • Public • Published

hapi-mailchimp-simple-subscribe

server.pack.register({
    plugin: require("hapi-mailchimp-simple-subscribe"),
    options: {
        apiKey: "mailchimp-api-key",
        listId: "id-of-your-mailchimp-list"
    }
}, {
    route: {
        prefix: "/ml"
    }
});

And you should be able to do a push request to "/ml/subscribe" with "mail=a.mail@you.com".

Cheers!

Package Sidebar

Install

npm i hapi-mailchimp-simple-subscribe

Weekly Downloads

1

Version

0.0.1

License

ISC

Last publish

Collaborators

  • leichtgewicht