我想通过Google Calendar API删除单个事件 从重复发生的事件。
我添加了带有::>的定期活动
->此ID将删除整个重复事件。我想通过Google Calendar API从重复发生的事件中删除单个事件。我添加了一个重复事件:$ GoogleCalendarID ='123'; $ data = array('id'=>'123','summary'=>'...$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