0001
1 — The license was successfully looked up.
0 — The license does not exist.
-1 — The request failed due to an error.
http://manage2.cpanel.net/XMLlookup.cgi?ip=127.0.0.1 in 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:<XMLlookup licenseid="000001" reason="OK" status="1" version="1"/>
http://manage2.cpanel.net/XMLlookup.cgi?output=json&ip=127.0.0.1
http://manage2.cpanel.net/XMLlookup.cgi?output=yaml&ip=127.0.0.1
XMLlookup.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.
In this example,fetchLicenseId( ip=>$ip )
$ip is meant to stand for the IP address that corresponds to the license ID you wish to retrieve.
For more information about using a Perl module to call API functions, visit our page here.
<?php
include("cpl.inc.php");
$cpl = new cPanelLicensing("__USERNAME__","__PASSWORD__");
$lisc = $cpl->fetchLicenseId(array(
"ip" => $ip
)
);
?>
In this example, $ip is meant to stand for the IP address that corresponds to the license ID you wish to retrieve.
__USERNAME__ and __PASSWORD__ are meant to represent the username and password for your Manage2 account.
For more information about using a PHP class to call API functions, visit our page here.