Garethp / php-ews

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

GetUserOofSettings Request #237

Open ThePatzen opened 2 years ago

ThePatzen commented 2 years ago

Hi!

Could anybody please provide me an Example of how to get the User Out of Office Settings?

I tried:

        $request = [
            'Mailbox' => 'hugo@test.at'
        ];

        $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

j-applese3d commented 2 years ago

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

$request = [
    'Mailbox' => [
        'Address' => 'hugo@test.at'
    ]
];