php-ews:访问共享日历? [英] php-ews: Access shared calendars?

查看:128
本文介绍了php-ews:访问共享日历?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

使用php-ews: https://github.com/jamesiarmes/php-ews

根据此示例,我可以从自己的日历中列出事件: EWS:访问共享日历

通过查看该搜索结果和其他各种搜索结果(我已经搜索了"ews共享日历"的许多变体),我必须找到共享日历的位置,获取ID,然后使用该ID.但是我还没有做到这一点.有人可以帮忙吗?

解决方案

下的代码块中,仅在"calendars文件夹"中查找,添加此内容以从email@address.com的事件中检索事件日历:

$request->ParentFolderIds->DistinguishedFolderId->Mailbox = new StdClass;
$request->ParentFolderIds->DistinguishedFolderId->Mailbox->EmailAddress = 'email@address.com';

Using php-ews: https://github.com/jamesiarmes/php-ews

I'm able to list events from my own calendar according to this example: https://github.com/jamesiarmes/php-ews/wiki/Calendar:-Get-List-(Retrieving-Id-and-ChangeKey) But after searching for a solution for a few hours I still haven't been able to find a way to access shared calendars.

This question is similar, but has no answer: EWS: Access shared calendars

From looking at that and various other search results (I've googled many variants of "ews shared calendar") I have to find the location of the shared calendar, get the id and then use that. But I haven't been able to do that. Can anyone help?

解决方案

In the code block under Only look in the "calendars folder" add this in order to retrieve events from email@address.com's calendar:

$request->ParentFolderIds->DistinguishedFolderId->Mailbox = new StdClass;
$request->ParentFolderIds->DistinguishedFolderId->Mailbox->EmailAddress = 'email@address.com';

这篇关于php-ews:访问共享日历?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆