简体   繁体   English

php-ews访问所有日历,包括共享

[英]php-ews Access all calendars including shared

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. 我希望做的是使用php-ews拉出显示的日历时间表。 So far, I have been able to easily display my OWN calendar without issue. 到目前为止,我已经能够轻松显示自己的OWN日历了。 This was done using the code at: https://github.com/jamesiarmes/php-ews/wiki/Calendar:-Get-List-(Retrieving-Id-and-ChangeKey) 这是使用以下代码完成的: 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: 我在类似的问题( php-ews:访问共享日历? )上看到有人建议在“仅在日历文件夹中查找”部分中添加以下行:

$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 我确实有日历的标识路径,即(用CAPS中的单词替换标识详细信息):DOMAIN.com/OU/USERNAME:\\calendar\\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. 关于堆栈溢出,有两个问题可以解决(但没有答案可以解决我的问题),因此,如果我们将其排序,我一定会把解决方案也传递给这些位置。

The value of 'email@address.com' needs to be the primary SMTP address of the conference room. “ email@address.com”的值必须是会议室的主要SMTP地址。 If you're already doing that, it would be helpful to see the full SOAP request that gets sent to the server. 如果您已经这样做了,那么查看发送到服务器的完整SOAP请求将很有帮助。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM