Edit list calendar
Edits the properties of a calendar from the user's list
- Parameters
- Advanced call ?
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
| Parameter | Description |
|---|---|
| proxy | InternetProxy or a structure with fields Protocol, Host, Port, User, Password, UseOSAuthentication |
| timeout | Request execution timeout |
| adv_response | Formats the response as a complete structure with fields code, body, and headers |
1C:Enterprise/OneScript code example
Token = "ya29.a0ATi6K2sWW_31WLH0d9aK0qk0HJ-UfyvZDcLeBbF5bLU7QH09Bx2pXAupIw40USQVaxXqsovItVSt9swWuPdBDSA0eFaVPE0CbaU2OLQlyrnITI1VVXgZ_Gx2R...";
Calendar = "f70efec034ef36b040f12b5d8938e54fc399d73cd37b8e765bdd86ebc4a67e4a@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 "1b2300fc571365e45748fcaa9bf42064b6f3881405ca86ffc2bae5e73d8e3d42@group.calendar.google.com" \
--primary "#000000" \
--secondary "#ffd800" \
--hidden false
oint gcalendar EditListCalendar ^
--token "***" ^
--calendar "1b2300fc571365e45748fcaa9bf42064b6f3881405ca86ffc2bae5e73d8e3d42@group.calendar.google.com" ^
--primary "#000000" ^
--secondary "#ffd800" ^
--hidden false
Result
{
"kind": "calendar#calendarListEntry",
"etag": "\"1777722931946607\"",
"id": "1b2300fc571365e45748fcaa9bf42064b6f3881405ca86ffc2bae5e73d8e3d42@group.calendar.google.com",
"summary": "New name",
"description": "New description",
"timeZone": "Europe/Moscow",
"dataOwner": "bayselonarrend@gmail.com",
"colorId": "6",
"backgroundColor": "#ffd800",
"foregroundColor": "#000000",
"accessRole": "owner",
"defaultReminders": [],
"conferenceProperties": {
"allowedConferenceSolutionTypes": [
"hangoutsMeet"
]
}
}