Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Change users to check email and added en array dump for example #482

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
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.


}