NAME

Office365::EWS::Client - Office 365 Exchange Web Services client

VERSION

version 1.142410

SYNOPSIS

Set up your Office 365 Exchange Web Services client.

use Office365::EWS::Client;
use DateTime;

my $ews = Office365::EWS::Client->new({
    server         => 'pod12345.outlook.com',
    username       => 'oliver@some.org',
    password       => 's3krit', # or set in $ENV{EWS_PASS}
});

Then perform operations on the Exchange server:

my $entries = $ews->calendar->retrieve({
    start => DateTime->now(),
    end   => DateTime->now->add( months => 1 ),
});

print "I retrieved ". $entries->count ." items\n";

while ($entries->has_next) {
    print $entries->next->Subject, "\n";
}

my $contacts = $ews->contacts->retrieve;

my $gal = $ews->gal->retrieve( { querystring => "John Doe" } );
if ( $gal->count() > 0 ) {
  while ($gal->has_next) {
    my $entry = $gal->next;
    print $entry->DisplayName, "\n";
    print $entry->EmailAddress->{EmailAddress}, "\n\n";
  }
}

DESCRIPTION

This module acts as a client to the Office 365 Exchange Web Services API. From here you can access calendar and contact entries using the capabilities of EWS::Client.

AUTHOR

Jesse Thompson <zjt@cpan.org>

COPYRIGHT AND LICENSE

This software is copyright (c) 2014 by Jesse Thompson.

This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.