Php 如何将事件作为Out Office插入

Php 如何将事件作为Out Office插入,php,google-calendar-api,Php,Google Calendar Api,我目前正在使用谷歌日历API,并试图在我的谷歌日历中插入一个新的“外出”事件 我正在使用以下代码插入事件: $client = getClient(); $service = new Google_Service_Calendar($client); $calendarId = 'primary'; $event = new Google_Service_Calendar_Event([ 'summary' =>

我目前正在使用谷歌日历API,并试图在我的谷歌日历中插入一个新的“外出”事件

我正在使用以下代码插入事件:

    $client = getClient();
    $service = new Google_Service_Calendar($client);

    $calendarId     = 'primary';
    $event = new Google_Service_Calendar_Event([
            'summary'       => 'Summery Tets',
            'description'   => 'DescriptionTest',
            'start'         => ['dateTime' => '2019-01-14T09:00:00-07:00'],
            'end'           => ['dateTime' => '2019-01-14T10:00:00-07:00'],
            'reminders'     => ['useDefault' => false],
            'transparency'  => 'opaque',
        ]);
    $results = $service->events->insert($calendarId, $event);
它插入了一个事件——没有问题,但我希望它是一个“离开办公室”的事件。我一直在阅读日历API文档,但找不到关于外出“功能”的任何信息


API文档:

它还不存在,但是已经在和@Andreas发出了功能请求。谢谢您的回复,这比:)更有意义。他们有没有办法让我通过正常事件获得功能?(我想这会让我无法被邀请参加持续时间或类似时间内的活动)我认为这种功能还不存在,因为这是谷歌日历中要实现的一个全新功能。但是,其他日历产品API可能具有此功能