Get list of events
Gets the list of all calendar events
- Parameters
- Advanced call ?
Function GetEventList(Val Token, Val Calendar) Export
| Parameter | CLI option | Type | Required | Description |
|---|---|---|---|---|
| Token | --token | String | ✔ | Token |
| Calendar | --calendar | String | ✔ | Calendar ID |
Returns
Map Of KeyAndValue - Array of event maps
| Parameter | Description |
|---|---|
| proxy | InternetProxy or a structure with fields Protocol, Host, Port, User, Password, UseOSAuthentication |
| timeout | Request execution timeout |
| adv_response | Formats the response as a complete HTTP structure with fields code, body, and headers |
| retries | Number of HTTP request send attempts on 5** status codes or internal client errors |
| dontwait | Creates a background job and returns its data (for 1C and OneScript only) |
1C:Enterprise/OneScript code example
Token = "ya29.a0AT3oNZ89Gfvy6_DUg_tviJJnmBXSmGRrPL6Vym5gPCsPQEa3F606plSWJttyabLz5gHJY63An6XG9wKNlbVK4fkTSF_KNhqT5M6IGUm8THO6IWF0iGzg5z2SO...";
Calendar = "f70efec034ef36b040f12b5d8938e54fc399d73cd37b8e765bdd86ebc4a67e4a@group.calendar.google.com";
Result = OPI_GoogleCalendar.GetEventList(Token, Calendar);
- Bash
- CMD/Bat
oint gcalendar GetEventList \
--token "***" \
--calendar "5a2feaca8bffbf05781542d3858fed284c660923e9b1d69ef69a81d92569538d@group.calendar.google.com"
oint gcalendar GetEventList ^
--token "***" ^
--calendar "5a2feaca8bffbf05781542d3858fed284c660923e9b1d69ef69a81d92569538d@group.calendar.google.com"
Result
[
{
"kind": "calendar#event",
"etag": "\"3568961785273950\"",
"id": "rss31qjeoul132n62ir4vrnl6s",
"status": "confirmed",
"htmlLink": "https://www.google.com/calendar/event?eid=cnNzMzFxamVvdWwxMzJuNjJpcjR2cm5sNnMgMjJkZTgxYjI3NTM5MzRmYzIzN2QyMjAzMjQ0MDU3Njc5OWMxYmQ2NmY5MGEwNDg2NmJjYTNiNzg1ZGQ0MzQwZUBn",
"created": "2026-07-19T17:07:57Z",
"updated": "2026-07-19T17:08:12.636Z",
"summary": "New event",
"description": "New event description",
"location": "InOffice",
"creator": {
"email": "bayselonarrend@gmail.com"
},
"organizer": {
"email": "22de81b2753934fc237d22032440576799c1bd66f90a04866bca3b785dd4340e@group.calendar.google.com",
"displayName": "TestCalendar",
"self": true
},
"start": {
"dateTime": "2026-07-19T17:07:57+00:00",
"timeZone": "Europe/Moscow"
},
"end": {
"dateTime": "2026-07-19T18:07:57+00:00",
"timeZone": "Europe/Moscow"
},
"iCalUID": "rss31qjeoul132n62ir4vrnl6s@google.com",
"sequence": 0,
"reminders": {
"useDefault": true
},
"attachments": [
{
"fileUrl": "https://releases.openintegrations.dev/test_data/picture.jpg",
"title": "Image1",
"iconLink": ""
},
{
"fileUrl": "https://releases.openintegrations.dev/test_data/picture2.jpg",
"title": "Image2",
"iconLink": ""
}
],
"eventType": "default"
}
]