apostle

Node.js API client for Apostle.io

Usage no npm install needed!

<script type="module">
  import apostle from 'https://cdn.skypack.dev/apostle';
</script>

README

apostle

Node.js API client for Apostle.io

Build Status

Installation

npm install apostle

Basic Use

var apostle = require('apostle')('DOMAIN_KEY');

apostle({
    email: 'andrewsliwinski@acm.org',
    template: 'test-template',
    values: {
        name: 'Andrew',
        hello: 'world'
    }
}, function (err, response) {
    if (err) return;        // Something really bad happened
    console.dir(response); 
});

Testing

npm test