1
0
mirror of https://github.com/Bayselonarrend/OpenIntegrations.git synced 2026-05-22 10:05:29 +02:00
Files
OpenIntegrations/docs/en/md/Google_Calendar/Calendar-metadata-management/Get-calendar-metadata.mdx
T
Vitaly the Alpaca (bot) 294bd2e77c Main build (Jenkins)
2024-10-15 10:50:56 +03:00

53 lines
1.2 KiB
Plaintext

---
sidebar_position: 2
---
import Tabs from '@theme/Tabs';
import TabItem from '@theme/TabItem';
# Get calendar
Gets calendar information by ID
`Function GetCalendarMetadata(Val Token, Val Calendar) Export`
| Parameter | CLI option | Type | Description |
|-|-|-|-|
| Token | --token | String | Token |
| Calendar | --calendar | String | Calendar ID |
Returns: Map Of KeyAndValue - serialized JSON response from Google
<br/>
```bsl title="Code example"
Token = "ya29.a0AcM612zdAe2M8Ywdxt7xmK1VAAj2m3yjTdP1Ap8cFmqbE8lVngjIAujPtjc_c94MCuKNLfn7MSssBd6NfMXDQDrHMUv7Fgjp7cjuXk68n...";
Calendar = "2cd4d2b5dc7a898d4f1d65956b5ccca32841aff4a1603b373ff14db442ac9fab@group.calendar.google.com";
Result = OPI_GoogleCalendar.GetCalendarMetadata(Token, Calendar);
```
```json title="Result"
{
"kind": "calendar#calendar",
"etag": "\"TKmlUu-rCWvGCZLbQ4hTqd8_K3U\"",
"id": "48ff105e488eea0a588031479250116f2e769f150c2ca1274b7e79c4b057b46b@group.calendar.google.com",
"summary": "New name",
"description": "New description",
"timeZone": "Europe/Moscow",
"conferenceProperties": {
"allowedConferenceSolutionTypes": [
"hangoutsMeet"
]
}
}
```