1
0
mirror of https://github.com/Bayselonarrend/OpenIntegrations.git synced 2025-11-06 08:49:29 +02:00

Создание MD файлов документации

This commit is contained in:
Vitaly the Alpaca
2024-06-05 10:19:46 +00:00
committed by Vitaly the Alpaca (bot)
parent 9c2d012d41
commit 09822c04ec
597 changed files with 41032 additions and 41032 deletions

View File

@@ -1,47 +1,47 @@
---
sidebar_position: 2
---
# Close dialog
Closes an existing dialog
*Function CloseDialog(Val Token, Val Dialog) Export*
| Parameter | CLI option | Type | Destination |
|-|-|-|-|
| Token | --token | String | Bot token |
| Dialog | --conv | String | Dialog ID |
Returns: Key-Value Pair - Serialized JSON response from Slack
```bsl title="Code example"
Dialog = "D06UAKK1C6R";
Response = OPI_Slack.CloseDialog(Token, Dialog); //Map
Response = OPI_Tools.JSONString(Response); //JSON string
```
```sh title="CLI command example"
oint slack CloseDialog --token %token% --conv "D06UAKK1C6R"
```
```json title="Result"
{
"ok": true,
"already_closed": false,
"no_op": false
}
```
---
sidebar_position: 2
---
# Close dialog
Closes an existing dialog
*Function CloseDialog(Val Token, Val Dialog) Export*
| Parameter | CLI option | Type | Destination |
|-|-|-|-|
| Token | --token | String | Bot token |
| Dialog | --conv | String | Dialog ID |
Returns: Key-Value Pair - Serialized JSON response from Slack
```bsl title="Code example"
Dialog = "D06UAKK1C6R";
Response = OPI_Slack.CloseDialog(Token, Dialog); //Map
Response = OPI_Tools.JSONString(Response); //JSON string
```
```sh title="CLI command example"
oint slack CloseDialog --token %token% --conv "D06UAKK1C6R"
```
```json title="Result"
{
"ok": true,
"already_closed": false,
"no_op": false
}
```

View File

@@ -1,52 +1,52 @@
---
sidebar_position: 1
---
# Open dialog
Opens a new dialog with one or more users
*Function OpenDialog(Val Token, Val ArrayOfUsers) Export*
| Parameter | CLI option | Type | Destination |
|-|-|-|-|
| Token | --token | String | Bot token |
| ArrayOfUsers | --users | Array of String | User ID Array |
Returns: Key-Value Pair - Serialized JSON response from Slack
```bsl title="Code example"
ArrayOfUsers = New Array;
ArrayOfUsers.Add("U123456");
ArrayOfUsers.Add("U654321");
Response = OPI_Slack.OpenDialog(Token, ArrayOfUsers); //Map
Response = OPI_Tools.JSONString(Response); //JSON string
```
```sh title="CLI command example"
oint slack OpenDialog --token %token% --users %users%
```
```json title="Result"
{
"ok": true,
"no_op": false,
"already_open": false,
"channel": {
"id": "D06UAKK1C6R"
}
}
```
---
sidebar_position: 1
---
# Open dialog
Opens a new dialog with one or more users
*Function OpenDialog(Val Token, Val ArrayOfUsers) Export*
| Parameter | CLI option | Type | Destination |
|-|-|-|-|
| Token | --token | String | Bot token |
| ArrayOfUsers | --users | Array of String | User ID Array |
Returns: Key-Value Pair - Serialized JSON response from Slack
```bsl title="Code example"
ArrayOfUsers = New Array;
ArrayOfUsers.Add("U123456");
ArrayOfUsers.Add("U654321");
Response = OPI_Slack.OpenDialog(Token, ArrayOfUsers); //Map
Response = OPI_Tools.JSONString(Response); //JSON string
```
```sh title="CLI command example"
oint slack OpenDialog --token %token% --users %users%
```
```json title="Result"
{
"ok": true,
"no_op": false,
"already_open": false,
"channel": {
"id": "D06UAKK1C6R"
}
}
```

View File

@@ -1,4 +1,4 @@
{
"label": "Dialog management",
"position": "5"
}
{
"label": "Dialog management",
"position": "5"
}