The London Perl and Raku Workshop takes place on 26th Oct 2024. If your company depends on Perl, please consider sponsoring and/or attending.

NAME

ZimbraManager::SOAP::Friendly

VERSION

version 0.15

SYNOPSIS

    use ZimbraManager::SOAP::Friendly;

    my $authToken = 'VERY_LONG_TOKEN_LINE_FROM_SESSION';
    my $action = 'createAccount';
    my $args = {
        uid                => 'rplessl',
        defaultEmailDomain => 'oetiker.ch',
        givenName          => 'Roman',
        surName            => 'Plessl',
        country            => 'CH',
        displayName        => 'Roman Plessl',
        localeLang         => 'de',
        cosId              => 'ABCD-EFGH-1234',
    };
    my $namedParameters = {
        action    => $action,
        args      => $args,
        authToken => $authToken,
    };
    my ($ret, $err) = $self->soap->callFriendly($namedParameters);

also

    $self->soap->callFriendly(
        authToken => $authToken,
        action    => $action,
        args      => { },
    );

is valid

DESCRIPTION

Helper class for Zimbra adminstration with a user friendly interface

NAME

ZimbraManager::SOAP::Friendly - class to manage Zimbra with perl and SOAP

ATTRIBUTES

$MAP

This hash defines arguments and out-going (to Zimbra) and in-coming (from Zimbra) mapping subroutines for SOAP actions called with the callFriendly() method below.

METHODS

All the methods of Mojo::Base plus:

Private functions

Private functions used in the startup function

helperHashingAllAccounts

Helper function for processing AllAccounts SOAP call

Public methods

callFriendly

Calls Zimbra with the given argument and returns the SOAP response as perl hash.

COPYRIGHT

Copyright (c) 2014 by Roman Plessl. All rights reserved.

LICENSE

This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.

This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.

You should have received a copy of the GNU General Public License along with this program. If not, see http://www.gnu.org/licenses/.

AUTHOR

Roman Plessl <roman@plessl.info>

HISTORY

 2014-04-29 rp Initial Version

AUTHOR

Roman Plessl <rplessl@cpan.org>

COPYRIGHT AND LICENSE

This software is Copyright (c) 2014 by Roman Plessl.

This is free software, licensed under:

  The GNU General Public License, Version 3, June 2007