Using the cPanelLicensing Perl Module to Call Manage2 API Functions
The Licensing Module allows you to perform license functions directly, bypassing the cPanel Manage2 web interface from within a Perl script. You can download the cPanelLicensing Perl module from your Manage2 screen.

Download the cPanelLicensing Perl Module from your Manage2 interface.
Using the cPanelLicensing Perl module, you can work with your customers' cPanel licenses through the command line interface. You can also allow others to modify their licenses through your own custom graphical interface.
You must have the following installed before attempting to use the Perl module:
- cPanelLicensing Modules
- Perl 5.6.2+
- OpenSSL and its Development Libraries
- You will need at least one of the following Perl modules:
- XML::Simple
- JSON::Syck
- YAML::Syck
- YAML
- JSON
- JSON::XS
-
Note: This module must be run on a *nix-based system.
Note: When instantiating the module, it must be instantiated with the
user (your account's username) &
pass (the account's password) parameters passed to it. It is instantiated as follows:
use cPanelLicensing;
my $licenseManager = cPanelLicensing->new(
user => '__USERNAME__',
pass => '__PASSWORD__'
);
When a function is called, it returns a hash reference containing the output from the API call.
Topic revision: r9 - 04 Apr 2011 - 17:48:18 - Main.MelanieSeibert
ManageTwo.UsingPerlModules moved from Sandbox.UsingPerlModules on 21 Jul 2009 - 19:08 by Main.JustinSchaefer -
put it back