1
0
mirror of https://github.com/Bayselonarrend/OpenIntegrations.git synced 2025-04-11 11:41:56 +02:00
Vitaly the Alpaca (bot) f11b827c12 Main build (Jenkins)
2025-02-19 16:19:57 +03:00

63 lines
1.5 KiB
Plaintext
Vendored

---
sidebar_position: 4
---
import Tabs from '@theme/Tabs';
import TabItem from '@theme/TabItem';
# Delete comment
Deletes comment by ID
`Function DeleteComment(Val Token, Val ObjectID, Val CommentID) Export`
| Parameter | CLI option | Type | Required | Description |
|-|-|-|-|-|
| Token | --token | String | ✔ | Token |
| ObjectID | --object | String | ✔ | Identifier of the file or directory where the comment is located |
| CommentID | --comment | String | ✔ | Comment identifier |
Returns: Map Of KeyAndValue - serialized JSON response from Google
<br/>
```bsl title="1C:Enterprise/OneScript code example"
Token = "ya29.a0AXeO80QmRD8H3PJ7Q4W_FrA0bUXT3qbvoufjrR5yC_gGUX-q8hpGM_XhHS1OMwb9Q7jPt-2h_AXtmWA2G27GIhpl6szrH7zn4IyFnnDp1...";
Identifier = "1KBkCrnbtPL9j-XfOlI8_-Ioq-AIAzJLI";
CommentID = "AAABeVMWVNg";
Result = OPI_GoogleDrive.DeleteComment(Token, Identifier, CommentID);
```
<Tabs>
<TabItem value="bash" label="Bash" default>
```bash
oint gdrive DeleteComment \
--token "***" \
--object "1xQGRAN3XpDcJ_zUQkHKbljz5Wa-S_IOg" \
--comment "AAABeV9tSJk"
```
</TabItem>
<TabItem value="bat" label="CMD/Bat" default>
```batch
oint gdrive DeleteComment ^
--token "***" ^
--object "1xQGRAN3XpDcJ_zUQkHKbljz5Wa-S_IOg" ^
--comment "AAABeV9tSJk"
```
</TabItem>
</Tabs>
```json title="Result"
null
```