Skip to content

Latest commit

 

History

History
74 lines (56 loc) · 1.07 KB

README.md

File metadata and controls

74 lines (56 loc) · 1.07 KB

Owl Verify API for Node.js

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: 'abc@xyz.com'
}

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: 'abc@xyz.com',
      },
      {
          email: 'mno@xyz.com',
      }
  ]
}

owlVerify.bulkSubscribe(params, function(err, result) {
    if (err) console.log(err.toString());
    else console.log(result);
});