1
0
mirror of https://github.com/Bayselonarrend/OpenIntegrations.git synced 2024-12-21 01:50:24 +02:00
OpenIntegrations/docs/en/md/Google_Calendar/Calendar-list-management/Get-list-calendar.md

62 lines
1.2 KiB
Markdown
Raw Normal View History

---
sidebar_position: 3
---
# Get list calendar
Gets a calendar from the user's list by ID
<br/>
2024-07-10 12:58:29 +02:00
`Function GetListCalendar(Val Token, Val Calendar) Export`
| Parameter | CLI option | Type | Destination |
|-|-|-|-|
| Token | --token | String | Token |
| Calendar | --calendar | String | Calendar ID |
Returns: Map Of KeyAndValue - serialized JSON response from Google
2024-07-10 13:05:58 +02:00
<br/>
2024-07-10 12:58:29 +02:00
```bsl title="Code example"
Response = OPI_GoogleCalendar.GetListCalendar(Token, "55868c32be16935f0..."); //Map
Response = OPI_Tools.JSONString(Response); //String
```
```sh title="CLI command example"
oint gcalendar GetListCalendar --token %token% --calendar %calendar%
```
```json title="Result"
{
"conferenceProperties": {
"allowedConferenceSolutionTypes": [
"hangoutsMeet"
]
},
"accessRole": "owner",
"foregroundColor": "#000000",
"backgroundColor": "#ffd800",
"colorId": "6",
"description": "TestDescription",
"summary": "TestCalendar (change.)",
"defaultReminders": [],
"timeZone": "UTC",
"id": "f0fad8c7db43ef0adb71cbf035eb08cf80d8f8d51ba31fa86f4d5680dc2e9725@group.calendar.google.com",
"etag": "\"1708423563386000\"",
"kind": "calendar#calendarListEntry"
}
```