Development Guides Home >> 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 does not fetch UAPI data.
- This method only functions in the LiveAPI PHP Class. Do not attempt to use it in the LiveAPI Perl Module.
Example
LiveAPI PHP Class
// Get the last data result node.
$cpanel->get_result();
LiveAPI Perl Module
This method is not available in the LiveAPI Perl Module.
Parameters
This method does not accept parameters.
Returns
This method returns the ['cpanelresult']['result']['data']
node of the last response that the system returned. The format of this data varies based on the last call that the system performed.