Skip to main content

Get list of events

Gets the list of all calendar events

Function GetEventList(Val Token, Val Calendar) Export

ParameterCLI optionTypeRequiredDescription
Token--tokenStringToken
Calendar--calendarStringCalendar ID
Returns

Map Of KeyAndValue - Array of event maps

1C:Enterprise/OneScript code example
Token = "ya29.a0ATi6K2sWW_31WLH0d9aK0qk0HJ-UfyvZDcLeBbF5bLU7QH09Bx2pXAupIw40USQVaxXqsovItVSt9swWuPdBDSA0eFaVPE0CbaU2OLQlyrnITI1VVXgZ_Gx2R...";
Calendar = "f70efec034ef36b040f12b5d8938e54fc399d73cd37b8e765bdd86ebc4a67e4a@group.calendar.google.com";

Result = OPI_GoogleCalendar.GetEventList(Token, Calendar);
oint gcalendar GetEventList \
--token "***" \
--calendar "2e2a088af05c1d88f3793172eae35d956b6303f5c1504210c14594fd60e13212@group.calendar.google.com"
Result
[
{
"kind": "calendar#event",
"etag": "\"3559608390034462\"",
"id": "1fbgednhburavkoh3qor3mi30c",
"status": "confirmed",
"htmlLink": "https://www.google.com/calendar/event?eid=MWZiZ2VkbmhidXJhdmtvaDNxb3IzbWkzMGMgMmUyYTA4OGFmMDVjMWQ4OG...",
"created": "2026-05-26T14:03:06Z",
"updated": "2026-05-26T14:03:15.017Z",
"summary": "New event",
"description": "New event description",
"location": "InOffice",
"creator": {
"email": "bayselonarrend@gmail.com"
},
"organizer": {
"email": "2e2a088af05c1d88f3793172eae35d956b6303f5c1504210c14594fd60e13212@group.calendar.google.com",
"displayName": "TestCalendar",
"self": true
},
"start": {
"dateTime": "2026-05-26T14:03:05+00:00",
"timeZone": "Europe/Moscow"
},
"end": {
"dateTime": "2026-05-26T15:03:05+00:00",
"timeZone": "Europe/Moscow"
},
"iCalUID": "1fbgednhburavkoh3qor3mi30c@google.com",
"sequence": 0,
"reminders": {
"useDefault": true
},
"attachments": [
{
"fileUrl": "https://hut.openintegrations.dev/test_data/picture.jpg",
"title": "Image1",
"iconLink": ""
},
{
"fileUrl": "https://hut.openintegrations.dev/test_data/picture2.jpg",
"title": "Image2",
"iconLink": ""
}
],
"eventType": "default"
}
]