in libs/google/calendar.py [0:0]
def move_event(self, event_id, destination_calendar_id):
"""
Change calendar event owner.
:param event_id: eventId
:param destination_calendar_id: destination
:return: bool
"""
try:
r = json.loads(self.call_google_api(service=self.service,
api_resource="events",
api_method="move",
response_field="id",
calendarId="primary",
eventId=event_id,
destination=destination_calendar_id))
if r == event_id:
return True
else:
return False
except(ValueError, KeyError, TypeError):
return None