I want to insert Event ID that I want, to Google Calendar API with Python, but I don't know how to do it,
event = {
'summary': acara,
'location': lokasi,
'description': deskripsi,
'start': {
'dateTime': start_time.strftime("%Y-%m-%dT%H:%M:%S"),
'timeZone': timezone,
},
'end': {
'dateTime': end_time.strftime("%Y-%m-%dT%H:%M:%S"),
'timeZone': timezone,
},
'attendees': attendees,
'reminders': {
'useDefault': False,
'overrides': [
{'method': 'email', 'minutes': 24 * 60},
{'method': 'popup', 'minutes': 10},
],
},
}
You can specify your custom event Id by simply adding the field
id
to the event resource:Important
The event id needs to fulfill certain criteria as specified in the documentation: