API-MailboxOrg

 view release on metacpan or  search on metacpan

example/list_videochats.pl  view on Meta::CPAN

#!/usr/bin/perl

use strict;
use warnings;

use API::MailboxOrg;
use Data::Printer;

my $api = API::MailboxOrg->new(
    user     => 'test@example.tld',
    password => 'a_password',
);

my $result = $api->videochat->list( mail => 'test@example.tld' );

p $result;

lib/API/MailboxOrg.pm  view on Meta::CPAN

=head1 VERSION

version 1.0.2

=head1 SYNOPSIS

    use API::MailboxOrg;
    use Data::Printer;

    my $api = API::MailboxOrg->new(
        user     => 'test_name@example.tld',
        password => 'test1234567789',
    );

    my $all_videochats = $api->videochat->list(
        mail => 'test_name@example.tld',
    );
    p $all_videochats;

=head1 INFO

This is still pretty alpha. The API of this distribution might change.

=head1 ATTRIBUTES

=over 4

lib/API/MailboxOrg.pm  view on Meta::CPAN

=item * mail

=item * mailinglist

=item * password

=item * passwordreset

=item * spamprotect

=item * test

=item * user

=item * utils

=item *   validate

=item *   videochat

=back

lib/API/MailboxOrg/API/Test.pm  view on Meta::CPAN


);


sub accountallowed ($self, %params) {
    my $validator = $validators{'accountallowed'};
    %params       = $validator->(%params) if $validator;

    my %opt = ();

    return $self->_request( 'test.accountallowed', \%params, \%opt );
}

sub domainallowed ($self, %params) {
    my $validator = $validators{'domainallowed'};
    %params       = $validator->(%params) if $validator;

    my %opt = ();

    return $self->_request( 'test.domainallowed', \%params, \%opt );
}


1;

__END__

=pod

=encoding UTF-8

lib/API/MailboxOrg/API/Test.pm  view on Meta::CPAN

Parameters:

=over 4

=item * account

=back

returns: boolean

    $api->test->accountallowed(%params);

=head2 domainallowed

Confirms if the domain can be administrated using the current ACLs

Parameters:

=over 4

=item * domain

=back

returns: boolean

    $api->test->domainallowed(%params);

=head1 AUTHOR

Renee Baecker <reneeb@cpan.org>

=head1 COPYRIGHT AND LICENSE

This software is Copyright (c) 2022 by Renee Baecker.

This is free software, licensed under:



( run in 2.035 seconds using v1.01-cache-2.11-cpan-f56aa216473 )