You've already forked OpenIntegrations
mirror of
https://github.com/Bayselonarrend/OpenIntegrations.git
synced 2026-05-22 10:05:29 +02:00
57 lines
1.5 KiB
Plaintext
57 lines
1.5 KiB
Plaintext
---
|
|
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.a0AcM612zdAe2M8Ywdxt7xmK1VAAj2m3yjTdP1Ap8cFmqbE8lVngjIAujPtjc_c94MCuKNLfn7MSssBd6NfMXDQDrHMUv7Fgjp7cjuXk68n...";
|
|
Calendar = "2cd4d2b5dc7a898d4f1d65956b5ccca32841aff4a1603b373ff14db442ac9fab@group.calendar.google.com";
|
|
Name = "New name";
|
|
Description = "New description";
|
|
|
|
Result = OPI_GoogleCalendar.EditCalendarMetadata(Token, Calendar, Name, Description);
|
|
```
|
|
|
|
|
|
|
|
|
|
```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"
|
|
]
|
|
}
|
|
}
|
|
```
|