douyong5476 2019-01-14 09:25
浏览 30

如何插入事件作为 - 外出办公室

I'm currently working with Google-Calendar-API and trying to insert a new "Out Of Office" event in my google calendar.

I'm using the following code to insert an event:

    $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);

and it inserts an event - no problems, but i want it to be a "Out Of Office"-Event. I have been reading the calendar API DOC, but cant find anything about the out of office "function"

API Doc: https://developers.google.com/calendar/

  • 写回答

0条回答 默认 最新

    报告相同问题?

    悬赏问题

    • ¥15 目详情-五一模拟赛详情页
    • ¥15 有了解d3和topogram.js库的吗?有偿请教
    • ¥100 任意维数的K均值聚类
    • ¥15 stamps做sbas-insar,时序沉降图怎么画
    • ¥15 买了个传感器,根据商家发的代码和步骤使用但是代码报错了不会改,有没有人可以看看
    • ¥15 关于#Java#的问题,如何解决?
    • ¥15 加热介质是液体,换热器壳侧导热系数和总的导热系数怎么算
    • ¥100 嵌入式系统基于PIC16F882和热敏电阻的数字温度计
    • ¥15 cmd cl 0x000007b
    • ¥20 BAPI_PR_CHANGE how to add account assignment information for service line