@technovendors/owl-verify-node-api
v0.0.8
Published
<h1 align="center"> Owl Verify API for Node.js </h1>
Downloads
2
Readme
Installation
Rull the following command in your project
npm i @technovendors/owl-verify-node-api
Examples
First of all add this.
var OWLVerify = require('@technovendors/owl-verify-node-api'),
owlVerify = new OWLVerify('your_api_key');
API
createList
var params = {
list_name: 'your list name'
}
owlVerify.createList(params, function(err, result) {
if (err) console.log(err.toString());
else console.log(result);
});
subscribe
var params = {
list_id: 'your_list_id',
email: '[email protected]'
}
owlVerify.subscribe(params, function(err, result) {
if (err) console.log(err.toString());
else console.log(result);
});
bulkSubscribe
var params = {
list_id: 'your_list_id',
data: [
{
email: '[email protected]',
},
{
email: '[email protected]',
}
]
}
owlVerify.bulkSubscribe(params, function(err, result) {
if (err) console.log(err.toString());
else console.log(result);
});