diff --git a/examples/user/free-busy.php b/examples/user/free-busy.php index b37b529b..b570cbec 100644 --- a/examples/user/free-busy.php +++ b/examples/user/free-busy.php @@ -52,7 +52,7 @@ // Add the user to get availability for. $mailbox = new MailboxData(); $mailbox->Email = new EmailAddressType(); -$mailbox->Email->Address = $username; +$mailbox->Email->Address = $email; $mailbox->Email->RoutingType = 'SMTP'; $mailbox->AttendeeType = 'Required'; $mailbox->ExcludeConflicts = false; @@ -90,4 +90,9 @@ . $end_time->format('H:i') . "\n"; fwrite(STDOUT, $output); } + + // Just dump the array for $email user as an example + $freebusy_user = $availability->FreeBusyView->CalendarEventArray; + print_r ($freebusy_user); + }