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

GetUserOofSettings Request

Open ThePatzen opened this issue 3 years ago • 1 comments

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

ThePatzen avatar Sep 28 '22 06:09 ThePatzen

You forgot 1 part to your $request: It should be:

$request = [
    'Mailbox' => [
        'Address' => '[email protected]'
    ]
];

j-applese3d avatar Oct 26 '22 19:10 j-applese3d