Guide to the LiveAPI System - The new() Method

Description

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.

Examples


LiveAPI PHP Class

1
2
// Connect to cPanel - only do this once. 
$cpanel new CPANEL();



LiveAPI Perl Module

1
2
# Connect to cPanel - only do this once.
$cpanel->new();



Parameters

This method does not accept parameters.

Returns

This method returns a LiveAPI object.

 

  • 0 Users Found This Useful
Was this answer helpful?

Related Articles

The cPanel Interface

For  cPanel  &  WHM  version  58 Overview The cPanel interface is...

User Preferences

For cPanel & WHM version 58 Overview This document outlines how to access your cPanel...

Manage External Authentications

For cPanel & WHM version 58 Overview Manage credentials Additional documentation...

What is cPanelID?

In This Article:  Overview ServicesHow to get a cPanelID cPanelID External...

Guide to cPanel Interface Customization - cPanel Style Development

Introduction You can develop custom styles that modify the appearance of the cPanel interface....