Get list calendar
Gets a calendar from the user's list by ID
Function GetListCalendar(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.a0AXeO80QmRD8H3PJ7Q4W_FrA0bUXT3qbvoufjrR5yC_gGUX-q8hpGM_XhHS1OMwb9Q7jPt-2h_AXtmWA2G27GIhpl6szrH7zn4IyFnnDp1...";
Calendar = "37a35af2f6c73c2d5ce643b8f2e2f887893a19f96cbc2df7de6190f86c1bad91@group.calendar.google.com";
Result = OPI_GoogleCalendar.GetListCalendar(Token, Calendar);
- Bash
- CMD/Bat
oint gcalendar GetListCalendar \
--token "***" \
--calendar "86fa9c73eec2037c4772e48b172e7b1e9c32d1aca22462299cdc7fb21e662958@group.calendar.google.com"
oint gcalendar GetListCalendar ^
--token "***" ^
--calendar "86fa9c73eec2037c4772e48b172e7b1e9c32d1aca22462299cdc7fb21e662958@group.calendar.google.com"
Result
{
"kind": "calendar#calendarListEntry",
"etag": "\"1728454322717000\"",
"id": "48ff105e488eea0a588031479250116f2e769f150c2ca1274b7e79c4b057b46b@group.calendar.google.com",
"summary": "New name",
"description": "New description",
"timeZone": "Europe/Moscow",
"colorId": "6",
"backgroundColor": "#ffd800",
"foregroundColor": "#000000",
"accessRole": "owner",
"defaultReminders": [],
"conferenceProperties": {
"allowedConferenceSolutionTypes": [
"hangoutsMeet"
]
}
}