从重复发生的事件Google Calendar API中删除单个事件

问题描述 投票:0回答:1

我想通过Google Calendar API删除单个事件 从重复发生的事件

我添加了带有::>的定期活动

$GoogleCalendarID = '123';

$data = array(
   'id' => '123',
   'summary' => 'Test Title',
   'description' => 'Test Description',
   'start' => array(
            'dateTime' => '2020-05-18T09:15:00+08:00',
            'timeZone' => 'Asia/Brunei',
    ),
   'end' => array(
   'dateTime' => 
            '2020-05-18T09:15:00+08:00',
            'timeZone' => 'Asia/Brunei',
   ),
   'recurrence' => array(
         'RRULE:FREQ=WEEKLY;COUNT=10;BYDAY=MO;',
    ),
    'attendees' => array(
          array(
                'email' => '[email protected]',
                'displayName' => 'Test Name'
          )
    ));

// Add event
$event = new Google_Service_Calendar_Event($data);

// Delete event (single)
$service->events->delete('primary', '123');

<< [123

->此ID将删除整个重复事件。我想通过Google Calendar API从重复发生的事件中删除单个事件。我添加了一个重复事件:$ GoogleCalendarID ='123'; $ data = array('id'=>'123','summary'=>'...
php google-api google-calendar-api google-api-php-client
1个回答
© www.soinside.com 2019 - 2024. All rights reserved.