1 — The registration was successful.
0 — The request failed.
-1 — The input was invalid.
https://manage2.cpanel.net/XMLregisterAuth.cgi?user=user;pickup=hello+world;service=license-suite-2000 in a web browser will produce XML output similar to the following:
<XMLRegisterAuth
key="..."
ip="192.0.32.10"
reason="Successfully registered license-suite-2000 on 192.0.32.10"
status="1" />
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/XMLregisterAuth.cgi?output=json&user=user;pickup=hello+world;service=license-suite-2000
http://manage2.cpanel.net/XMLregisterAuth.cgi?output=yaml&user=user;pickup=hello+world;service=license-suite-2000
XMLregisterAuth.cgi. You can use this module to pass input variables to a Manage2 API function.
use cPanelLicensing;
my $cpl = cPanelLicensing->new();
$cpl->registerAuth(user => $user, pickup => $pickup, service => $service);
In the example above: $user is the Manage2 user obtaining the authentication key.
$pickup is the pickup passphrase that was added to your account.
$service is the name of the service using the scripts.
<?php
include("cpl.inc.php");
$cpl = new cPanelLicensing();
$cpl->registerAuth(array(
"user" => $user,
"pickup" => $pickup,
"service" => $service));
?>
In the example above: $user is the Manage2 user obtaining the authentication key.
$pickup is the pickup passphrase that was added to your account.
$service is the name of the service using the scripts.
Copyright © cPanel 2000–2011.