NAME
SYNOPSIS
my
$cp
= cPanel::APIClient->create(
service
=>
'cpanel'
,
transport
=> [
'MojoUserAgent'
,
hostname
=>
'greathosting.net'
,
# For testing only:
# tls_verification => 'off',
],
credentials
=> {
username
=>
'hugh'
,
api_token ->
'MYTOKEN'
,
},
);
DESCRIPTION
This module allows Mojo::UserAgent to serve as transport for asynchronous cPanel API calls.
It supports username
/password
or username
/api_token
credentials
schemes. See cPanel::APIClient for more details.
It expects these parameters:
hostname
- Required. The remote hostname that will serve the API calls.tls_verification
- Optional. Eitheron
(default) oroff
.
SEE ALSO
cPanel::APIClient::Transport::NetCurlPromiser can also integrate with Mojolicious but requires Net::Curl, which you’ll need C compiler access to install.
LICENSE
Copyright 2020 cPanel, L. L. C. All rights reserved. http://cpanel.net
This is free software; you can redistribute it and/or modify it under the same terms as Perl itself. See perlartistic.