Skip to main content

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

ParameterCLI optionTypeRequiredDescription
Token--tokenStringToken
Calendar--calendarStringCalendar ID
PrimaryColor--primaryStringHEX primary color (#ffffff)
SecondaryColor--secondaryStringHEX secondary color (#ffffff)
Hidden--hiddenBooleanHidden calendar

Returns: Map Of KeyAndValue - serialized JSON response from Google


1C:Enterprise/OneScript code example
    Token          = "ya29.a0ATi6K2tVhkOEu91I_FKDEZ7_olNcPRKrwKbGh7GiFIzwDZjaTNm46ErGj-Lju2am1aAUurgQyVnv0f3G4L7keHSXYNhuCPGvTvzjRdPQJNz_0LzKWjviK54u4...";
Calendar = "27c0997a94ab1fa7a33cc8e22f5286319a5d71143235f31fcce71adf79941e8a@group.calendar.google.com";
PrimaryColor = "#000000";
SecondaryColor = "#ffd800";
Hidden = False;

Result = OPI_GoogleCalendar.EditListCalendar(Token, Calendar, PrimaryColor, SecondaryColor, Hidden);
    oint gcalendar EditListCalendar \
--token "***" \
--calendar "58434dac63f178941271c6f64ea729cfdd7865c8c40d3232bdfbcdca5b1b7178@group.calendar.google.com" \
--primary "#000000" \
--secondary "#ffd800" \
--hidden false
Result
{
"kind": "calendar#calendarListEntry",
"etag": "\"1761910993063839\"",
"id": "72ac20d9320f93d32804e4499a91e6adc6b4774d35a6258d9b601ec9b8979dc1@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"
]
}
}