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.a0ATi6K2sWW_31WLH0d9aK0qk0HJ-UfyvZDcLeBbF5bLU7QH09Bx2pXAupIw40USQVaxXqsovItVSt9swWuPdBDSA0eFaVPE0CbaU2OLQlyrnITI1VVXgZ_Gx2R...";
Calendar = "f70efec034ef36b040f12b5d8938e54fc399d73cd37b8e765bdd86ebc4a67e4a@group.calendar.google.com";

Result = OPI_GoogleCalendar.GetCalendarMetadata(Token, Calendar);
oint gcalendar GetCalendarMetadata \
--token "***" \
--calendar "1b2300fc571365e45748fcaa9bf42064b6f3881405ca86ffc2bae5e73d8e3d42@group.calendar.google.com"
Result
{
"kind": "calendar#calendar",
"etag": "\"yWp8ofaIsmK-27-cubGOlz4qXjA\"",
"id": "1b2300fc571365e45748fcaa9bf42064b6f3881405ca86ffc2bae5e73d8e3d42@group.calendar.google.com",
"summary": "New name",
"description": "New description",
"timeZone": "Europe/Moscow",
"dataOwner": "bayselonarrend@gmail.com",
"conferenceProperties": {
"allowedConferenceSolutionTypes": [
"hangoutsMeet"
]
}
}