1
0
mirror of https://github.com/Bayselonarrend/OpenIntegrations.git synced 2024-12-18 23:48:56 +02:00
OpenIntegrations/docs/en/md/Google_Calendar/Calendar-list-management/Edit-list-calendar.md
2024-07-10 14:33:00 +03:00

1.6 KiB

sidebar_position
5

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 Destination
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


 
 
 Black = "#000000";
 Yellow = "#ffd800";
 
 Response = OPI_GoogleCalendar.EditListCalendar(Token, "55868c32be16935f0...", Black, Yellow, False); //Map
 Response = OPI_Tools.JSONString(Response); //String
 
 oint gcalendar EditListCalendar --token %token% --calendar %calendar% --primary %primary% --secondary %secondary% --hidden %hidden%

{
 "conferenceProperties": {
 "allowedConferenceSolutionTypes": [
 "hangoutsMeet"
 ]
 },
 "accessRole": "owner",
 "foregroundColor": "#000000",
 "backgroundColor": "#ffd800",
 "colorId": "6",
 "description": "TestDescription",
 "summary": "TestCalendar (change.)",
 "defaultReminders": [],
 "timeZone": "UTC",
 "id": "0da65d69eba1e4b27f980447827b251ca2d94ecb1d30dba22c83559c33d0ea29@group.calendar.google.com",
 "etag": "\"1708424005038000\"",
 "kind": "calendar#calendarListEntry"
 }