mirror of
https://github.com/Bayselonarrend/OpenIntegrations.git
synced 2025-04-11 11:41:56 +02:00
79 lines
2.2 KiB
Plaintext
Vendored
79 lines
2.2 KiB
Plaintext
Vendored
---
|
|
sidebar_position: 3
|
|
---
|
|
|
|
import Tabs from '@theme/Tabs';
|
|
import TabItem from '@theme/TabItem';
|
|
|
|
# Edit calendar
|
|
Edits properties of an existing calendar
|
|
|
|
|
|
|
|
`Function EditCalendarMetadata(Val Token, Val Calendar, Val Name = "", Val Description = "") Export`
|
|
|
|
| Parameter | CLI option | Type | Required | Description |
|
|
|-|-|-|-|-|
|
|
| Token | --token | String | ✔ | Token |
|
|
| Calendar | --calendar | String | ✔ | Calendar ID |
|
|
| Name | --title | String | ✖ | New name |
|
|
| Description | --description | String | ✖ | New calendar description |
|
|
|
|
|
|
Returns: Map Of KeyAndValue - serialized JSON response from Google
|
|
|
|
<br/>
|
|
|
|
|
|
|
|
|
|
```bsl title="1C:Enterprise/OneScript code example"
|
|
Token = "ya29.a0ARW5m77a_UJFBB7n_sa8IAV8ycWLvz55tDaGZ7CsG1xiFYCSMm_kCJknxrGekLItp4p6eF054EBz7apAKFGnuUYhTJMy2lu6N7NTFAvHM...";
|
|
Calendar = "d5b99f918ddb915db60bfaef45db5e1f403c459fb421f43c87c4e9ad25509814@group.calendar.google.com";
|
|
Name = "New name";
|
|
Description = "New description";
|
|
|
|
Result = OPI_GoogleCalendar.EditCalendarMetadata(Token, Calendar, Name, Description);
|
|
```
|
|
|
|
|
|
<Tabs>
|
|
|
|
<TabItem value="bash" label="Bash" default>
|
|
```bash
|
|
oint gcalendar EditCalendarMetadata \
|
|
--token "***" \
|
|
--calendar "15ee9212025b862d88f66003d538b7124c89a88d4e1dcc56473fae7b6ce2fba5@group.calendar.google.com" \
|
|
--title "New name" \
|
|
--description "New description"
|
|
```
|
|
</TabItem>
|
|
|
|
<TabItem value="bat" label="CMD/Bat" default>
|
|
```batch
|
|
oint gcalendar EditCalendarMetadata ^
|
|
--token "***" ^
|
|
--calendar "15ee9212025b862d88f66003d538b7124c89a88d4e1dcc56473fae7b6ce2fba5@group.calendar.google.com" ^
|
|
--title "New name" ^
|
|
--description "New description"
|
|
```
|
|
</TabItem>
|
|
</Tabs>
|
|
|
|
|
|
```json title="Result"
|
|
{
|
|
"kind": "calendar#calendar",
|
|
"etag": "\"TKmlUu-rCWvGCZLbQ4hTqd8_K3U\"",
|
|
"id": "48ff105e488eea0a588031479250116f2e769f150c2ca1274b7e79c4b057b46b@group.calendar.google.com",
|
|
"summary": "New name",
|
|
"description": "New description",
|
|
"timeZone": "Europe/Moscow",
|
|
"conferenceProperties": {
|
|
"allowedConferenceSolutionTypes": [
|
|
"hangoutsMeet"
|
|
]
|
|
}
|
|
}
|
|
```
|