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.cgiin a web browser will produce XML output similar to the following:
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:<XMLpackageInfo reason="OK" status="1" version="0.3"> <packages P001="ONE TIME FEE" P002="THREE-YEAR" P003="ONE-YEAR" P003="TWO-YEAR"/> </XMLpackageInfo>
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.
Remember: This function does not take any input variables. You can learn more about using a Perl module to call API functions.use cPanelLicensing; my $cpl = cPanelLicensing->new(user => $user, pass => $pass); $cpl->fetchPackages()
Remember: This function does not take any input variables. Remember:<?php include("cpl.inc.php"); $cpl = new cPanelLicensing("__USERNAME__","__PASSWORD__"); $lisc = $cpl->fetchPackages(); ?>
__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.