mirror of
https://github.com/Bayselonarrend/OpenIntegrations.git
synced 2025-04-25 12:24:39 +02:00
66 lines
1.2 KiB
Plaintext
66 lines
1.2 KiB
Plaintext
---
|
|
sidebar_position: 1
|
|
---
|
|
|
|
import Tabs from '@theme/Tabs';
|
|
import TabItem from '@theme/TabItem';
|
|
|
|
# Open dialog
|
|
Opens a new dialog with one or more users
|
|
|
|
|
|
|
|
`Function OpenDialog(Val Token, Val ArrayOfUsers) Export`
|
|
|
|
| Parameter | CLI option | Type | Required | Description |
|
|
|-|-|-|-|-|
|
|
| Token | --token | String | ✔ | Bot token |
|
|
| ArrayOfUsers | --users | Array of String | ✔ | User ID Array |
|
|
|
|
|
|
Returns: Map Of KeyAndValue - serialized JSON response from Slack
|
|
|
|
<br/>
|
|
|
|
|
|
|
|
|
|
```bsl title="1C:Enterprise/OneScript code example"
|
|
Token = "xoxb-6965308400114-696804637...";
|
|
User = "U06UABH3APP";
|
|
|
|
Result = OPI_Slack.OpenDialog(Token, User);
|
|
```
|
|
|
|
|
|
<Tabs>
|
|
|
|
<TabItem value="bash" label="Bash" default>
|
|
```bash
|
|
oint slack OpenDialog \
|
|
--token "***" \
|
|
--users "U06UABH3APP"
|
|
```
|
|
</TabItem>
|
|
|
|
<TabItem value="bat" label="CMD/Bat" default>
|
|
```batch
|
|
oint slack OpenDialog ^
|
|
--token "***" ^
|
|
--users "U06UABH3APP"
|
|
```
|
|
</TabItem>
|
|
</Tabs>
|
|
|
|
|
|
```json title="Result"
|
|
{
|
|
"ok": true,
|
|
"no_op": false,
|
|
"already_open": false,
|
|
"channel": {
|
|
"id": "D06UAKK1C6R"
|
|
}
|
|
}
|
|
```
|