I have a calendar for a conference room shared with me. What I am hoping to do is to use php-ews to pull that calendar schedule for display. So far, I have been able to easily display my OWN calendar without issue. This was done using the code at: https://github.com/jamesiarmes/php-ews/wiki/Calendar:-Get-List-(Retrieving-Id-and-ChangeKey)
I saw on a similar question (php-ews: Access shared calendars?) someone suggesting adding these lines in the "Only look in the calendars folder" section:
$request->ParentFolderIds->DistinguishedFolderId->Mailbox = new StdClass;
$request->ParentFolderIds->DistinguishedFolderId->Mailbox->EmailAddress = 'email@address.com';
This didn't break the code or anything, but it also didn't change the results. I was still only given my own calendar as a result. I have seen mention of impersonation as one method, but since the calendar is shared with me already I don't think that should be necessary. Is there something I have overlooked? I do have the identity path of the calendar, which is (replacing identifying details with words in CAPS): DOMAIN.com/OU/USERNAME:\calendar\NAME OF CALENDAR
I hope this is enough to help solve the problem. There are a couple questions on stack overflow dealing with this (but without answers that solved my issue), so if we get it sorted I will be sure to pass on the solution to those locations as well.