Development Guides Home >> Guide to the LiveAPI System >> LiveAPI Methods
The new() method instantiates the Cpanel::LiveAPI object.
- Only use this method once in any script or application.
- Use this method before you perform any actions that require a connection to cPanel & WHM.
// Connect to cPanel - only do this once.
$cpanel = new CPANEL();# Connect to cPanel - only do this once.
$cpanel->new();This method does not accept parameters.
This method returns a LiveAPI object.