lib/utils.js
function getRequest(path, options, callback) {
  if (typeof options === 'function') {
    callback = options;
    options = {
      method: 'get'
    };
  } else {
    options.method = 'get';
  }

  if (options.params) {
    var uri = url.parse(path, true);
    uri.query = _.merge({}, uri.query, options.params);
    path = url.format(uri);
    delete options.params;
  }

  sendRequest(path, options, callback);
}
function getRequest(path, options, callback) {
  if (typeof options === 'function') {
    callback = options;
    options = {
      method: 'get'
    };
  } else {
    options.method = 'get';
  }

  if (options.params) {
    var uri = url.parse(path, true);
    uri.query = _.merge({}, uri.query, options.params);
    path = url.format(uri);
    delete options.params;
  }

  sendRequest(path, options, callback);
}
function getRequest ( path , options , callback ) { if ( typeof options === 'function' ) { callback = options ; options = { method : 'get' } ; } else { options . method = 'get' ; } if ( options . params ) { var uri = url . parse ( path , true ) ; uri . query = _ . merge ( { } , uri . query , options . params ) ; path = url . format ( uri ) ; delete options . params ; } sendRequest ( path , options , callback ) ; }
Send a GET request

@param path
@param {Object} options (Optional)
@param callback
Send a GET request