|
@@ 65-72 (lines=8) @@
|
| 62 |
|
/* |
| 63 |
|
* @link https://developers.google.com/google-apps/calendar/v3/reference/events/insert |
| 64 |
|
*/ |
| 65 |
|
public function insertEvent($event): Google_Service_Calendar_Event |
| 66 |
|
{ |
| 67 |
|
if ($event instanceof Event) { |
| 68 |
|
$event = $event->googleEvent; |
| 69 |
|
} |
| 70 |
|
|
| 71 |
|
return $this->calendarService->events->insert($this->calendarId, $event); |
| 72 |
|
} |
| 73 |
|
|
| 74 |
|
public function updateEvent($event): Google_Service_Calendar_Event |
| 75 |
|
{ |
|
@@ 74-81 (lines=8) @@
|
| 71 |
|
return $this->calendarService->events->insert($this->calendarId, $event); |
| 72 |
|
} |
| 73 |
|
|
| 74 |
|
public function updateEvent($event): Google_Service_Calendar_Event |
| 75 |
|
{ |
| 76 |
|
if ($event instanceof Event) { |
| 77 |
|
$event = $event->googleEvent; |
| 78 |
|
} |
| 79 |
|
|
| 80 |
|
return $this->calendarService->events->update($this->calendarId, $event->id, $event); |
| 81 |
|
} |
| 82 |
|
|
| 83 |
|
public function deleteEvent($eventId) |
| 84 |
|
{ |