Skip to content

Instantly share code, notes, and snippets.

@lucas1
Last active April 24, 2016 16:37
Show Gist options
  • Save lucas1/7543aefa3efd27449e068d3326d83736 to your computer and use it in GitHub Desktop.
Save lucas1/7543aefa3efd27449e068d3326d83736 to your computer and use it in GitHub Desktop.

NAME

iRedAdmin::Domain - API for add, edit, delete, enable and disable Domain

VERSION

Version 0.01

SYNOPSIS

use iRedAdmin;
 
my $iredadmin = iRedAdmin->new(
    url => 'https://hostname.mydomain.com/iredadmin',
    username => '[email protected]',
    password => 'your_password',
    cookie => '/home/user/cookie.txt',
    lang => 3
);

my $admin = $iredadmin->Domain->Add(
    domain => 'foo.com',
    name => 'Company Foo',
);

print $iredadmin->error unless $admin; # print error if $admin is equal 0

AUTHOR

Lucas Tiago de Moraes, <[email protected]>

COPYRIGHT AND LICENSE

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment