EWS-Client

 view release on metacpan or  search on metacpan

lib/EWS/Client/Calendar.pm  view on Meta::CPAN


Instantiates a new calendar reader. Note that the action of performing a query
for a set of results is separated from this step, so you can perform multiple
queries using this same object. Pass the following arguments in a hash ref:

=over 4

=item C<client> => C<EWS::Client> object (required)

An instance of C<EWS::Client> which has been configured with your server
location, user credentials and SOAP APIs. This will be stored as a weak
reference.

=back

=head2 QUERY AND RESULT SET

=head2 $cal->retrieve( \%arguments )

Query the Exchange server and retrieve calendar entries between the given
timestamps. Pass the following arguments in a hash ref:

lib/EWS/Client/Contacts.pm  view on Meta::CPAN


Instantiates a new contacts reader. Note that the action of performing a query
for a set of results is separated from this step, so you can perform multiple
queries using this same object. Pass the following arguments in a hash ref:

=over 4

=item C<client> => C<EWS::Client> object (required)

An instance of C<EWS::Client> which has been configured with your server
location, user credentials and SOAP APIs. This will be stored as a weak
reference.

=back

=head2 QUERY AND RESULT SET

=head2 $contacts->retrieve( \%arguments )

Query the Exchange server and retrieve contact entries. By default the
C<retrieve()> method will return contacts for the account under which you
authenticated to the Exchange server (that is, the credentials passed to the
L<EWS::Client> constructor). The following arguments will change this
behaviour:

=over 4

=item C<email> => String (optional)

Passing the primary SMTP address of another account will retrieve the contacts
for that Exchange user instead using the I<Delegation> feature, assuming you
have rights to see their contacts (i.e. the user has shared their contacts).

lib/EWS/Client/DistributionList.pm  view on Meta::CPAN


Instantiates a new distribution list reader. Note that the action of performing a query
for a set of results is separated from this step, so you can perform multiple
queries using this same object. Pass the following arguments in a hash ref:

=over 4

=item C<client> => C<EWS::Client> object (required)

An instance of C<EWS::Client> which has been configured with your server
location, user credentials and SOAP APIs. This will be stored as a weak
reference.

=back

=head2 QUERY AND RESULT SET

=head2 $distribution_list->retrieve( \%arguments )

Query the Exchange server and retrieve Mailbox members of the distribution list. Accepts the following arguments:

lib/EWS/Client/DistributionList.pm  view on Meta::CPAN

I<should> be able to divine the primary SMTP address required.

=item C<impersonate> => String (optional)

In addition to passing the 'distribution_email', passing the primary SMTP address of another account
will retrieve the requested private distribution list for the impersonated user. If you do not have
sufficient rights to I<Impersonate> that user, an error will be thrown.

By default the C<retrieve()> method will return distribution list members for
public distribution lists or private lists you have access to using the
account under which you authenticated to the Exchange server (that is, the credentials
passed to the EWS::Client constructor). This argument will change that
behaviour.

=back

The returned object contains the collection of distribution list members and is of type
C<EWS::DistributionList::ResultSet>. It's an iterator, so you can walk through the
list of entries (see the synposis, above). For example:

    my $entries = $distribution_list->retrieve({distribution_email => 'group@example.com'});

lib/EWS/Client/Folder.pm  view on Meta::CPAN


Instantiates a new folder reader. Note that the action of performing a query
for a set of results is separated from this step, so you can perform multiple
queries using this same object. Pass the following arguments in a hash ref:

=over 4

=item C<client> => C<EWS::Client> object (required)

An instance of C<EWS::Client> which has been configured with your server
location, user credentials and SOAP APIs. This will be stored as a weak
reference.

=back

=head1 AUTHOR

Oliver Gorwits <oliver@cpan.org>

=head1 COPYRIGHT AND LICENSE

lib/EWS/Client/Role/SOAP.pm  view on Meta::CPAN


    if (not $self->use_negotiated_auth) {
        $addr = sprintf '%s:%s@%s',
            $self->username, $self->password, $addr;
    }

    my $t = XML::Compile::Transport::SOAPHTTP->new(
        address => 'https://'. $addr);
    
    if ($self->use_negotiated_auth) {
        $t->userAgent->credentials($self->server.':443', '',
            $self->username, $self->password);
    }

    # XXX disable all security checks
    $t->userAgent->ssl_opts( verify_hostname => 0, SSL_verify_mode => 0x00 );

    return $t;
}

has wsdl => (



( run in 0.280 second using v1.01-cache-2.11-cpan-4d50c553e7e )