Garethp / php-ews

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

how to fetch __getLastResponse, __getLastResponseHeaders,.... #231

Open fglueck opened 2 years ago

fglueck commented 2 years ago

I got an error: "The request is invalid." To find the error I try

$this->api->getClient()->getLastResponse(); $this->api->getClient()->getLastRequest();

But all of this will trigger a Exception. Returns getClient() not a NTLMSoapClient (extends SoapClient)? $this->api was created with: API::withCallbackToken('outlook.office365.com', $token, $conf['options']);

Is there anyone that can help me in this misunderstood?