1 — The data has been successfully retrieved.
0 — The data was not returned.
groups G0001="Group Name" G0002="Group 2 Name" ...
http://manage2.cpanel.net/XMLgroupInfo.cgi? in a web browser will produce XML output similar to the following:
<XMLgroupInfo reason="OK" status="1" version="0.4">
<groups G0001="ExampleGroup" G0002=""
G0003="Training Server*" G0003="Training Server 2*"
G0004="Enterprise" G00005="Enterprise 2" G0006="Testing
Server"/>
</XMLgroupInfo>
Calling the function using the URL above will return XML data by default. To change the output format that will be returned, use either of the following URLs: http://manage2.cpanel.net/XMLgroupInfo.cgi?output=json&
http://manage2.cpanel.net/XMLgroupInfo.cgi?output=yaml&
XMLgroupInfo.cgi. You can use this module to pass input variables to a Manage2 API function. You will need to edit the example below to suit your needs.
use cPanelLicensing;
my $cpl = cPanelLicensing->new(user => $user, pass => $pass);
$cpl->fetchGroups()
<?php
include("cpl.inc.php");
$cpl = new cPanelLicensing("__USERNAME__","__PASSWORD__");
$lisc = $cpl->fetchGroups();
?>
__USERNAME__ and __PASSWORD__ are meant to represent the username and password for your Manage2 account.
You can learn more about using a PHP class to call API functions.
Copyright © cPanel 2000–2011.