Garethp / php-ews

PHP Exchange Web Services
BSD 3-Clause "New" or "Revised" License
112 stars 45 forks source link

Public Calendar - retrieving items #131

Open jbostoen opened 6 years ago

jbostoen commented 6 years ago

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 commented 6 years ago

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

jbostoen commented 6 years ago

Does anyone know the solution to this?