iRedAdmin - API interface to the panel iRedMail (http://www.iredmail.org)
Version 0.04
use iRedAdmin; my $iredadmin = iRedAdmin->new( url => 'https://hostname.mydomain.com/iredadmin', username => 'postmaster@mydomain.com', password => 'your_password', cookie => '/home/user/cookie.txt', lang => 3 );
set url of panel iRedAdmin, example: 'https://hostname.mydomain.com/iredadmin'.
set username your account of panel.
set password your account of panel.
set path of file cookie, is optional but always will do login in panel and will be more slow.
set language in access, return error in language selected, list:
1 or cs_CZ to Čeština
2 or de_DE to Deutsch (Deutsch)
3 or en_US to English (US) # is default
4 or es_ES to Español
5 or fi_FI to Finnish (Suomi)
6 or fr_FR to Français
7 or hu_HU to Hungarian
8 or it_IT to Italiano
9 or ko_KR to Korean
10 or nl_NL to Netherlands
11 or pl_PL to Polski
12 or pt_BR to Portuguese (Brazilian)
13 or ru_RU to Русский
14 or sl_SI to Slovenian
15 or zh_CN to 简体中文
16 or zh_TW to 繁體中文
get message error when methods return 0.
get reference of instance Admin, see in iRedAdmin::Admin for read document.
my $admin = $iredadmin->Admin;
get reference of instance Domain, see in iRedAdmin::Domain for read document.
my $domain = $iredadmin->Domain;
get reference of instance User, see in iRedAdmin::User for read document.
my $user = $iredadmin->User;
logout user current.
Lucas Tiago de Moraes, <lucastiagodemoraes@gmail.com>
<lucastiagodemoraes@gmail.com>
This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself, either Perl version 5.8.8 or, at your option, any later version of Perl 5 you may have available.
To install iRedAdmin, copy and paste the appropriate command in to your terminal.
cpanm
cpanm iRedAdmin
CPAN shell
perl -MCPAN -e shell install iRedAdmin
For more information on module installation, please visit the detailed CPAN module installation guide.