VMN*_*VMN 5 php exchangewebservices
我有一个任务,需要我连接Exchange Online帐户并列出PHP中的所有日历条目.
我已阅读了许多Microsoft帮助文档,但它们都是指c#代码.有人可以指导我完成使用PHP实现这一目标的步骤.
fnk*_*nkr 14
试试这个:
$ews = new ExchangeWebServices($host, $username, $password);
$request = new EWSType_FindItemType();
$request->Traversal = EWSType_ItemQueryTraversalType::SHALLOW;
$request->ItemShape = new EWSType_ItemResponseShapeType();
$request->ItemShape->BaseShape =
EWSType_DefaultShapeNamesType::DEFAULT_PROPERTIES;
$request->CalendarView = new EWSType_CalendarViewType();
$request->CalendarView->StartDate = date('c', strtotime('01/01/2011 -00'));
$request->CalendarView->EndDate = date('c', strtotime('01/31/2011 -00'));
$request->ParentFolderIds = new EWSType_NonEmptyArrayOfBaseFolderIdsType();
$request->ParentFolderIds->DistinguishedFolderId =
new EWSType_DistinguishedFolderIdType();
$request->ParentFolderIds->DistinguishedFolderId->Id =
EWSType_DistinguishedFolderIdNameType::CALENDAR;
Run Code Online (Sandbox Code Playgroud)
有了这个:https://github.com/jamesiarmes/php-ews
| 归档时间: |
|
| 查看次数: |
14813 次 |
| 最近记录: |