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.a0AQQ_BDTgQbn9c5rXhPK3FCakms_7oKkdIWE1CCQFnSPftb2RxvloVqnYOcnsAKhXrD0Gq8Tz2Kgn5IBXG5E25uksZfvvTtXob-jFcuj_9LZYs9La4HrcFk766...";
Calendar = "a9168079abee0b7314a77e16ec7ada0ae393cdd389a6f4a8d3f4501aa958f8e9@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 "244c263f0b49afbd4c3b6e3f2a868d17707d98a79c4568c0c043803478eff6b7@group.calendar.google.com" \
--primary "#000000" \
--secondary "#ffd800" \
--hidden false
oint gcalendar EditListCalendar ^
--token "***" ^
--calendar "244c263f0b49afbd4c3b6e3f2a868d17707d98a79c4568c0c043803478eff6b7@group.calendar.google.com" ^
--primary "#000000" ^
--secondary "#ffd800" ^
--hidden false
Result
{
"kind": "calendar#calendarListEntry",
"etag": "\"1757975364376287\"",
"id": "244c263f0b49afbd4c3b6e3f2a868d17707d98a79c4568c0c043803478eff6b7@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"
]
}
}