php-ews icon indicating copy to clipboard operation
php-ews copied to clipboard

Public Calendar - retrieving items

Open jbostoen opened this issue 6 years ago • 2 comments

I'm using this example: https://github.com/Garethp/php-ews/blob/master/examples/calendar/workingWithPublicCalendars.php

However, after the line "Perform operations on public folders as normal from here on out" things doesn't seem to work well for me. listChanges() works, but I can't call $calendar->getCalendarItems('12:00 PM') on it?

`Fatal error: Uncaught SoapFault exception: [a:ErrorInternalServerError] An internal server error occurred. The operation failed. in C:\xampp\htdocs\garethp-php-ews\vendor\garethp\php-ews\src\API\NTLMSoapClient.php:118 Stack trace:

#0 C:\xampp\htdocs\garethp-php-ews\vendor\garethp\php-ews\src\API\NTLMSoapClient.php(118): SoapClient->__call('FindItem', Array)

#1 C:\xampp\htdocs\garethp-php-ews\vendor\garethp\php-ews\src\API\ExchangeWebServices\MiddlewareFactory.php(18): garethp\ews\API\NTLMSoapClient->__call('FindItem', Array)

#2 C:\xampp\htdocs\garethp-php-ews\vendor\garethp\php-ews\src\API\ExchangeWebServices.php(497): garethp\ews\API\ExchangeWebServices->garethp\ews\API\ExchangeWebServices{closure}(Object(garethp\ews\API\MiddlewareRequest), Object(Closure))

#3 C:\xampp\htdocs\garethp-php-ews\vendor\garethp\php-ews\src\API\ExchangeWebServices\MiddlewareFactory.php(32): garethp\ews\API\ExchangeWebServices->garethp\ews\API{closure}(Object(garethp\ews\API\MiddlewareRequest))

#4 C:\xampp\htdocs\garethp-php-ews\vendor\gareth in C:\xampp\htdocs\garethp-php-ews\vendor\garethp\php-ews\src\API\NTLMSoapClient.php on line 118
`

jbostoen avatar Apr 09 '18 12:04 jbostoen

Please? How would I go about this? Or can't I use getCalendarItems() for this and only listChanges() ?

jbostoen avatar Apr 30 '18 12:04 jbostoen

Does anyone know the solution to this?

jbostoen avatar May 14 '18 13:05 jbostoen