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.a0ARW5m7702-Ib_bOq69krqD5iUx89SC2lxGPxRJoBjqvSBqE7uKghOyAjwrL7ebNf6xqPzwD4wQfZlFvBrb7QsWlw5PGW_SvkFr57Y8Js...";
Calendar = "35e16313ea8eb86838be4408e9ebe8797c14e8b6e54a633ac7580fcbac4a51f6@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 "fb73fc4b6eba9e27c8c1feeb66a66e2d80659bc92c38f1479d3731e2aac5bf6a@group.calendar.google.com" \
--primary "#000000" \
--secondary "#ffd800" \
--hidden false
oint gcalendar EditListCalendar ^
--token "***" ^
--calendar "fb73fc4b6eba9e27c8c1feeb66a66e2d80659bc92c38f1479d3731e2aac5bf6a@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"
]
}
}