Helper method that processes an API request in one line using the variables in $_GET
and $_POST.
public static processRequest ( string $method, array $paramOverride = [], array $defaultRequest = null ) : mixed | ||
$method | string | The API method to call, ie, `'Actions.getPageTitles'`. |
$paramOverride | array | The parameter name-value pairs to use instead of what's in `$_GET` & `$_POST`. |
$defaultRequest | array | Default query parameters. If a query parameter is absent in `$request`, it will be loaded from this. Defaults to `$_GET + $_POST`. To avoid using any parameters from $_GET or $_POST, set this to an empty `array()`. |
return | mixed | The result of the API request. See {@link process()}. |