2024-06-05 10:19:46 +00:00
|
|
|
---
|
|
|
|
sidebar_position: 3
|
|
|
|
---
|
|
|
|
|
|
|
|
# Get event
|
|
|
|
Gets an event by ID
|
|
|
|
|
|
|
|
|
2024-07-10 11:59:55 +03:00
|
|
|
|
2024-07-10 13:58:29 +03:00
|
|
|
`Function GetEvent(Val Token, Val Calendar, Val Event) Export`
|
2024-06-05 10:19:46 +00:00
|
|
|
|
2024-08-13 15:52:26 +03:00
|
|
|
| Parameter | CLI option | Type | Description |
|
|
|
|
|-|-|-|-|
|
|
|
|
| Token | --token | String | Token |
|
|
|
|
| Calendar | --calendar | String | Calendar ID |
|
|
|
|
| Event | --event | String | Event ID |
|
2024-06-05 10:19:46 +00:00
|
|
|
|
2024-08-13 15:52:26 +03:00
|
|
|
|
|
|
|
Returns: Map Of KeyAndValue - serialized JSON response from Google
|
2024-06-05 10:19:46 +00:00
|
|
|
|
2024-07-10 14:05:58 +03:00
|
|
|
<br/>
|
2024-07-10 11:59:55 +03:00
|
|
|
|
2024-07-10 13:58:29 +03:00
|
|
|
|
|
|
|
|
|
|
|
|
2024-06-05 10:19:46 +00:00
|
|
|
```bsl title="Code example"
|
2024-09-29 19:41:20 +03:00
|
|
|
Token = "ya29.a0AcM612xw6IRwwkQIOEhizd2pJ6LLI4UAhdhxmXDGEzYkcfUPrLYgDDwbsSi5iQdc78WPs_1_Qor5KipuV6mAIvr6z-AKzrBaMT4erIR5T...";
|
|
|
|
Calendar = "e8a267e4a6629e0ef3f8a08ca54f52e2b031d3c40bd27d2866c2ed083c6353ec@group.calendar.google.com";
|
|
|
|
Event = "ro3gv4dokajnh90pcn58lel8e4";
|
2024-09-28 16:17:37 +03:00
|
|
|
|
|
|
|
Result = OPI_GoogleCalendar.GetEvent(Token, Calendar, Event);
|
2024-06-05 10:19:46 +00:00
|
|
|
```
|
2024-08-13 15:52:26 +03:00
|
|
|
|
2024-07-10 11:59:55 +03:00
|
|
|
|
2024-06-05 10:19:46 +00:00
|
|
|
|
|
|
|
```sh title="CLI command example"
|
2024-08-13 15:52:26 +03:00
|
|
|
|
|
|
|
oint gcalendar GetEvent --token %token% --calendar %calendar% --event %event%
|
2024-06-05 10:19:46 +00:00
|
|
|
|
|
|
|
```
|
|
|
|
|
|
|
|
```json title="Result"
|
2024-09-29 21:40:58 +03:00
|
|
|
{
|
|
|
|
"kind": "calendar#event",
|
|
|
|
"etag": "\"3455260702978000\"",
|
|
|
|
"id": "nkeonu0b5b3flradhop3ist4vk",
|
|
|
|
"status": "confirmed",
|
|
|
|
"htmlLink": "https://www.google.com/calendar/event?eid=bmtlb251MGI1YjNmbHJhZGhvcDNpc3Q0dmsgYjA0MjAwMGYwYTRjYzU5ZTk2OWRkOTljZWMzNjk2ZmYwZDI2OWFhZTNkMWRhZjdmMjQ1N2RmMjg4ZmUzMzgzNUBn",
|
|
|
|
"created": "2024-09-29T17:19:10Z",
|
|
|
|
"updated": "2024-09-29T17:19:11.489Z",
|
|
|
|
"summary": "New event",
|
|
|
|
"description": "New event description",
|
|
|
|
"location": "InOffice",
|
|
|
|
"creator": {
|
|
|
|
"email": "bayselonarrend@gmail.com"
|
|
|
|
},
|
|
|
|
"organizer": {
|
|
|
|
"email": "b042000f0a4cc59e969dd99cec3696ff0d269aae3d1daf7f2457df288fe33835@group.calendar.google.com",
|
|
|
|
"displayName": "TestCalendar",
|
|
|
|
"self": true
|
|
|
|
},
|
|
|
|
"start": {
|
|
|
|
"dateTime": "2024-09-29T23:19:10+03:00",
|
|
|
|
"timeZone": "Europe/Moscow"
|
|
|
|
},
|
|
|
|
"end": {
|
|
|
|
"dateTime": "2024-09-30T00:19:10+03:00",
|
|
|
|
"timeZone": "Europe/Moscow"
|
|
|
|
},
|
|
|
|
"iCalUID": "nkeonu0b5b3flradhop3ist4vk@google.com",
|
|
|
|
"sequence": 0,
|
|
|
|
"reminders": {
|
|
|
|
"useDefault": true
|
|
|
|
},
|
|
|
|
"attachments": [
|
|
|
|
{
|
|
|
|
"fileUrl": "https://github.com/Bayselonarrend/OpenIntegrations/raw/main/service/test_data/picture.jpg",
|
|
|
|
"title": "Image1",
|
|
|
|
"iconLink": ""
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"fileUrl": "https://github.com/Bayselonarrend/OpenIntegrations/raw/main/service/test_data/picture2.jpg",
|
|
|
|
"title": "Image2",
|
|
|
|
"iconLink": ""
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"eventType": "default"
|
|
|
|
}
|
2024-06-05 10:19:46 +00:00
|
|
|
```
|