hun

hunterio

Hunter.io SDK (unofficial)

Showing:

Popularity

Downloads/wk

74

Maintenance

No Maintenance Data Available

Package

Dependencies

2

License

MIT

Type Definitions

Tree-Shakeable

No?

Categories

Readme

Docs

This is a very thin wrapper on the Hunter.io docs.

Pattern

var HunterSDK = require('hunterio');

var KEY = 'your api key for hunter.io';

var hunter = new HunterSDK(KEY);


hunter.domainSearch({
    domain: 'hubspot.com'
}, function(err, body) {
    if (err) {
        // handle error
    } else {
        // Will contain same body as the raw API call
        console.log(body);
    }
});

More generally, the calls work like this:


Param order:
1. Any path params, as separate params, first.
2. Required, query param hash (include empty object if none)
3. If a POST or PUT, include the body of the request as a plain object
4. The callback to execute on completion.

hunter[<methodNameCamelCase>](
        any path params,
        like an id,
        {
            query: param,
            hash: values
        },
        {
            postBody: orPutBodyIfApplicable
        },
        function callback(err, data) {
            // 
        }
    )

Rate & Review

Great Documentation0
Easy to Use0
Performant0
Highly Customizable0
Bleeding Edge0
Responsive Maintainers0
Poor Documentation0
Hard to Use0
Slow0
Buggy0
Abandoned0
Unwelcoming Community0
100
No reviews found
Be the first to rate

Alternatives

No alternatives found

Tutorials

No tutorials found
Add a tutorial