Add method for deleting calendar event
This commit is contained in:
parent
50a2231174
commit
f57f6e2402
@ -79,3 +79,10 @@ class CalendarService:
|
|||||||
|
|
||||||
else:
|
else:
|
||||||
raise
|
raise
|
||||||
|
|
||||||
|
def delete_event(self, calendar_id: str, id: str):
|
||||||
|
event_id = self.encode_event_id(id)
|
||||||
|
try:
|
||||||
|
self.service.events().delete(calendar_id, event_id)
|
||||||
|
except HttpError as error:
|
||||||
|
print("Got error when deleting event: ", error)
|
||||||
|
Loading…
Reference in New Issue
Block a user