1
0
mirror of https://github.com/Bayselonarrend/OpenIntegrations.git synced 2024-12-23 02:06:12 +02:00
OpenIntegrations/docs/en/md/Google_Calendar/Event-management/Get-event-list.md

89 lines
1.9 KiB
Markdown
Raw Normal View History

---
sidebar_position: 2
---
# Get list of events
Gets the list of all calendar events
2024-07-10 12:58:29 +02:00
`Function GetEventList(Val Token, Val Calendar) Export`
| Parameter | CLI option | Type | Destination |
|-|-|-|-|
| Token | --token | String | Token |
| Calendar | --calendar | String | Calendar ID |
Returns: Map Of KeyAndValue - Array of event maps
2024-07-10 13:05:58 +02:00
<br/>
2024-07-10 12:58:29 +02:00
```bsl title="Code example"
2024-07-10 13:24:11 +02:00
Response = OPI_GoogleCalendar.GetEventList(Token, "55868c32be16935f0...");
Response = OPI_Tools.JSONString(Response);
```
```sh title="CLI command example"
oint gcalendar GetEventList --token %token% --calendar %calendar%
```
```json title="Result"
2024-07-10 13:11:17 +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"
},
]
```