Skip to main content

Get calendar

Gets calendar information by ID

Function GetCalendarMetadata(Val Token, Val Calendar) Export

ParameterCLI optionTypeRequiredDescription
Token--tokenStringToken
Calendar--calendarStringCalendar ID

Returns: Map Of KeyAndValue - serialized JSON response from Google


1C:Enterprise/OneScript code example
    Token    = "ya29.a0AW4XtxhtghlL7aK7VhJX0jOgNWau4CUoOEDkQBr4uJEjPidCjKm-4r4l7AoJnODBt7yblowJtvv_3vETd6CulW4V5zxxPx8TTvQAMESj7...";
Calendar = "fe4bd80b7ead13d35f71c0ac29e9e95ab721e9292cb911fef6947f71ac87df84@group.calendar.google.com";

Result = OPI_GoogleCalendar.GetCalendarMetadata(Token, Calendar);
    oint gcalendar GetCalendarMetadata \
--token "***" \
--calendar "011d8cbafe64119ed6fd3af2b152cdb8fa5e238308392c96168cf3c2e203cca3@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"
]
}
}