L0001
0 — The license will not be added, no fee will be charged.
1 — The license will be added and the fee will be charged.
1, forces the license to be reactivated. 0001
OK
1 — The license has been successfully reactivated.
0 — The request has failed.
-1 — The license has not been reactivated.
22.5
http://manage2.cpanel.net/XMLlicenseReActivate.cgi?liscid=L0001&reactivateok=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:<XMLlicenseReActivate licenseid="0001" reason="OK" status="1"/>
http://manage2.cpanel.net/XMLlicenseReActivate.cgi?output=json&liscid=L0001
http://manage2.cpanel.net/XMLlicenseReActivate.cgi?output=yaml&liscid=L0001
XMLlicenseReActivate.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);
my $licenseid = $cpl->reactivateLicense(
liscid => $liscid,
reactivateok => $reactivateok);
print "$licenseid\n";
In this example, $liscid is meant to stand for the ID of the license you wish to reactivate. $reactivateok is a boolean value that indicates that you confirm that license should be reactivated.
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->reactivateLicense(array(
"liscd" => $liscid,
"reactivateok" => $reactivateok
)
);
?>
In the example above, $id is meant to stand for the license ID of the license you wish to reactivate. $reactivateok is a boolean value that indicates that you confirm that license should be reactivated.
__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.