Get calendar
Gets calendar information by ID
Function GetCalendarMetadata(Val Token, Val Calendar) Export
Parameter | CLI option | Type | Required | Description |
---|---|---|---|---|
Token | --token | String | ✔ | Token |
Calendar | --calendar | String | ✔ | Calendar ID |
Returns: Map Of KeyAndValue - serialized JSON response from Google
1C:Enterprise/OneScript code example
Token = "ya29.a0AS3H6Nw6rTG3pFXv17ZLXkvuvtNl_DHHXbxe2yDRIB09Sq-BA7xPQj9V7OKAaAiHRZAsVqI0UD6026Q_3gklXjU-kam0kzFCe2adXI3lS...";
Calendar = "b4cd7b78fa45f2448bc045fe33639a9322a4851ff48d6eaa6dfbc2f95a6410d5@group.calendar.google.com";
Result = OPI_GoogleCalendar.GetCalendarMetadata(Token, Calendar);
- Bash
- CMD/Bat
oint gcalendar GetCalendarMetadata \
--token "***" \
--calendar "b3dba3347566c1a36321c18f00d19528bad8361a66f900c95dcb511bfef48d24@group.calendar.google.com"
oint gcalendar GetCalendarMetadata ^
--token "***" ^
--calendar "b3dba3347566c1a36321c18f00d19528bad8361a66f900c95dcb511bfef48d24@group.calendar.google.com"
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"
]
}
}