lib/mbaasRequest/mbaasRequest.js
function appRequest(params, cb) {
  params = params || {};
  var mbaasConf = params[constants.MBAAS_CONF_KEY];
  params[constants.MBAAS_CONF_KEY] = undefined;
  //Adding Mbaas Config Params
  var fullParams = _.extend(_.clone(params), mbaasConf);

  var invalidParamError = validateAppParams(fullParams);

  if (invalidParamError) {
    return cb(invalidParamError);
  }

  fullParams = _buildAppRequestParams(fullParams);

  return doFHMbaaSRequest(fullParams, cb);
}
function appRequest(params, cb) {
  params = params || {};
  var mbaasConf = params[constants.MBAAS_CONF_KEY];
  params[constants.MBAAS_CONF_KEY] = undefined;
  //Adding Mbaas Config Params
  var fullParams = _.extend(_.clone(params), mbaasConf);

  var invalidParamError = validateAppParams(fullParams);

  if (invalidParamError) {
    return cb(invalidParamError);
  }

  fullParams = _buildAppRequestParams(fullParams);

  return doFHMbaaSRequest(fullParams, cb);
}
function appRequest ( params , cb ) { params = params || { } ; var mbaasConf = params [ constants . MBAAS_CONF_KEY ] ; params [ constants . MBAAS_CONF_KEY ] = undefined ; //Adding Mbaas Config Params var fullParams = _ . extend ( _ . clone ( params ) , mbaasConf ) ; var invalidParamError = validateAppParams ( fullParams ) ; if ( invalidParamError ) { return cb ( invalidParamError ) ; } fullParams = _buildAppRequestParams ( fullParams ) ; return doFHMbaaSRequest ( fullParams , cb ) ; }
Performing A Request Against The App MBaaS API
@param params
@param cb
Performing A Request Against The App MBaaS API