Prova questo:
$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;
Con questo: https://github.com/jamesiarmes/php-ews
Abbiamo creato un account di Office 360 e cercando di accedere al calendario lì. Exchange Online Service NOT Exchange 2007 o altri. Stiamo cercando di collegare l'account online di scambio https://portal.microsoftonline.com/. Saremo in grado di connetterci online o questo codice funziona con il server di posta locale Exchange Quale dovrebbe essere il nome host? Stiamo cercando di utilizzare vinniehash.onmicrosoft.com Questo è stato generato quando abbiamo creato l'account – VMN
Perché non si esegue il codice fornito contro il server per scoprirlo? –
@fnkr lo hai provato, cosa ti è venuto in mente, la libreria php-ews funziona contro il tuo server vinniehash.onmicrosoft.com ospitato su microsoftonline? – mikkelbreum