【问题标题】:Access another mailbox calendar events with PHP-EWS使用 PHP-EWS 访问另一个邮箱日历事件
【发布时间】:2014-10-06 03:46:54
【问题描述】:

在 PHP-EWS 库 (https://github.com/jamesiarmes/php-ews) 中,我可以使用以下代码访问特定用户的日历事件: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);

有没有人可以通过 LDAP 管理员帐户使用 PHP-EWS 库从另一个用户邮箱访问日历事件?

谢谢。

【问题讨论】:

标签: php calendar exchangewebservices php-ews


【解决方案1】:

仅查看“日历文件夹”下的代码块中添加此项以便从 email@address.com 的日历中检索事件:

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

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 2019-07-21
    • 1970-01-01
    • 2016-10-17
    • 1970-01-01
    • 1970-01-01
    • 2023-03-05
    • 1970-01-01
    • 2010-10-12
    相关资源
    最近更新 更多