You've already forked OpenIntegrations
mirror of
https://github.com/Bayselonarrend/OpenIntegrations.git
synced 2026-05-22 10:05:29 +02:00
1.7 KiB
1.7 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.a0AcM612zdAe2M8Ywdxt7xmK1VAAj2m3yjTdP1Ap8cFmqbE8lVngjIAujPtjc_c94MCuKNLfn7MSssBd6NfMXDQDrHMUv7Fgjp7cjuXk68n...";
Calendar = "2cd4d2b5dc7a898d4f1d65956b5ccca32841aff4a1603b373ff14db442ac9fab@group.calendar.google.com";
PrimaryColor = "#000000";
SecondaryColor = "#ffd800";
Hidden = False;
Result = OPI_GoogleCalendar.EditListCalendar(Token
, Calendar
, PrimaryColor
, SecondaryColor
, 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"
]
}
}