build/authorify.js
function fixRequestOptions(method, path, transport, plain, callback) {
    var opts = {
      method: method,
      path: path
    };
    if (_.isFunction(transport)) {
      opts.callback = transport;
      opts.plain = false;
      opts.transport = 'http';
    } else {
      if (_.isString(transport)) {
        opts.transport = transport;
      } else if (_.isBoolean(transport)) {
        opts.plain = transport;
      }
      if (_.isFunction(plain)) {
        opts.callback = plain;
        opts.plain = opts.plain || false;
      } else if (_.isBoolean(plain)) {
        opts.callback = callback;
        opts.plain = plain;
      }
    }
    return opts;
  }
function fixRequestOptions(method, path, transport, plain, callback) {
    var opts = {
      method: method,
      path: path
    };
    if (_.isFunction(transport)) {
      opts.callback = transport;
      opts.plain = false;
      opts.transport = 'http';
    } else {
      if (_.isString(transport)) {
        opts.transport = transport;
      } else if (_.isBoolean(transport)) {
        opts.plain = transport;
      }
      if (_.isFunction(plain)) {
        opts.callback = plain;
        opts.plain = opts.plain || false;
      } else if (_.isBoolean(plain)) {
        opts.callback = callback;
        opts.plain = plain;
      }
    }
    return opts;
  }
function fixRequestOptions ( method , path , transport , plain , callback ) { var opts = { method : method , path : path } ; if ( _ . isFunction ( transport ) ) { opts . callback = transport ; opts . plain = false ; opts . transport = 'http' ; } else { if ( _ . isString ( transport ) ) { opts . transport = transport ; } else if ( _ . isBoolean ( transport ) ) { opts . plain = transport ; } if ( _ . isFunction ( plain ) ) { opts . callback = plain ; opts . plain = opts . plain || false ; } else if ( _ . isBoolean ( plain ) ) { opts . callback = callback ; opts . plain = plain ; } } return opts ; }
Make an object with all params

@param {String} method The required method
@param {String} path The required path
@param {String} [transport = 'http'] The transport protocol ('http' or 'ws')
@param {Boolean} [plain = false] The required plain
@param {Function} callback The required callback
@return {Object} An object with all params as properties
@private
@ignore
Make an object with all params