[Development Guides Home](/guides) >> [Guide to the LiveAPI System](/guides/guide-to-the-liveapi-system)

# Guide to the LiveAPI System - LiveAPI Methods

The LiveAPI system uses the following methods to interact with cPanel & WHM. Use these methods with either the LiveAPI PHP Class or the LiveAPI Perl Module.

* For more information about methods in PHP classes, read [php.net's Classes and Objects documentation](http://php.net/manual/en/oop5.intro.php).
* For more information about methods in Perl, read [perl.org's perlobj documentation](http://perldoc.perl.org/perlobj.html).


## Methods

The LiveAPI system includes the following methods to interact with cPanel & WHM:

* [`api()`](/guides/guide-to-the-liveapi-system/guide-to-the-liveapi-system-liveapi-methods/guide-to-the-liveapi-system-the-api-method) — The `api()` method executes a [cPanel API 1](https://documentation.cpanel.net/display/DD/Guide+to+cPanel+API+1) or [cPanel API 2](https://documentation.cpanel.net/display/DD/Guide+to+cPanel+API+2) function.
* `api1()` — The `api1()` function executes a cPanel API 1 function. For use information and examples, read our [Guide to cPanel API 1](https://documentation.cpanel.net/display/DD/Guide+to+cPanel+API+1) documentation.
* `api2()` — The `api2()` function executes a cPanel API 2 function. For use information and examples, read our [Guide to cPanel API 2](https://documentation.cpanel.net/display/DD/Guide+to+cPanel+API+2) documentation.
* [`cpanelfeature()`](/guides/guide-to-the-liveapi-system/guide-to-the-liveapi-system-liveapi-methods/guide-to-the-liveapi-system-the-cpanelfeature-method) — The `cpanelfeature()` method is a wrapper for the feature tag, which checks whether the authenticated user has access to a feature.
* [`cpanelif()`](/guides/guide-to-the-liveapi-system/guide-to-the-liveapi-system-liveapi-methods/guide-to-the-liveapi-system-the-cpanelif-method) — The `cpanelif()` method is a wrapper for the `cpanelif` tag, which evaluates a cPanel variable or logic operator.
* [`cpanelprint()`](/guides/guide-to-the-liveapi-system/guide-to-the-liveapi-system-liveapi-methods/guide-to-the-liveapi-system-the-cpanelprint-method) — The `cpanelprint()` method returns a cPanel variable's value. We **deprecated** this method in.
* [`debug_log()`](/guides/guide-to-the-liveapi-system/guide-to-the-liveapi-system-liveapi-methods/guide-to-the-liveapi-system-the-debug-log-method) — The `debug_log()` method writes data to the debugging log file.
* [`debug_log_json()`](/guides/guide-to-the-liveapi-system/guide-to-the-liveapi-system-liveapi-methods/guide-to-the-liveapi-system-the-debug-log-json-method) — The `debug_log_json()` method writes JSON data to the debugging log file.
* [`end()`](/guides/guide-to-the-liveapi-system/guide-to-the-liveapi-system-liveapi-methods/guide-to-the-liveapi-system-the-end-method) — The `end()` method deconstructs the `Cpanel::LiveAPI` object and closes the connection to cPanel & WHM.
* [`exec()`](/guides/guide-to-the-liveapi-system/guide-to-the-liveapi-system-liveapi-methods/guide-to-the-liveapi-system-the-exec-method) — The `exec()` method executes a cPanel tag.
* [`fetch()`](/guides/guide-to-the-liveapi-system/guide-to-the-liveapi-system-liveapi-methods/guide-to-the-liveapi-system-the-fetch-method) — The `fetch()` method is a wrapper to return a hash reference from the `cpanelprint()` function, which retrieves a cPanel variable. We **deprecated** this method.
* [`footer()`](/guides/guide-to-the-liveapi-system/guide-to-the-liveapi-system-liveapi-methods/guide-to-the-liveapi-system-the-footer-method) — The `footer()` method calls the cPanel interface's footer.
* [`get_debug_level()`](/guides/guide-to-the-liveapi-system/guide-to-the-liveapi-system-liveapi-methods/guide-to-the-liveapi-system-the-get-debug-level-method) — The `get_debug_level()` method retrieves the current debug level.
* [`get_debug_log()`](/guides/guide-to-the-liveapi-system/guide-to-the-liveapi-system-liveapi-methods/guide-to-the-liveapi-system-the-get-debug-log-method) — The `get_debug_log()` method retrieves the debug log file's absolute path and filename.
* [`get_result()`](/guides/guide-to-the-liveapi-system/guide-to-the-liveapi-system-liveapi-methods/guide-to-the-liveapi-system-the-get-result-method) — The `get_result()` method fetches the most recent data result node for cPanel API 1 and cPanel API 2 functions. **This method is for the LiveAPI PHP Class only**.
* [`header()`](/guides/guide-to-the-liveapi-system/guide-to-the-liveapi-system-liveapi-methods/guide-to-the-liveapi-system-the-header-method) — The `header()` method calls the cPanel interface's header.
* [`new()`](/guides/guide-to-the-liveapi-system/guide-to-the-liveapi-system-liveapi-methods/guide-to-the-liveapi-system-the-new-method) — The `new()` method instantiates the `Cpanel::LiveAPI` object.
* [`set_debug()`](/guides/guide-to-the-liveapi-system/guide-to-the-liveapi-system-liveapi-methods/guide-to-the-liveapi-system-the-set-debug-method) — The `set_debug()` method sets the amount of debug information to store in LiveAPI's debug log file.
* [`uapi()`](/cpanel/introduction) — The `uapi()` function executes a UAPI function. For use information and examples, read our [Guide to UAPI](/cpanel/introduction).