MailHops API node
A nodejs module for interacting with the MailHops API.
Getting Started
Installation
$ npm install mailhops
Configuration
Simply require the mailhops module, instantiate a new MailHops object.
New MailHops objects can be instantiated with configuration parameters. Here is an example:
var MailHops = ;var mailhops = api_key: "aWN8Pb27Xj6GfV8D6ARsjokonYwbWUNbz9rM" api_version: 2 proxy: "http://myproxy:3128" app_name: "Node App v2.0.1" forecastio_api_key: "";
MailHops objects can also be configured via the .configure(options)
method. Here is an example:
var MailHops = ;var mailhops = ; var options = api_key: "aWN8Pb27Xj6GfV8D6ARsjokonYwbWUNbz9rM" mailhops; // get IPs from a full header where headerText is the full headervar ips = mailhops; // or pass in an array of IP addressesvar ips = '216.58.217.46''98.138.253.109'; mailhops; var mapUrl = mailhops;
Running Tests
$ npm test