@@ 69-76 (lines=8) @@ | ||
66 | /* |
|
67 | * @link https://developers.google.com/google-apps/calendar/v3/reference/events/insert |
|
68 | */ |
|
69 | public function insertEvent($event, $optParams = []): Google_Service_Calendar_Event |
|
70 | { |
|
71 | if ($event instanceof Event) { |
|
72 | $event = $event->googleEvent; |
|
73 | } |
|
74 | ||
75 | return $this->calendarService->events->insert($this->calendarId, $event, $optParams); |
|
76 | } |
|
77 | ||
78 | /* |
|
79 | * @link https://developers.google.com/calendar/v3/reference/events/quickAdd |
|
@@ 86-93 (lines=8) @@ | ||
83 | return $this->calendarService->events->quickAdd($this->calendarId, $event); |
|
84 | } |
|
85 | ||
86 | public function updateEvent($event): Google_Service_Calendar_Event |
|
87 | { |
|
88 | if ($event instanceof Event) { |
|
89 | $event = $event->googleEvent; |
|
90 | } |
|
91 | ||
92 | return $this->calendarService->events->update($this->calendarId, $event->id, $event); |
|
93 | } |
|
94 | ||
95 | public function deleteEvent($eventId) |
|
96 | { |