1
0
mirror of https://github.com/Bayselonarrend/OpenIntegrations.git synced 2025-02-09 13:47:03 +02:00

45 lines
998 B
Markdown
Raw Normal View History

---
sidebar_position: 3
---
# Get event
Gets an event by ID
2024-07-10 13:58:29 +03:00
`Function GetEvent(Val Token, Val Calendar, Val Event) Export`
| Parameter | CLI option | Type | Description |
|-|-|-|-|
| Token | --token | String | Token |
| Calendar | --calendar | String | Calendar ID |
| Event | --event | String | Event ID |
Returns: Map Of KeyAndValue - serialized JSON response from Google
2024-07-10 14:05:58 +03:00
<br/>
2024-07-10 13:58:29 +03:00
```bsl title="Code example"
2024-09-29 17:35:23 +03:00
Token = "ya29.a0AcM612wLdbBK14FR2SE0d3WHabYb8Xtppm0oKCcbVrecgsA-a5DfsgZ29stOw4hu84F_IpHbKTJocsm1WpjLQPBT5MJ6p8D7H1PKa_iT0...";
Calendar = "1b68863d126f9c4d9e971c673e25f6601a9622beafbcc10913cd78120c755c6a@group.calendar.google.com";
Event = "h51qr9dclbnie1hh633er26umo";
2024-09-28 16:17:37 +03:00
Result = OPI_GoogleCalendar.GetEvent(Token, Calendar, Event);
```
```sh title="CLI command example"
oint gcalendar GetEvent --token %token% --calendar %calendar% --event %event%
```
```json title="Result"
2024-09-29 17:27:25 +03:00
```