2024-06-05 12:19:46 +02:00
|
|
|
---
|
|
|
|
sidebar_position: 2
|
|
|
|
---
|
|
|
|
|
|
|
|
# Get list of events
|
|
|
|
Gets the list of all calendar events
|
|
|
|
|
|
|
|
|
2024-07-10 10:59:55 +02:00
|
|
|
<br/>
|
|
|
|
|
|
|
|
|
2024-07-10 12:58:29 +02:00
|
|
|
`Function GetEventList(Val Token, Val Calendar) Export`
|
2024-06-05 12:19:46 +02:00
|
|
|
|
|
|
|
| Parameter | CLI option | Type | Destination |
|
|
|
|
|-|-|-|-|
|
|
|
|
| Token | --token | String | Token |
|
|
|
|
| Calendar | --calendar | String | Calendar ID |
|
|
|
|
|
|
|
|
|
2024-06-06 14:33:52 +02:00
|
|
|
Returns: Map Of KeyAndValue - Array of event maps
|
2024-06-05 12:19:46 +02:00
|
|
|
|
2024-07-10 10:59:55 +02:00
|
|
|
|
2024-07-10 12:58:29 +02:00
|
|
|
|
|
|
|
|
|
|
|
|
2024-06-05 12:19:46 +02:00
|
|
|
```bsl title="Code example"
|
|
|
|
|
|
|
|
Response = OPI_GoogleCalendar.GetEventList(Token, "55868c32be16935f0...");
|
|
|
|
Response = OPI_Tools.JSONString(Response);
|
|
|
|
|
|
|
|
```
|
2024-07-10 10:59:55 +02:00
|
|
|
|
|
|
|
|
2024-06-05 12:19:46 +02:00
|
|
|
|
|
|
|
```sh title="CLI command example"
|
|
|
|
|
|
|
|
oint gcalendar GetEventList --token %token% --calendar %calendar%
|
|
|
|
|
|
|
|
```
|
|
|
|
|
|
|
|
```json title="Result"
|
2024-07-10 10:59:55 +02:00
|
|
|
[
|
2024-06-05 12:19:46 +02:00
|
|
|
{
|
|
|
|
"eventType": "default",
|
|
|
|
"attachments": [
|
|
|
|
{
|
|
|
|
"iconLink": "",
|
|
|
|
"title": "",
|
|
|
|
"fileUrl": "https://opi.neocities.org/assets/images/logo_long-e8fdcca6ff8b32e679ea49a1ccdd3eac.png"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"iconLink": "",
|
|
|
|
"title": "",
|
|
|
|
"fileUrl": "https://github.com/Bayselonarrend/OpenIntegrations/raw/main/Media/logo.png?v1"
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"reminders": {
|
|
|
|
"useDefault": true
|
|
|
|
},
|
|
|
|
"sequence": 0,
|
|
|
|
"start": {
|
|
|
|
"timeZone": "Europe/Minsk",
|
|
|
|
"dateTime": "2024-02-20T05:31:12+03:00"
|
|
|
|
},
|
|
|
|
"creator": {
|
|
|
|
"self": true,
|
|
|
|
"email": "bayselonarrend@gmail.com"
|
|
|
|
},
|
|
|
|
"end": {
|
|
|
|
"timeZone": "Europe/Minsk",
|
|
|
|
"dateTime": "2024-02-20T06:31:12+03:00"
|
|
|
|
},
|
|
|
|
"iCalUID": "o6dt8kbedrmu15o53pgbrrv35o@google.com",
|
|
|
|
"description": "TestEventDescription",
|
|
|
|
"updated": "2024-02-20T11:31:13.044Z",
|
|
|
|
"created": "2024-02-20T11:31:13.000Z",
|
|
|
|
"htmlLink": "https://www.google.com/calendar/event?eid=bzZkdDhrYmVkcm11MTVvNTNwZ2JycnYzNW8gYmF5c2Vsb25hcnJlbmRAbQ",
|
|
|
|
"location": "On office",
|
|
|
|
"summary": "New event",
|
|
|
|
"organizer": {
|
|
|
|
"self": true,
|
|
|
|
"email": "bayselonarrend@gmail.com"
|
|
|
|
},
|
|
|
|
"status": "confirmed",
|
|
|
|
"id": "o6dt8kbedrmu15o53pgbrrv35o",
|
|
|
|
"etag": "\"3416857346088000\"",
|
|
|
|
"kind": "calendar#event"
|
|
|
|
},
|
|
|
|
]
|
|
|
|
```
|