1
0
mirror of https://github.com/Bayselonarrend/OpenIntegrations.git synced 2026-05-22 10:05:29 +02:00
Files
OpenIntegrations/docs/en/md/Google_Calendar/Calendar-list-management/Edit-list-calendar.md
T
Vitaly the Alpaca (bot) e975cf8626 Main build (Jenkins)
2024-10-12 23:29:51 +03:00

1.9 KiB

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


    Token          = "ya29.a0AcM612yQIsgMPiOdOLBSBoiVfcCBuJ5T9HRP5lB04ipL2jQDnyuXGmn-IkxMKqss53fPz99sXRoX3_ZJt6s_N7YSfVzI88y_uUa2euM32...";
    Calendar       = "cf73bcfa8a16eff552d6aa79a9610fdb38ec4db055ab1a0e3b93e32f8414f77c@group.calendar.google.com";
    PrimaryColor   = "#000000";
    SecondaryColor = "#ffd800";
    Hidden         = False;

    Result = OPI_GoogleCalendar.EditListCalendar(Token
        , Calendar
        , PrimaryColor
        , SecondaryColor
        , Hidden);
    
  oint gcalendar EditListCalendar --token %token% --calendar %calendar% --primary %primary% --secondary %secondary% --hidden %hidden%

{
 "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"
  ]
 }
}