lib/mw/ApiRequest.js
function ParamInfoRequest(env, queueKey) {
	ApiRequest.call(this, env, null);
	this.reqType = 'ParamInfo Request';

	var apiargs = {
		format: 'json',
		// XXX: should use formatversion=2
		action: 'paraminfo',
		modules: 'query',
		rawcontinue: 1,
	};

	this.queueKey = queueKey || JSON.stringify(apiargs);

	this.requestOptions = {
		method: 'GET',
		followRedirect: true,
		uri: env.conf.wiki.apiURI,
		qs: apiargs,
		timeout: env.conf.parsoid.timeouts.mwApi.paramInfo,
	};

	this.request(this.requestOptions);
}
function ParamInfoRequest(env, queueKey) {
	ApiRequest.call(this, env, null);
	this.reqType = 'ParamInfo Request';

	var apiargs = {
		format: 'json',
		// XXX: should use formatversion=2
		action: 'paraminfo',
		modules: 'query',
		rawcontinue: 1,
	};

	this.queueKey = queueKey || JSON.stringify(apiargs);

	this.requestOptions = {
		method: 'GET',
		followRedirect: true,
		uri: env.conf.wiki.apiURI,
		qs: apiargs,
		timeout: env.conf.parsoid.timeouts.mwApi.paramInfo,
	};

	this.request(this.requestOptions);
}
function ParamInfoRequest ( env , queueKey ) { ApiRequest . call ( this , env , null ) ; this . reqType = 'ParamInfo Request' ; var apiargs = { format : 'json' , // XXX: should use formatversion=2 action : 'paraminfo' , modules : 'query' , rawcontinue : 1 , } ; this . queueKey = queueKey || JSON . stringify ( apiargs ) ; this . requestOptions = { method : 'GET' , followRedirect : true , uri : env . conf . wiki . apiURI , qs : apiargs , timeout : env . conf . parsoid . timeouts . mwApi . paramInfo , } ; this . request ( this . requestOptions ) ; }
Obtain information about MediaWiki API modules.

@class
@extends ~ApiRequest
@param {MWParserEnvironment} env
@param {string} [queueKey] The queue key.
Obtain information about MediaWiki API modules .