在 PHP-EWS 库中(https://github.com/jamesiarmes/php-ews https://github.com/jamesiarmes/php-ews)我可以使用以下代码访问特定用户的日历事件:https://github.com/jamesiarmes/php-ews/wiki/Calendar:-Get-List-(检索-Id-and-ChangeKey) https://github.com/jamesiarmes/php-ews/wiki/Calendar:-Get-List-(Retrieving-Id-and-ChangeKey)在所有库功能中,我们始终使用单个用户的身份验证:
$ews = new ExchangeWebServices($host, $username, $password, $version);
但是,如何从其他用户的邮箱获取日历事件?如果我在 LDAP 中有一个具有管理员权限的帐户,是否可以使用 PHP-EWS 库从另一个用户邮箱访问日历事件?或者是否只能访问身份验证中使用的用户帐户凭据的邮箱?
$ews = new ExchangeWebServices($host, $username, $password, $version);
有谁有使用 PHP-EWS 库和 LDAP 管理员帐户从另一个用户邮箱访问日历事件的示例吗?
谢谢。
在下面的代码块中仅查看“日历文件夹”添加此以便从以下位置检索事件[电子邮件受保护] /cdn-cgi/l/email-protection的日历:
$request->ParentFolderIds->DistinguishedFolderId->Mailbox = new StdClass;
$request->ParentFolderIds->DistinguishedFolderId->Mailbox->EmailAddress = '[email protected] /cdn-cgi/l/email-protection';
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)