1 — The information was successfully returned.
0 — The information was not returned.
packages P001="Package Name" P002="Package Name 2" ...
http://manage2.cpanel.net/XMLpackageInfo.cgi in a web browser will produce XML output similar to the following:
<XMLpackageInfo reason="OK" status="1" version="0.3">
<packages P001="ONE TIME FEE" P002="THREE-YEAR"
P003="ONE-YEAR" P003="TWO-YEAR"/>
</XMLpackageInfo>
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/XMLpackageInfo.cgi?output=json&
http://manage2.cpanel.net/XMLpackageInfo.cgi?output=yaml&
XMLpackageInfo.cgi. You can use this module to pass input variables to a Manage2 API function. You may need to edit the example below to suit your needs.
use cPanelLicensing;
my $cpl = cPanelLicensing->new(user => $user, pass => $pass);
$cpl->fetchPackages()
<?php
include("cpl.inc.php");
$cpl = new cPanelLicensing("__USERNAME__","__PASSWORD__");
$lisc = $cpl->fetchPackages();
?>
__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.