Translations:Manual:ApiMain.php/1/en

ApiMain is the main API class, used for both external and internal processing. When executed, it will create the requested formatter object, instantiate and execute an object associated with the needed action, and use formatter to print results. In case of an exception, an error message will be printed using the same formatter. To call the API programatically for testing, run it using the $faux object, in which case any internal exceptions will not be handled but passed up to the caller. After successful execution, use  for the resulting data.