1 — yes
0 — no (returns the first active license on the IP address)
all=1 ) — The license ID(s) associated with the IP address. 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;all=1 in a web browser will produce XML output similar to the following:
<XMLlookup reason="OK" status="1">
<licenseid>5388377</licenseid>
<licenseid>5388378</licenseid>
</XMLlookup>
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/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:use cPanelLicensing; my $cpl = cPanelLicensing->new(user => $user, pass => $pass); my $licenses = $cpl->fetchLicenseId(ip => $ip); print "@$licenses\n";
$ip is meant to stand for the IP address that corresponds to the license ID you wish to retrieve.
$user and $pass are meant to stand for your Manage2 account credentials.
<?php
include("cpl.inc.php");
$cpl = new cPanelLicensing($user, $pass);
$licenses = $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.
$user and $pass are meant to stand for your Manage2 account credentials.
Copyright © cPanel 2000–2011.