php-ews
php-ews copied to clipboard
GetUserOofSettings Request
Hi!
Could anybody please provide me an Example of how to get the User Out of Office Settings?
I tried:
$request = [
'Mailbox' => '[email protected]'
];
$request = API\Type::buildFromArray($request);
$t = $ews->getClient()->GetUserOofSettings($request);
But i only get the Message: "Der Anforderungsinhalt für die angegebene Methode ist NULL oder ungültig"
Best Regards, David
You forgot 1 part to your $request: It should be:
$request = [
'Mailbox' => [
'Address' => '[email protected]'
]
];