1
0
mirror of https://github.com/Bayselonarrend/OpenIntegrations.git synced 2025-04-13 11:50:53 +02:00

80 lines
1.6 KiB
Markdown
Raw Normal View History

---
sidebar_position: 5
---
# Get channel
Gets information about the channel
2024-07-10 13:58:29 +03:00
`Function GetChannel(Val Token, Val Channel) Export`
| Parameter | CLI option | Type | Description |
|-|-|-|-|
| Token | --token | String | Bot token |
| Channel | --channel | String | Channel ID |
2024-10-09 09:42:00 +03:00
Returns: Map Of KeyAndValue - serialized JSON response from Slack
2024-07-10 14:05:58 +03:00
<br/>
2024-07-10 13:58:29 +03:00
```bsl title="Code example"
2024-09-29 17:27:25 +03:00
Token = "xoxb-6965308400114-696804637...";
2024-10-15 10:07:27 +03:00
Channel = "C07R7MSSPDM";
2024-09-29 17:27:25 +03:00
Result = OPI_Slack.GetChannel(Token, Channel);
```
2024-10-15 09:53:37 +03:00
```json title="Result"
2024-08-14 09:06:31 +03:00
{
2024-10-06 16:55:08 +03:00
"ok": true,
"channel": {
2024-10-09 09:42:00 +03:00
"id": "C07R448PZJ8",
"name": "testconv2383f9a9-fc9f-4928-ba19-511c3b7e9c66",
"is_channel": true,
"is_group": false,
"is_im": false,
"is_mpim": false,
"is_private": false,
2024-10-09 09:42:00 +03:00
"created": 1728454513,
"is_archived": false,
"is_general": false,
"unlinked": 0,
2024-10-09 09:42:00 +03:00
"name_normalized": "testconv2383f9a9-fc9f-4928-ba19-511c3b7e9c66",
"is_shared": false,
"is_org_shared": false,
"is_pending_ext_shared": false,
"pending_shared": [],
"context_team_id": "T06UD92BS3C",
2024-10-09 09:42:00 +03:00
"updated": 1728454514526,
"parent_conversation": null,
"creator": "U06UG1CAYH2",
"is_ext_shared": false,
"shared_team_ids": [
2024-10-06 16:55:08 +03:00
"T06UD92BS3C"
],
"pending_connected_team_ids": [],
"is_member": true,
"last_read": "0000000000.000000",
"topic": {
2024-10-06 16:55:08 +03:00
"value": "TestTopic",
"creator": "U06UG1CAYH2",
2024-10-09 09:42:00 +03:00
"last_set": 1728454514
},
"purpose": {
2024-10-06 16:55:08 +03:00
"value": "TestGoal",
"creator": "U06UG1CAYH2",
2024-10-09 09:42:00 +03:00
"last_set": 1728454514
},
"previous_names": []
2024-10-06 16:55:08 +03:00
}
}
```