You've already forked OpenIntegrations
mirror of
https://github.com/Bayselonarrend/OpenIntegrations.git
synced 2026-05-22 10:05:29 +02:00
1.4 KiB
1.4 KiB
sidebar_position
| sidebar_position |
|---|
| 2 |
Add calendar to list
Adds an existing calendar to the user's list
Function AddCalendarToList(Val Token, Val Calendar) Export
| Parameter | CLI option | Type | Description |
|---|---|---|---|
| Token | --token | String | Token |
| Calendar | --calendar | String | Calendar ID |
Returns: Map Of KeyAndValue - serialized JSON response from Google
Token = "ya29.a0AcM612z6H4poMFq_1-p1k1-QF7c-gwUkVSsqTdSkNphsLEOb5P6mIEka1HO6Qtpa8blAWg966f9g85FujqfIsORbwU-wVy_3xEHh5ycBg...";
Calendar = "1b68863d126f9c4d9e971c673e25f6601a9622beafbcc10913cd78120c755c6a@group.calendar.google.com";
Result = OPI_GoogleCalendar.AddCalendarToList(Token, Calendar);
oint gcalendar AddCalendarToList --token %token% --calendar %calendar%
{
"conferenceProperties": {
"allowedConferenceSolutionTypes": [
"hangoutsMeet"
]
},
"accessRole": "owner",
"selected": true,
"foregroundColor": "#000000",
"backgroundColor": "#7bd148",
"colorId": "9",
"description": "TestDescription",
"summary": "TestCalendar (change.)",
"defaultReminders": [],
"timeZone": "UTC",
"id": "f0fad8c7db43ef0adb71cbf035eb08cf80d8f8d51ba31fa86f4d5680dc2e9725@group.calendar.google.com",
"etag": "\"1708423365033000\"",
"kind": "calendar#calendarListEntry"
}