0001
0001
127.0.0.1
1 — The request was made successfully.
0 — The request was not made.
-1 — The request was not made because you entered invalid input data.
http://manage2.cpanel.net/XMLtransferRequest.cgi?groupid=G0001&packageid=P0001&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:<XMLtransferRequest reason="The Name of a Company has been contacted. You will receive notice via email once our staff reviews their response. The confirmation number for this request is 5562." status="1" version="0.2"/>
http://manage2.cpanel.net/XMLtransferRequest.cgi?output=json&groupid=G0001&packageid=P0001&ip=127.0.0.1
http://manage2.cpanel.net/XMLtransferRequest.cgi?output=yaml&groupid=G0001&packageid=P0001&ip=127.0.0.1
XMLtransferRequest.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->requestTransfer(
groupid=>$groupid
packageid=>$packageid
ip=>$ip
)
In the example above:
<?php
include("cpl.inc.php");
$cpl = new cPanelLicensing("__USERNAME__","__PASSWORD__");
$lisc = $cpl->requestTransfer(array(
"ip" = $ip,
"groupid" => $groupid,
"packageid" => $packageid
)
);
?>
In the example above: __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.