anyleads-nodejs
Wrap anyleads's API in node.js
Installation
The module is distributed through npm (node package manager) and can be installed using:
npm install anyleads --save
yarn add anyleads
The --save
automatically adds the module to your package.json
definition.
Usage
You require the module as any other node.js module:
var Anyleads = require('anyleads');
Then create a new instance with your API key
var al = new Anyleads('YOUR API KEY');
Note: Your secret API key, you can generate it in your dashboard from https://anyleads.com/search/api/dashboard/keys
Domain search API
Returns all the email addresses found using one given domain name.
al.searchDomain('soundsgood.co').then(function(result) {
console.log(result);
}).catch(function(err) {
console.log(err);
});
Email Pattern API
Allows you to find the email's pattern used by a company
al.pattern('soundsgood.co').then(function(result) {
console.log(result);
}).catch(function(err) {
console.log(err);
});
Email Verify API
Allows you to verify the deliverability of an email address.
al.verify('charles.baudelaire@yahoo.com').then(function(result) {
console.log(result);
}).catch(function(err) {
console.log(err);
});
Email Finder / Generate by Domain API
Generates the most likely email address from a domain name, a first name and a last name.
al.generateByDomain('soundsgood.co', 'ziggy', 'marley').then(function(result) {
console.log(result);
}).catch(function(err) {
console.log(err);
});
License
The package anyleads is released under the MIT License.
Contributing
- Fork it ( https://github.com/Muzishell/anyleads-nodejs )
- Create your feature branch (
git checkout -b my-new-feature
) - Commit your changes (
git commit -am 'Add some feature'
) - Push to the branch (
git push origin my-new-feature
) - Create a new Pull Request