Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 6 additions & 1 deletion examples/user/free-busy.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -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);
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The purpose of these examples is to show users how to work with the library so that they can find what they need on their own. I'm not interested in just dumping arrays.

I'd be happy to take the fix for email address above if you'd like to remove this portion.


}