1 — The information was successfully returned.
0 — The information was not returned.
host.example.com
1 — The information was returned successfully.
0 — The information was not returned.
http://manage2.cpanel.net/XMLlicenseInfo.cgi in a browser should produce output similar to the following:
<XMLlicenseInfo reason="OK" status="1" version="0.5">
<licenses name="L0001" adddate="1246989023" distro=""
envtype="" expiredon="" expirereason="" groupid="000001"
hostname="" ip="127.0.0.1" os="" osver="" packageid="123"
status="1" updateexpiretime="0" version=""/>
</XMLlicenseInfo>
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/XMLlicenseInfo.cgi?output=json&
http://manage2.cpanel.net/XMLlicenseInfo.cgi?output=yaml&
XMLlicenseInfo.cgi. You are able to 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->fetchLicenses()
<?php
include("cpl.inc.php");
$cpl = new cPanelLicensing("__USERNAME__","__PASSWORD__");
$lisc = $cpl->fetchLicenses();
?>
__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.