You've already forked OpenIntegrations
mirror of
https://github.com/Bayselonarrend/OpenIntegrations.git
synced 2026-05-22 10:05:29 +02:00
55 lines
1.0 KiB
Plaintext
55 lines
1.0 KiB
Plaintext
---
|
|
sidebar_position: 4
|
|
---
|
|
|
|
import Tabs from '@theme/Tabs';
|
|
import TabItem from '@theme/TabItem';
|
|
|
|
# Clear primary calendar
|
|
Clears the event list of the primary calendar
|
|
|
|
|
|
|
|
`Function ClearMainCalendar(Val Token) Export`
|
|
|
|
| Parameter | CLI option | Type | Required | Description |
|
|
|-|-|-|-|-|
|
|
| Token | --token | String | ✔ | Token |
|
|
|
|
|
|
Returns: Map Of KeyAndValue - serialized JSON response from Google
|
|
|
|
<br/>
|
|
|
|
|
|
|
|
|
|
```bsl title="1C:Enterprise/OneScript code example"
|
|
Token = "ya29.a0AeDClZCrm1MZHZ7BZZhmGUkC6-tSjQ017rdAe6NQ77UgRX3csJv_nTfO5w5K1-LtaFFgymMCfbizB9uj7gUW5ozQ9rUqO__ZmRd-q5zyS...";
|
|
|
|
Result = OPI_GoogleCalendar.ClearMainCalendar(Token);
|
|
```
|
|
|
|
|
|
<Tabs>
|
|
|
|
<TabItem value="bash" label="Bash" default>
|
|
```bash
|
|
oint gcalendar ClearMainCalendar \
|
|
--token "***"
|
|
```
|
|
</TabItem>
|
|
|
|
<TabItem value="bat" label="CMD/Bat" default>
|
|
```batch
|
|
oint gcalendar ClearMainCalendar ^
|
|
--token "***"
|
|
```
|
|
</TabItem>
|
|
</Tabs>
|
|
|
|
|
|
```json title="Result"
|
|
null
|
|
```
|