index.js
function _hoverApiRequest (method, path, body, cb) {
        // Check body provided
        if (typeof body === 'function') {
            cb = body;
            body = null;
        }

        // Default options
        var options = {
            method: method,
            uri: baseUrl + path
        };

        // Add body if provided
        if (body) options.body = body;

        // Issue request
        r(options, _rCallback(function (err, data) {
            if (err) return cb(err);

            // Pull out property name
            var key = _.without(_.keys(data), 'succeeded');
            cb(null, data[key]);
        }));
    }
function _hoverApiRequest (method, path, body, cb) {
        // Check body provided
        if (typeof body === 'function') {
            cb = body;
            body = null;
        }

        // Default options
        var options = {
            method: method,
            uri: baseUrl + path
        };

        // Add body if provided
        if (body) options.body = body;

        // Issue request
        r(options, _rCallback(function (err, data) {
            if (err) return cb(err);

            // Pull out property name
            var key = _.without(_.keys(data), 'succeeded');
            cb(null, data[key]);
        }));
    }
function _hoverApiRequest ( method , path , body , cb ) { // Check body provided if ( typeof body === 'function' ) { cb = body ; body = null ; } // Default options var options = { method : method , uri : baseUrl + path } ; // Add body if provided if ( body ) options . body = body ; // Issue request r ( options , _rCallback ( function ( err , data ) { if ( err ) return cb ( err ) ; // Pull out property name var key = _ . without ( _ . keys ( data ) , 'succeeded' ) ; cb ( null , data [ key ] ) ; } ) ) ; }
Issue request to hover api.

@param {String} method
@param {String} path
@param {Object} [body]
@param {Function} cb
@api private
Issue request to hover api .