Edit list calendar
Edits the properties of a calendar from the user's list
Function EditListCalendar(Val Token, Val Calendar, Val PrimaryColor, Val SecondaryColor, Val Hidden = False) Export
Parameter | CLI option | Type | Required | Description |
---|---|---|---|---|
Token | --token | String | ✔ | Token |
Calendar | --calendar | String | ✔ | Calendar ID |
PrimaryColor | --primary | String | ✔ | HEX primary color (#ffffff) |
SecondaryColor | --secondary | String | ✔ | HEX secondary color (#ffffff) |
Hidden | --hidden | Boolean | ✖ | Hidden calendar |
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";
PrimaryColor = "#000000";
SecondaryColor = "#ffd800";
Hidden = False;
Result = OPI_GoogleCalendar.EditListCalendar(Token
, Calendar
, PrimaryColor
, SecondaryColor
, Hidden);
- Bash
- CMD/Bat
oint gcalendar EditListCalendar \
--token "***" \
--calendar "86fa9c73eec2037c4772e48b172e7b1e9c32d1aca22462299cdc7fb21e662958@group.calendar.google.com" \
--primary "#000000" \
--secondary "#ffd800" \
--hidden false
oint gcalendar EditListCalendar ^
--token "***" ^
--calendar "86fa9c73eec2037c4772e48b172e7b1e9c32d1aca22462299cdc7fb21e662958@group.calendar.google.com" ^
--primary "#000000" ^
--secondary "#ffd800" ^
--hidden false
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"
]
}
}