Client library for adding tasks to the AdGeek Task Queue
npm install cocktail-insights/adgeek-queue
const Queue = require('adgeek-queue');
const EmailQueue = Queue({
host: '<task_queue_host>',
auth: '<redis_auth>',
});
EmailQueue.addEmailTask('welcome_email', {
to: ['[email protected]'],
subject: 'Welcome to CS 101!!!',
data: {
fizz: 'buzz', // extra data for templates
},
});
npm test