L0001
OK
1 — The license has been successfully expired.
0 — The request has failed.
-1 — The license has not been expired.
http://manage2.cpanel.net/XMLlicenseExpire.cgi?liscid=L555555&reason=Delinquent_Account 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:<XMLlicenseExpire licenseid="555555" reason="OK" result="Expired license 127.0.0.1liscid 555555 by user for reason: 'Delinquent_Account'" status="1"/>
http://manage2.cpanel.net/XMLlicenseExpire.cgi?output=json&liscid=L555555&reason=Delinquent_Account
http://manage2.cpanel.net/XMLlicenseExpire.cgi?output=yaml&liscid=L555555&reason=Delinquent_Account
XMLlicenseExpire.cgi. You can 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->expireLicense(liscid => $liscid, reason => $reason);
In the example above, $liscid is meant to stand for the license ID corresponding to the license you wish to expire. $reason is meant to stand for the reason that the license is being expired.
You can learn more about using a Perl module to call API functions.
<?php
include("cpl.inc.php");
$cpl = new cPanelLicensing("__USERNAME__","__PASSWORD__"); $lisc = $cpl->expireLicense(array( "liscid" =>$liscid, "reason" => $reason ) );
?>
In the example above, $liscid is meant to stand for the license ID corresponding to the license you wish to expire. $reason is meant to stand for the reason that the license is being expired.
Copyright © cPanel 2000–2011.