[Development Guides Home](/guides) >> [Guide to the LiveAPI System](/guides/guide-to-the-liveapi-system) >> [LiveAPI Methods](/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. * 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. ## Example ### LiveAPI PHP Class ```php // Connect to cPanel - only do this once. $cpanel = new CPANEL(); ``` ### LiveAPI Perl Module ```perl # Connect to cPanel - only do this once. $cpanel->new(); ``` ## Parameters This method does not accept parameters. ## Returns This method returns a LiveAPI object.