You've already forked OpenIntegrations
mirror of
https://github.com/Bayselonarrend/OpenIntegrations.git
synced 2026-05-22 10:05:29 +02:00
59 lines
1.4 KiB
Plaintext
59 lines
1.4 KiB
Plaintext
---
|
|
sidebar_position: 5
|
|
---
|
|
|
|
import Tabs from '@theme/Tabs';
|
|
import TabItem from '@theme/TabItem';
|
|
|
|
# Delete calendar
|
|
Deletes a calendar by ID
|
|
|
|
|
|
|
|
`Function DeleteCalendar(Val Token, Val Calendar) Export`
|
|
|
|
| Parameter | CLI option | Type | Required | Description |
|
|
|-|-|-|-|-|
|
|
| Token | --token | String | ✔ | Token |
|
|
| Calendar | --calendar | String | ✔ | Calendar ID |
|
|
|
|
|
|
Returns: Map Of KeyAndValue - serialized JSON response from Google
|
|
|
|
<br/>
|
|
|
|
|
|
|
|
|
|
```bsl title="1C:Enterprise/OneScript code example"
|
|
Token = "ya29.a0AeDClZCyyq2tOx0JRD_XVIaMyzhn2uw2tXz5q_8IavFpdrB2btMzTnCCZO3k0K-cq5rv7dXqrg2-ddLdFJqrq0HqLeTkWJkeFqI6iaoCX...";
|
|
Calendar = "f0d578a23e39bff6bc6eb72747799f6540afab06e821ef8b5b02a092ab99176e@group.calendar.google.com";
|
|
|
|
Result = OPI_GoogleCalendar.DeleteCalendar(Token, Calendar);
|
|
```
|
|
|
|
|
|
<Tabs>
|
|
|
|
<TabItem value="bash" label="Bash" default>
|
|
```bash
|
|
oint gcalendar DeleteCalendar \
|
|
--token "***" \
|
|
--calendar "b7ccbbb67f2f75de15a1ac316d51d42ef92157041947363aed9f41b087aad64b@group.calendar.google.com"
|
|
```
|
|
</TabItem>
|
|
|
|
<TabItem value="bat" label="CMD/Bat" default>
|
|
```batch
|
|
oint gcalendar DeleteCalendar ^
|
|
--token "***" ^
|
|
--calendar "b7ccbbb67f2f75de15a1ac316d51d42ef92157041947363aed9f41b087aad64b@group.calendar.google.com"
|
|
```
|
|
</TabItem>
|
|
</Tabs>
|
|
|
|
|
|
```json title="Result"
|
|
null
|
|
```
|