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-10-13 02:26:42 +03:00
|
|
|
Token = "ya29.a0AcM612zmTq3HijDy5D8xu-llkoj4aTlkgkrZ4LGSZcpCOnX1Z6xu9IsTLXFZSJu8uVsYxHj0ih5glQrF0yWTomhAPTGm1M9Kk7ZvYIwpm...";
|
|
|
|
|
Calendar = "c3e1276b51960f0e037480209bde23a7fded89b36e9d689e0d00951403165f59@group.calendar.google.com";
|
|
|
|
|
Event = "gacdd2rkrjnue8j1387ace13fc";
|
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",
|
2024-10-09 09:42:00 +03:00
|
|
|
"etag": "\"3456908680754000\"",
|
|
|
|
|
"id": "7rfbn0fb8nai4i7v4l435tgl1c",
|
2024-09-29 21:40:58 +03:00
|
|
|
"status": "confirmed",
|
2024-10-09 09:42:00 +03:00
|
|
|
"htmlLink": "https://www.google.com/calendar/event?eid=N3JmYm4wZmI4bmFpNGk3djRsNDM1dGdsMWMgNjA2MTNkNTNjNDY3MGFiZGNlZWMzZTc2OTNjYTQ3NWIwZTg4ZGMxNjc4ZGI3MjEwNTIxMzU2YjQ5NDBhNjE0OEBn",
|
|
|
|
|
"created": "2024-10-09T06:12:19Z",
|
|
|
|
|
"updated": "2024-10-09T06:12:20.377Z",
|
2024-09-29 21:40:58 +03:00
|
|
|
"summary": "New event",
|
|
|
|
|
"description": "New event description",
|
|
|
|
|
"location": "InOffice",
|
|
|
|
|
"creator": {
|
|
|
|
|
"email": "bayselonarrend@gmail.com"
|
|
|
|
|
},
|
|
|
|
|
"organizer": {
|
2024-10-09 09:42:00 +03:00
|
|
|
"email": "60613d53c4670abdceec3e7693ca475b0e88dc1678db7210521356b4940a6148@group.calendar.google.com",
|
2024-09-29 21:40:58 +03:00
|
|
|
"displayName": "TestCalendar",
|
|
|
|
|
"self": true
|
|
|
|
|
},
|
|
|
|
|
"start": {
|
2024-10-09 09:42:00 +03:00
|
|
|
"dateTime": "2024-10-09T12:12:19+03:00",
|
2024-09-29 21:40:58 +03:00
|
|
|
"timeZone": "Europe/Moscow"
|
|
|
|
|
},
|
|
|
|
|
"end": {
|
2024-10-09 09:42:00 +03:00
|
|
|
"dateTime": "2024-10-09T13:12:19+03:00",
|
2024-09-29 21:40:58 +03:00
|
|
|
"timeZone": "Europe/Moscow"
|
|
|
|
|
},
|
2024-10-09 09:42:00 +03:00
|
|
|
"iCalUID": "7rfbn0fb8nai4i7v4l435tgl1c@google.com",
|
2024-09-29 21:40:58 +03:00
|
|
|
"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
|
|
|
```
|