You've already forked OpenIntegrations
mirror of
https://github.com/Bayselonarrend/OpenIntegrations.git
synced 2025-11-06 08:49:29 +02:00
Создание MD файлов документации
This commit is contained in:
committed by
Vitaly the Alpaca (bot)
parent
cff467e14d
commit
c7721282ba
@@ -1,4 +1,4 @@
|
||||
{
|
||||
"label": "Block formation",
|
||||
"position": "8"
|
||||
{
|
||||
"label": "Block formation",
|
||||
"position": "8"
|
||||
}
|
||||
@@ -1,4 +1,4 @@
|
||||
{
|
||||
"label": "Channel management",
|
||||
"position": "4"
|
||||
{
|
||||
"label": "Channel management",
|
||||
"position": "4"
|
||||
}
|
||||
@@ -1,4 +1,4 @@
|
||||
{
|
||||
"label": "External files management",
|
||||
"position": "7"
|
||||
{
|
||||
"label": "External files management",
|
||||
"position": "7"
|
||||
}
|
||||
@@ -1,4 +1,4 @@
|
||||
{
|
||||
"label": "Dialog management",
|
||||
"position": "5"
|
||||
{
|
||||
"label": "Dialog management",
|
||||
"position": "5"
|
||||
}
|
||||
@@ -1,82 +1,82 @@
|
||||
---
|
||||
sidebar_position: 3
|
||||
---
|
||||
|
||||
# Add external file
|
||||
Adds a new external file
|
||||
|
||||
|
||||
*Function AddExternalFile(Val Token, Val URL, Val Title) Export*
|
||||
|
||||
| Parameter | CLI option | Type | Destination |
|
||||
|-|-|-|-|
|
||||
| Token | --token | String | Bot token |
|
||||
| URL | --url | String | URL to external file |
|
||||
| Title | --title | String | File title for Slack |
|
||||
|
||||
|
||||
Returns: Map Of KeyAndValue - Serialized JSON response from Slack
|
||||
|
||||
```bsl title="Code example"
|
||||
|
||||
|
||||
URL = https://opi.neocities.org/test_data/document.docx;
|
||||
Title = "NewFile";
|
||||
|
||||
Response = OPI_Slack.AddExternalFile(Token, URL, Title); //Map
|
||||
Response = OPI_Tools.JSONString(Response); //JSON string
|
||||
|
||||
|
||||
|
||||
```
|
||||
|
||||
```sh title="CLI command example"
|
||||
|
||||
oint slack AddExternalFile --token %token% --url "https://opi.neocities.org/test_data/document.docx" --title %title%
|
||||
|
||||
|
||||
```
|
||||
|
||||
|
||||
```json title="Result"
|
||||
|
||||
{
|
||||
"ok": true,
|
||||
"file": {
|
||||
"id": "F070P52CU94",
|
||||
"created": 1714146552,
|
||||
"timestamp": 1714146552,
|
||||
"name": "Novyj_fajl",
|
||||
"title": "NewFile",
|
||||
"mimetype": "application/vnd.slack-remote",
|
||||
"filetype": "remote",
|
||||
"pretty_type": "Remote",
|
||||
"user": "U06UG1CAYH2",
|
||||
"user_team": "T06UD92BS3C",
|
||||
"editable": false,
|
||||
"size": 0,
|
||||
"mode": "external",
|
||||
"is_external": true,
|
||||
"external_type": "app",
|
||||
"is_public": false,
|
||||
"public_url_shared": false,
|
||||
"display_as_bot": false,
|
||||
"username": "",
|
||||
"url_private": "https://slack.com/api/files.remote.add",
|
||||
"media_display_type": "unknown",
|
||||
"permalink": "https://openintegrationsgroup.slack.com/files/U06UG1CAYH2/F070P52CU94/novyj_fajl",
|
||||
"comments_count": 0,
|
||||
"is_starred": false,
|
||||
"shares": {},
|
||||
"channels": [],
|
||||
"groups": [],
|
||||
"ims": [],
|
||||
"has_more_shares": false,
|
||||
"external_id": "d2a110a2-08eb-4f20-989f-8943f0816420",
|
||||
"external_url": "https://slack.com/api/files.remote.add",
|
||||
"has_rich_preview": false,
|
||||
"file_access": "visible"
|
||||
}
|
||||
}
|
||||
|
||||
```
|
||||
---
|
||||
sidebar_position: 3
|
||||
---
|
||||
|
||||
# Add external file
|
||||
Adds a new external file
|
||||
|
||||
|
||||
*Function AddExternalFile(Val Token, Val URL, Val Title) Export*
|
||||
|
||||
| Parameter | CLI option | Type | Destination |
|
||||
|-|-|-|-|
|
||||
| Token | --token | String | Bot token |
|
||||
| URL | --url | String | URL to external file |
|
||||
| Title | --title | String | File title for Slack |
|
||||
|
||||
|
||||
Returns: Map Of KeyAndValue - Serialized JSON response from Slack
|
||||
|
||||
```bsl title="Code example"
|
||||
|
||||
|
||||
URL = https://opi.neocities.org/test_data/document.docx;
|
||||
Title = "NewFile";
|
||||
|
||||
Response = OPI_Slack.AddExternalFile(Token, URL, Title); //Map
|
||||
Response = OPI_Tools.JSONString(Response); //JSON string
|
||||
|
||||
|
||||
|
||||
```
|
||||
|
||||
```sh title="CLI command example"
|
||||
|
||||
oint slack AddExternalFile --token %token% --url "https://opi.neocities.org/test_data/document.docx" --title %title%
|
||||
|
||||
|
||||
```
|
||||
|
||||
|
||||
```json title="Result"
|
||||
|
||||
{
|
||||
"ok": true,
|
||||
"file": {
|
||||
"id": "F070P52CU94",
|
||||
"created": 1714146552,
|
||||
"timestamp": 1714146552,
|
||||
"name": "Novyj_fajl",
|
||||
"title": "NewFile",
|
||||
"mimetype": "application/vnd.slack-remote",
|
||||
"filetype": "remote",
|
||||
"pretty_type": "Remote",
|
||||
"user": "U06UG1CAYH2",
|
||||
"user_team": "T06UD92BS3C",
|
||||
"editable": false,
|
||||
"size": 0,
|
||||
"mode": "external",
|
||||
"is_external": true,
|
||||
"external_type": "app",
|
||||
"is_public": false,
|
||||
"public_url_shared": false,
|
||||
"display_as_bot": false,
|
||||
"username": "",
|
||||
"url_private": "https://slack.com/api/files.remote.add",
|
||||
"media_display_type": "unknown",
|
||||
"permalink": "https://openintegrationsgroup.slack.com/files/U06UG1CAYH2/F070P52CU94/novyj_fajl",
|
||||
"comments_count": 0,
|
||||
"is_starred": false,
|
||||
"shares": {},
|
||||
"channels": [],
|
||||
"groups": [],
|
||||
"ims": [],
|
||||
"has_more_shares": false,
|
||||
"external_id": "d2a110a2-08eb-4f20-989f-8943f0816420",
|
||||
"external_url": "https://slack.com/api/files.remote.add",
|
||||
"has_rich_preview": false,
|
||||
"file_access": "visible"
|
||||
}
|
||||
}
|
||||
|
||||
```
|
||||
|
||||
@@ -1,45 +1,45 @@
|
||||
---
|
||||
sidebar_position: 5
|
||||
---
|
||||
|
||||
# Delete external file
|
||||
Deletes an external file from Slack
|
||||
|
||||
|
||||
*Function DeleteExternalFile(Val Token, Val FileID) Export*
|
||||
|
||||
| Parameter | CLI option | Type | Destination |
|
||||
|-|-|-|-|
|
||||
| Token | --token | String | Bot token |
|
||||
| FileID | --fileid | String | File identifier |
|
||||
|
||||
|
||||
Returns: Map Of KeyAndValue - Serialized JSON response from Slack
|
||||
|
||||
```bsl title="Code example"
|
||||
|
||||
|
||||
FileID = "F070P52CU94";
|
||||
|
||||
Response = OPI_Slack.DeleteExternalFile(Token, FileID); //Map
|
||||
Response = OPI_Tools.JSONString(Response); //JSON string
|
||||
|
||||
|
||||
|
||||
```
|
||||
|
||||
```sh title="CLI command example"
|
||||
|
||||
oint slack DeleteExternalFile --token %token% --fileid "F070P52CU94"
|
||||
|
||||
|
||||
```
|
||||
|
||||
|
||||
```json title="Result"
|
||||
|
||||
{
|
||||
"ok": true
|
||||
}
|
||||
|
||||
```
|
||||
---
|
||||
sidebar_position: 5
|
||||
---
|
||||
|
||||
# Delete external file
|
||||
Deletes an external file from Slack
|
||||
|
||||
|
||||
*Function DeleteExternalFile(Val Token, Val FileID) Export*
|
||||
|
||||
| Parameter | CLI option | Type | Destination |
|
||||
|-|-|-|-|
|
||||
| Token | --token | String | Bot token |
|
||||
| FileID | --fileid | String | File identifier |
|
||||
|
||||
|
||||
Returns: Map Of KeyAndValue - Serialized JSON response from Slack
|
||||
|
||||
```bsl title="Code example"
|
||||
|
||||
|
||||
FileID = "F070P52CU94";
|
||||
|
||||
Response = OPI_Slack.DeleteExternalFile(Token, FileID); //Map
|
||||
Response = OPI_Tools.JSONString(Response); //JSON string
|
||||
|
||||
|
||||
|
||||
```
|
||||
|
||||
```sh title="CLI command example"
|
||||
|
||||
oint slack DeleteExternalFile --token %token% --fileid "F070P52CU94"
|
||||
|
||||
|
||||
```
|
||||
|
||||
|
||||
```json title="Result"
|
||||
|
||||
{
|
||||
"ok": true
|
||||
}
|
||||
|
||||
```
|
||||
|
||||
@@ -1,50 +1,50 @@
|
||||
---
|
||||
sidebar_position: 1
|
||||
---
|
||||
|
||||
# Get list of external files
|
||||
Gets a list of external files of a user or channel
|
||||
|
||||
|
||||
*Function GetExternalFileList(Val Token, Val Channel = "", Val Cursor = "") Export*
|
||||
|
||||
| Parameter | CLI option | Type | Destination |
|
||||
|-|-|-|-|
|
||||
| Token | --token | String | Bot token |
|
||||
| Channel | --channel | String | Channel for selection |
|
||||
| Cursor | --cursor | String | Pointer from the previous request, if the result rows > 100 |
|
||||
|
||||
|
||||
Returns: Map Of KeyAndValue - Serialized JSON response from Slack
|
||||
|
||||
```bsl title="Code example"
|
||||
|
||||
|
||||
Channel = "C070VPMKN8J";
|
||||
|
||||
Response = OPI_Slack.GetExternalFileList(Token, Channel); //Map
|
||||
Response = OPI_Tools.JSONString(Response); //JSON string
|
||||
|
||||
|
||||
|
||||
```
|
||||
|
||||
```sh title="CLI command example"
|
||||
|
||||
oint slack GetExternalFileList --token %token% --channel "C070VPMKN8J" --cursor %cursor%
|
||||
|
||||
|
||||
```
|
||||
|
||||
|
||||
```json title="Result"
|
||||
|
||||
{
|
||||
"ok": true,
|
||||
"files": [],
|
||||
"response_metadata": {
|
||||
"next_cursor": ""
|
||||
}
|
||||
}
|
||||
|
||||
```
|
||||
---
|
||||
sidebar_position: 1
|
||||
---
|
||||
|
||||
# Get list of external files
|
||||
Gets a list of external files of a user or channel
|
||||
|
||||
|
||||
*Function GetExternalFileList(Val Token, Val Channel = "", Val Cursor = "") Export*
|
||||
|
||||
| Parameter | CLI option | Type | Destination |
|
||||
|-|-|-|-|
|
||||
| Token | --token | String | Bot token |
|
||||
| Channel | --channel | String | Channel for selection |
|
||||
| Cursor | --cursor | String | Pointer from the previous request, if the result rows > 100 |
|
||||
|
||||
|
||||
Returns: Map Of KeyAndValue - Serialized JSON response from Slack
|
||||
|
||||
```bsl title="Code example"
|
||||
|
||||
|
||||
Channel = "C070VPMKN8J";
|
||||
|
||||
Response = OPI_Slack.GetExternalFileList(Token, Channel); //Map
|
||||
Response = OPI_Tools.JSONString(Response); //JSON string
|
||||
|
||||
|
||||
|
||||
```
|
||||
|
||||
```sh title="CLI command example"
|
||||
|
||||
oint slack GetExternalFileList --token %token% --channel "C070VPMKN8J" --cursor %cursor%
|
||||
|
||||
|
||||
```
|
||||
|
||||
|
||||
```json title="Result"
|
||||
|
||||
{
|
||||
"ok": true,
|
||||
"files": [],
|
||||
"response_metadata": {
|
||||
"next_cursor": ""
|
||||
}
|
||||
}
|
||||
|
||||
```
|
||||
|
||||
@@ -1,80 +1,80 @@
|
||||
---
|
||||
sidebar_position: 2
|
||||
---
|
||||
|
||||
# Get external file
|
||||
Gets information about the external file
|
||||
|
||||
|
||||
*Function GetExternalFile(Val Token, Val FileID) Export*
|
||||
|
||||
| Parameter | CLI option | Type | Destination |
|
||||
|-|-|-|-|
|
||||
| Token | --token | String | Bot token |
|
||||
| FileID | --fileid | String | File identifier |
|
||||
|
||||
|
||||
Returns: Map Of KeyAndValue - Serialized JSON response from Slack
|
||||
|
||||
```bsl title="Code example"
|
||||
|
||||
|
||||
FileID = "F070P52CU94";
|
||||
|
||||
Response = OPI_Slack.GetExternalFile(Token, FileID); //Map
|
||||
Response = OPI_Tools.JSONString(Response); //JSON string
|
||||
|
||||
|
||||
|
||||
```
|
||||
|
||||
```sh title="CLI command example"
|
||||
|
||||
oint slack GetExternalFile --token %token% --fileid "F070P52CU94"
|
||||
|
||||
|
||||
```
|
||||
|
||||
|
||||
```json title="Result"
|
||||
|
||||
{
|
||||
"ok": true,
|
||||
"file": {
|
||||
"id": "F070P52CU94",
|
||||
"created": 1714146552,
|
||||
"timestamp": 1714146552,
|
||||
"name": "Novyj_fajl",
|
||||
"title": "NewFile",
|
||||
"mimetype": "application/vnd.slack-remote",
|
||||
"filetype": "remote",
|
||||
"pretty_type": "Remote",
|
||||
"user": "U06UG1CAYH2",
|
||||
"user_team": "T06UD92BS3C",
|
||||
"editable": false,
|
||||
"size": 0,
|
||||
"mode": "external",
|
||||
"is_external": true,
|
||||
"external_type": "app",
|
||||
"is_public": false,
|
||||
"public_url_shared": false,
|
||||
"display_as_bot": false,
|
||||
"username": "",
|
||||
"url_private": "https://slack.com/api/files.remote.add",
|
||||
"media_display_type": "unknown",
|
||||
"permalink": "https://openintegrationsgroup.slack.com/files/U06UG1CAYH2/F070P52CU94/novyj_fajl",
|
||||
"comments_count": 0,
|
||||
"is_starred": false,
|
||||
"shares": {},
|
||||
"channels": [],
|
||||
"groups": [],
|
||||
"ims": [],
|
||||
"has_more_shares": false,
|
||||
"external_id": "d2a110a2-08eb-4f20-989f-8943f0816420",
|
||||
"external_url": "https://slack.com/api/files.remote.add",
|
||||
"has_rich_preview": false,
|
||||
"file_access": "visible"
|
||||
}
|
||||
}
|
||||
|
||||
```
|
||||
---
|
||||
sidebar_position: 2
|
||||
---
|
||||
|
||||
# Get external file
|
||||
Gets information about the external file
|
||||
|
||||
|
||||
*Function GetExternalFile(Val Token, Val FileID) Export*
|
||||
|
||||
| Parameter | CLI option | Type | Destination |
|
||||
|-|-|-|-|
|
||||
| Token | --token | String | Bot token |
|
||||
| FileID | --fileid | String | File identifier |
|
||||
|
||||
|
||||
Returns: Map Of KeyAndValue - Serialized JSON response from Slack
|
||||
|
||||
```bsl title="Code example"
|
||||
|
||||
|
||||
FileID = "F070P52CU94";
|
||||
|
||||
Response = OPI_Slack.GetExternalFile(Token, FileID); //Map
|
||||
Response = OPI_Tools.JSONString(Response); //JSON string
|
||||
|
||||
|
||||
|
||||
```
|
||||
|
||||
```sh title="CLI command example"
|
||||
|
||||
oint slack GetExternalFile --token %token% --fileid "F070P52CU94"
|
||||
|
||||
|
||||
```
|
||||
|
||||
|
||||
```json title="Result"
|
||||
|
||||
{
|
||||
"ok": true,
|
||||
"file": {
|
||||
"id": "F070P52CU94",
|
||||
"created": 1714146552,
|
||||
"timestamp": 1714146552,
|
||||
"name": "Novyj_fajl",
|
||||
"title": "NewFile",
|
||||
"mimetype": "application/vnd.slack-remote",
|
||||
"filetype": "remote",
|
||||
"pretty_type": "Remote",
|
||||
"user": "U06UG1CAYH2",
|
||||
"user_team": "T06UD92BS3C",
|
||||
"editable": false,
|
||||
"size": 0,
|
||||
"mode": "external",
|
||||
"is_external": true,
|
||||
"external_type": "app",
|
||||
"is_public": false,
|
||||
"public_url_shared": false,
|
||||
"display_as_bot": false,
|
||||
"username": "",
|
||||
"url_private": "https://slack.com/api/files.remote.add",
|
||||
"media_display_type": "unknown",
|
||||
"permalink": "https://openintegrationsgroup.slack.com/files/U06UG1CAYH2/F070P52CU94/novyj_fajl",
|
||||
"comments_count": 0,
|
||||
"is_starred": false,
|
||||
"shares": {},
|
||||
"channels": [],
|
||||
"groups": [],
|
||||
"ims": [],
|
||||
"has_more_shares": false,
|
||||
"external_id": "d2a110a2-08eb-4f20-989f-8943f0816420",
|
||||
"external_url": "https://slack.com/api/files.remote.add",
|
||||
"has_rich_preview": false,
|
||||
"file_access": "visible"
|
||||
}
|
||||
}
|
||||
|
||||
```
|
||||
|
||||
@@ -1,99 +1,99 @@
|
||||
---
|
||||
sidebar_position: 4
|
||||
---
|
||||
|
||||
# Send external file
|
||||
Sends an external file to a list of channels
|
||||
|
||||
|
||||
*Function SendExternalFile(Val Token, Val FileID, Val ChannelArray) Export*
|
||||
|
||||
| Parameter | CLI option | Type | Destination |
|
||||
|-|-|-|-|
|
||||
| Token | --token | String | Bot token |
|
||||
| FileID | --fileid | String | File identifier |
|
||||
| ChannelArray | --channels | Array Of String | Array of channels for sending |
|
||||
|
||||
|
||||
Returns: Map Of KeyAndValue - Serialized JSON response from Slack
|
||||
|
||||
```bsl title="Code example"
|
||||
|
||||
|
||||
Channel = "C070VPMKN8J";
|
||||
FileID = "F070P52CU94";
|
||||
|
||||
Response = OPI_Slack.SendExternalFile(Token, FileID, Channel); //Map
|
||||
Response = OPI_Tools.JSONString(Response); //JSON string
|
||||
|
||||
|
||||
|
||||
```
|
||||
|
||||
```sh title="CLI command example"
|
||||
|
||||
oint slack SendExternalFile --token %token% --fileid "F070P52CU94" --channels %channels%
|
||||
|
||||
|
||||
```
|
||||
|
||||
|
||||
```json title="Result"
|
||||
|
||||
{
|
||||
"ok": true,
|
||||
"file": {
|
||||
"id": "F070P52CU94",
|
||||
"created": 1714146552,
|
||||
"timestamp": 1714146552,
|
||||
"name": "Novyj_fajl",
|
||||
"title": "NewFile",
|
||||
"mimetype": "application/vnd.slack-remote",
|
||||
"filetype": "remote",
|
||||
"pretty_type": "Remote",
|
||||
"user": "U06UG1CAYH2",
|
||||
"user_team": "T06UD92BS3C",
|
||||
"editable": false,
|
||||
"size": 0,
|
||||
"mode": "external",
|
||||
"is_external": true,
|
||||
"external_type": "app",
|
||||
"is_public": true,
|
||||
"public_url_shared": false,
|
||||
"display_as_bot": false,
|
||||
"username": "",
|
||||
"url_private": "https://slack.com/api/files.remote.add",
|
||||
"media_display_type": "unknown",
|
||||
"permalink": "https://openintegrationsgroup.slack.com/files/U06UG1CAYH2/F070P52CU94/novyj_fajl",
|
||||
"comments_count": 0,
|
||||
"is_starred": false,
|
||||
"shares": {
|
||||
"public": {
|
||||
"C06UFNUTKUL": [
|
||||
{
|
||||
"reply_users": [],
|
||||
"reply_users_count": 0,
|
||||
"reply_count": 0,
|
||||
"ts": "1714146553.217059",
|
||||
"channel_name": "slack-api-librarry",
|
||||
"team_id": "T06UD92BS3C",
|
||||
"share_user_id": "U06UG1CAYH2",
|
||||
"source": "UNKNOWN"
|
||||
}
|
||||
]
|
||||
}
|
||||
},
|
||||
"channels": [
|
||||
"C06UFNUTKUL"
|
||||
],
|
||||
"groups": [],
|
||||
"ims": [],
|
||||
"has_more_shares": false,
|
||||
"external_id": "d2a110a2-08eb-4f20-989f-8943f0816420",
|
||||
"external_url": "https://slack.com/api/files.remote.add",
|
||||
"has_rich_preview": false,
|
||||
"file_access": "visible"
|
||||
}
|
||||
}
|
||||
|
||||
```
|
||||
---
|
||||
sidebar_position: 4
|
||||
---
|
||||
|
||||
# Send external file
|
||||
Sends an external file to a list of channels
|
||||
|
||||
|
||||
*Function SendExternalFile(Val Token, Val FileID, Val ChannelArray) Export*
|
||||
|
||||
| Parameter | CLI option | Type | Destination |
|
||||
|-|-|-|-|
|
||||
| Token | --token | String | Bot token |
|
||||
| FileID | --fileid | String | File identifier |
|
||||
| ChannelArray | --channels | Array Of String | Array of channels for sending |
|
||||
|
||||
|
||||
Returns: Map Of KeyAndValue - Serialized JSON response from Slack
|
||||
|
||||
```bsl title="Code example"
|
||||
|
||||
|
||||
Channel = "C070VPMKN8J";
|
||||
FileID = "F070P52CU94";
|
||||
|
||||
Response = OPI_Slack.SendExternalFile(Token, FileID, Channel); //Map
|
||||
Response = OPI_Tools.JSONString(Response); //JSON string
|
||||
|
||||
|
||||
|
||||
```
|
||||
|
||||
```sh title="CLI command example"
|
||||
|
||||
oint slack SendExternalFile --token %token% --fileid "F070P52CU94" --channels %channels%
|
||||
|
||||
|
||||
```
|
||||
|
||||
|
||||
```json title="Result"
|
||||
|
||||
{
|
||||
"ok": true,
|
||||
"file": {
|
||||
"id": "F070P52CU94",
|
||||
"created": 1714146552,
|
||||
"timestamp": 1714146552,
|
||||
"name": "Novyj_fajl",
|
||||
"title": "NewFile",
|
||||
"mimetype": "application/vnd.slack-remote",
|
||||
"filetype": "remote",
|
||||
"pretty_type": "Remote",
|
||||
"user": "U06UG1CAYH2",
|
||||
"user_team": "T06UD92BS3C",
|
||||
"editable": false,
|
||||
"size": 0,
|
||||
"mode": "external",
|
||||
"is_external": true,
|
||||
"external_type": "app",
|
||||
"is_public": true,
|
||||
"public_url_shared": false,
|
||||
"display_as_bot": false,
|
||||
"username": "",
|
||||
"url_private": "https://slack.com/api/files.remote.add",
|
||||
"media_display_type": "unknown",
|
||||
"permalink": "https://openintegrationsgroup.slack.com/files/U06UG1CAYH2/F070P52CU94/novyj_fajl",
|
||||
"comments_count": 0,
|
||||
"is_starred": false,
|
||||
"shares": {
|
||||
"public": {
|
||||
"C06UFNUTKUL": [
|
||||
{
|
||||
"reply_users": [],
|
||||
"reply_users_count": 0,
|
||||
"reply_count": 0,
|
||||
"ts": "1714146553.217059",
|
||||
"channel_name": "slack-api-librarry",
|
||||
"team_id": "T06UD92BS3C",
|
||||
"share_user_id": "U06UG1CAYH2",
|
||||
"source": "UNKNOWN"
|
||||
}
|
||||
]
|
||||
}
|
||||
},
|
||||
"channels": [
|
||||
"C06UFNUTKUL"
|
||||
],
|
||||
"groups": [],
|
||||
"ims": [],
|
||||
"has_more_shares": false,
|
||||
"external_id": "d2a110a2-08eb-4f20-989f-8943f0816420",
|
||||
"external_url": "https://slack.com/api/files.remote.add",
|
||||
"has_rich_preview": false,
|
||||
"file_access": "visible"
|
||||
}
|
||||
}
|
||||
|
||||
```
|
||||
|
||||
@@ -1,45 +1,45 @@
|
||||
---
|
||||
sidebar_position: 4
|
||||
---
|
||||
|
||||
# Delete file
|
||||
Deletes a file on Slack
|
||||
|
||||
|
||||
*Function DeleteFile(Val Token, Val FileID) Export*
|
||||
|
||||
| Parameter | CLI option | Type | Destination |
|
||||
|-|-|-|-|
|
||||
| Token | --token | String | Bot token |
|
||||
| FileID | --fileid | String | File identifier |
|
||||
|
||||
|
||||
Returns: Map Of KeyAndValue - Serialized JSON response from Slack
|
||||
|
||||
```bsl title="Code example"
|
||||
|
||||
|
||||
FileID = "F070VL6FQFM";
|
||||
|
||||
Response = OPI_Slack.DeleteFile(Token, FileID); //Map
|
||||
Response = OPI_Tools.JSONString(Response);//JSON string
|
||||
|
||||
|
||||
|
||||
```
|
||||
|
||||
```sh title="CLI command example"
|
||||
|
||||
oint slack DeleteFile --token %token% --fileid "F070VL6FQFM"
|
||||
|
||||
|
||||
```
|
||||
|
||||
|
||||
```json title="Result"
|
||||
|
||||
{
|
||||
"ok": true
|
||||
}
|
||||
|
||||
```
|
||||
---
|
||||
sidebar_position: 4
|
||||
---
|
||||
|
||||
# Delete file
|
||||
Deletes a file on Slack
|
||||
|
||||
|
||||
*Function DeleteFile(Val Token, Val FileID) Export*
|
||||
|
||||
| Parameter | CLI option | Type | Destination |
|
||||
|-|-|-|-|
|
||||
| Token | --token | String | Bot token |
|
||||
| FileID | --fileid | String | File identifier |
|
||||
|
||||
|
||||
Returns: Map Of KeyAndValue - Serialized JSON response from Slack
|
||||
|
||||
```bsl title="Code example"
|
||||
|
||||
|
||||
FileID = "F070VL6FQFM";
|
||||
|
||||
Response = OPI_Slack.DeleteFile(Token, FileID); //Map
|
||||
Response = OPI_Tools.JSONString(Response);//JSON string
|
||||
|
||||
|
||||
|
||||
```
|
||||
|
||||
```sh title="CLI command example"
|
||||
|
||||
oint slack DeleteFile --token %token% --fileid "F070VL6FQFM"
|
||||
|
||||
|
||||
```
|
||||
|
||||
|
||||
```json title="Result"
|
||||
|
||||
{
|
||||
"ok": true
|
||||
}
|
||||
|
||||
```
|
||||
|
||||
@@ -1,84 +1,84 @@
|
||||
---
|
||||
sidebar_position: 3
|
||||
---
|
||||
|
||||
# Get file data
|
||||
Gets information about the file
|
||||
|
||||
|
||||
*Function GetFileData(Val Token, Val FileID) Export*
|
||||
|
||||
| Parameter | CLI option | Type | Destination |
|
||||
|-|-|-|-|
|
||||
| Token | --token | String | Bot token |
|
||||
| FileID | --fileid | String | File identifier |
|
||||
|
||||
|
||||
Returns: Map Of KeyAndValue - Serialized JSON response from Slack
|
||||
|
||||
```bsl title="Code example"
|
||||
|
||||
|
||||
FileID = "F070VL6FQFM";
|
||||
|
||||
Response = OPI_Slack.GetFileData(Token, FileID); //Map
|
||||
Response = OPI_Tools.JSONString(Response); //JSON string
|
||||
|
||||
|
||||
|
||||
```
|
||||
|
||||
```sh title="CLI command example"
|
||||
|
||||
oint slack GetFileData --token %token% --fileid "F070VL6FQFM"
|
||||
|
||||
|
||||
```
|
||||
|
||||
|
||||
```json title="Result"
|
||||
|
||||
{
|
||||
"ok": true,
|
||||
"file": {
|
||||
"id": "F070VL6FQFM",
|
||||
"created": 1714146550,
|
||||
"timestamp": 1714146550,
|
||||
"name": "megadoc.docx",
|
||||
"title": "NewFile",
|
||||
"mimetype": "",
|
||||
"filetype": "",
|
||||
"pretty_type": "",
|
||||
"user": "U06UG1CAYH2",
|
||||
"user_team": "T06UD92BS3C",
|
||||
"editable": false,
|
||||
"size": 24069,
|
||||
"mode": "hosted",
|
||||
"is_external": false,
|
||||
"external_type": "",
|
||||
"is_public": false,
|
||||
"public_url_shared": false,
|
||||
"display_as_bot": false,
|
||||
"username": "",
|
||||
"url_private": "https://files.slack.com/files-pri/T06UD92BS3C-F070VL6FQFM/megadoc.docx",
|
||||
"url_private_download": "https://files.slack.com/files-pri/T06UD92BS3C-F070VL6FQFM/download/megadoc.docx",
|
||||
"media_display_type": "unknown",
|
||||
"permalink": "https://openintegrationsgroup.slack.com/files/U06UG1CAYH2/F070VL6FQFM/megadoc.docx",
|
||||
"permalink_public": "https://slack-files.com/T06UD92BS3C-F070VL6FQFM-9fb2618d36",
|
||||
"is_starred": false,
|
||||
"shares": {},
|
||||
"channels": [],
|
||||
"groups": [],
|
||||
"ims": [],
|
||||
"has_more_shares": false,
|
||||
"has_rich_preview": false,
|
||||
"file_access": "visible",
|
||||
"comments_count": 0
|
||||
},
|
||||
"comments": [],
|
||||
"response_metadata": {
|
||||
"next_cursor": ""
|
||||
}
|
||||
}
|
||||
|
||||
```
|
||||
---
|
||||
sidebar_position: 3
|
||||
---
|
||||
|
||||
# Get file data
|
||||
Gets information about the file
|
||||
|
||||
|
||||
*Function GetFileData(Val Token, Val FileID) Export*
|
||||
|
||||
| Parameter | CLI option | Type | Destination |
|
||||
|-|-|-|-|
|
||||
| Token | --token | String | Bot token |
|
||||
| FileID | --fileid | String | File identifier |
|
||||
|
||||
|
||||
Returns: Map Of KeyAndValue - Serialized JSON response from Slack
|
||||
|
||||
```bsl title="Code example"
|
||||
|
||||
|
||||
FileID = "F070VL6FQFM";
|
||||
|
||||
Response = OPI_Slack.GetFileData(Token, FileID); //Map
|
||||
Response = OPI_Tools.JSONString(Response); //JSON string
|
||||
|
||||
|
||||
|
||||
```
|
||||
|
||||
```sh title="CLI command example"
|
||||
|
||||
oint slack GetFileData --token %token% --fileid "F070VL6FQFM"
|
||||
|
||||
|
||||
```
|
||||
|
||||
|
||||
```json title="Result"
|
||||
|
||||
{
|
||||
"ok": true,
|
||||
"file": {
|
||||
"id": "F070VL6FQFM",
|
||||
"created": 1714146550,
|
||||
"timestamp": 1714146550,
|
||||
"name": "megadoc.docx",
|
||||
"title": "NewFile",
|
||||
"mimetype": "",
|
||||
"filetype": "",
|
||||
"pretty_type": "",
|
||||
"user": "U06UG1CAYH2",
|
||||
"user_team": "T06UD92BS3C",
|
||||
"editable": false,
|
||||
"size": 24069,
|
||||
"mode": "hosted",
|
||||
"is_external": false,
|
||||
"external_type": "",
|
||||
"is_public": false,
|
||||
"public_url_shared": false,
|
||||
"display_as_bot": false,
|
||||
"username": "",
|
||||
"url_private": "https://files.slack.com/files-pri/T06UD92BS3C-F070VL6FQFM/megadoc.docx",
|
||||
"url_private_download": "https://files.slack.com/files-pri/T06UD92BS3C-F070VL6FQFM/download/megadoc.docx",
|
||||
"media_display_type": "unknown",
|
||||
"permalink": "https://openintegrationsgroup.slack.com/files/U06UG1CAYH2/F070VL6FQFM/megadoc.docx",
|
||||
"permalink_public": "https://slack-files.com/T06UD92BS3C-F070VL6FQFM-9fb2618d36",
|
||||
"is_starred": false,
|
||||
"shares": {},
|
||||
"channels": [],
|
||||
"groups": [],
|
||||
"ims": [],
|
||||
"has_more_shares": false,
|
||||
"has_rich_preview": false,
|
||||
"file_access": "visible",
|
||||
"comments_count": 0
|
||||
},
|
||||
"comments": [],
|
||||
"response_metadata": {
|
||||
"next_cursor": ""
|
||||
}
|
||||
}
|
||||
|
||||
```
|
||||
|
||||
@@ -1,84 +1,84 @@
|
||||
---
|
||||
sidebar_position: 1
|
||||
---
|
||||
|
||||
# Get list of files
|
||||
Gets a list of files of the bot or channel
|
||||
|
||||
|
||||
*Function GetFilesList(Val Token, Val Channel = "", Val PageNumber = 1) Export*
|
||||
|
||||
| Parameter | CLI option | Type | Destination |
|
||||
|-|-|-|-|
|
||||
| Token | --token | String | Bot token |
|
||||
| Channel | --channel | String | Channel for selection |
|
||||
| PageNumber | --page | Number, String | Page number |
|
||||
|
||||
|
||||
Returns: Map Of KeyAndValue - Serialized JSON response from Slack
|
||||
|
||||
```bsl title="Code example"
|
||||
|
||||
|
||||
PageNumber = 1;
|
||||
Channel = "C123456";
|
||||
|
||||
Response = OPI_Slack.GetFilesList(Token, Channel, PageNumber); //Map
|
||||
Response = OPI_Tools.JSONString(Response); //JSON string
|
||||
|
||||
|
||||
|
||||
```
|
||||
|
||||
```sh title="CLI command example"
|
||||
|
||||
oint slack GetFilesList --token %token% --channel "C123456" --page "1"
|
||||
|
||||
|
||||
```
|
||||
|
||||
|
||||
```json title="Result"
|
||||
|
||||
{
|
||||
"ok": true,
|
||||
"files": [
|
||||
{
|
||||
"id": "F070V4U7Y4R",
|
||||
"created": 1713978714,
|
||||
"timestamp": 1713978714,
|
||||
"name": "megadoc.docx",
|
||||
"title": "NewFile",
|
||||
"mimetype": "application/vnd.openxmlformats-officedocument.wordprocessingml.document",
|
||||
"filetype": "docx",
|
||||
"pretty_type": "Word Document",
|
||||
"user": "U06UG1CAYH2",
|
||||
"user_team": "T06UD92BS3C",
|
||||
"editable": false,
|
||||
"size": 24069,
|
||||
"mode": "hosted",
|
||||
"is_external": false,
|
||||
"external_type": "",
|
||||
"is_public": true,
|
||||
"public_url_shared": false,
|
||||
"display_as_bot": false,
|
||||
"username": "",
|
||||
"url_private": "https://files.slack.com/files-pri/T06UD92BS3C-F070V4U7Y4R/megadoc.docx",
|
||||
"url_private_download": "https://files.slack.com/files-pri/T06UD92BS3C-F070V4U7Y4R/download/megadoc.docx",
|
||||
"media_display_type": "unknown",
|
||||
"converted_pdf": "https://files.slack.com/files-tmb/T06UD92BS3C-F070V4U7Y4R-417b34221e/megadoc_converted.pdf",
|
||||
"thumb_pdf": "https://files.slack.com/files-tmb/T06UD92BS3C-F070V4U7Y4R-417b34221e/megadoc_thumb_pdf.png",
|
||||
"thumb_pdf_w": 909,
|
||||
"thumb_pdf_h": 1286,
|
||||
"permalink": "https://openintegrationsgroup.slack.com/files/U06UG1CAYH2/F070V4U7Y4R/megadoc.docx",
|
||||
"channels": [
|
||||
"C06UFNUTKUL"
|
||||
],
|
||||
"groups": [],
|
||||
"ims": [],
|
||||
"comments_count": 0
|
||||
}
|
||||
]
|
||||
}
|
||||
|
||||
```
|
||||
---
|
||||
sidebar_position: 1
|
||||
---
|
||||
|
||||
# Get list of files
|
||||
Gets a list of files of the bot or channel
|
||||
|
||||
|
||||
*Function GetFilesList(Val Token, Val Channel = "", Val PageNumber = 1) Export*
|
||||
|
||||
| Parameter | CLI option | Type | Destination |
|
||||
|-|-|-|-|
|
||||
| Token | --token | String | Bot token |
|
||||
| Channel | --channel | String | Channel for selection |
|
||||
| PageNumber | --page | Number, String | Page number |
|
||||
|
||||
|
||||
Returns: Map Of KeyAndValue - Serialized JSON response from Slack
|
||||
|
||||
```bsl title="Code example"
|
||||
|
||||
|
||||
PageNumber = 1;
|
||||
Channel = "C123456";
|
||||
|
||||
Response = OPI_Slack.GetFilesList(Token, Channel, PageNumber); //Map
|
||||
Response = OPI_Tools.JSONString(Response); //JSON string
|
||||
|
||||
|
||||
|
||||
```
|
||||
|
||||
```sh title="CLI command example"
|
||||
|
||||
oint slack GetFilesList --token %token% --channel "C123456" --page "1"
|
||||
|
||||
|
||||
```
|
||||
|
||||
|
||||
```json title="Result"
|
||||
|
||||
{
|
||||
"ok": true,
|
||||
"files": [
|
||||
{
|
||||
"id": "F070V4U7Y4R",
|
||||
"created": 1713978714,
|
||||
"timestamp": 1713978714,
|
||||
"name": "megadoc.docx",
|
||||
"title": "NewFile",
|
||||
"mimetype": "application/vnd.openxmlformats-officedocument.wordprocessingml.document",
|
||||
"filetype": "docx",
|
||||
"pretty_type": "Word Document",
|
||||
"user": "U06UG1CAYH2",
|
||||
"user_team": "T06UD92BS3C",
|
||||
"editable": false,
|
||||
"size": 24069,
|
||||
"mode": "hosted",
|
||||
"is_external": false,
|
||||
"external_type": "",
|
||||
"is_public": true,
|
||||
"public_url_shared": false,
|
||||
"display_as_bot": false,
|
||||
"username": "",
|
||||
"url_private": "https://files.slack.com/files-pri/T06UD92BS3C-F070V4U7Y4R/megadoc.docx",
|
||||
"url_private_download": "https://files.slack.com/files-pri/T06UD92BS3C-F070V4U7Y4R/download/megadoc.docx",
|
||||
"media_display_type": "unknown",
|
||||
"converted_pdf": "https://files.slack.com/files-tmb/T06UD92BS3C-F070V4U7Y4R-417b34221e/megadoc_converted.pdf",
|
||||
"thumb_pdf": "https://files.slack.com/files-tmb/T06UD92BS3C-F070V4U7Y4R-417b34221e/megadoc_thumb_pdf.png",
|
||||
"thumb_pdf_w": 909,
|
||||
"thumb_pdf_h": 1286,
|
||||
"permalink": "https://openintegrationsgroup.slack.com/files/U06UG1CAYH2/F070V4U7Y4R/megadoc.docx",
|
||||
"channels": [
|
||||
"C06UFNUTKUL"
|
||||
],
|
||||
"groups": [],
|
||||
"ims": [],
|
||||
"comments_count": 0
|
||||
}
|
||||
]
|
||||
}
|
||||
|
||||
```
|
||||
|
||||
@@ -1,37 +1,37 @@
|
||||
---
|
||||
sidebar_position: 6
|
||||
---
|
||||
|
||||
# Make file private
|
||||
Removes the public URL from the file. Requires user token
|
||||
|
||||
|
||||
*Function MakeFilePrivate(Val Token, Val FileID) Export*
|
||||
|
||||
| Parameter | CLI option | Type | Destination |
|
||||
|-|-|-|-|
|
||||
| Token | --token | String | User token |
|
||||
| FileID | --fileid | String | File identifier |
|
||||
|
||||
|
||||
Returns: Map Of KeyAndValue - Serialized JSON response from Slack
|
||||
|
||||
```bsl title="Code example"
|
||||
|
||||
|
||||
|
||||
```
|
||||
|
||||
```sh title="CLI command example"
|
||||
|
||||
oint slack MakeFilePrivate --token %token% --fileid %fileid%
|
||||
|
||||
|
||||
```
|
||||
|
||||
|
||||
```json title="Result"
|
||||
|
||||
|
||||
|
||||
```
|
||||
---
|
||||
sidebar_position: 6
|
||||
---
|
||||
|
||||
# Make file private
|
||||
Removes the public URL from the file. Requires user token
|
||||
|
||||
|
||||
*Function MakeFilePrivate(Val Token, Val FileID) Export*
|
||||
|
||||
| Parameter | CLI option | Type | Destination |
|
||||
|-|-|-|-|
|
||||
| Token | --token | String | User token |
|
||||
| FileID | --fileid | String | File identifier |
|
||||
|
||||
|
||||
Returns: Map Of KeyAndValue - Serialized JSON response from Slack
|
||||
|
||||
```bsl title="Code example"
|
||||
|
||||
|
||||
|
||||
```
|
||||
|
||||
```sh title="CLI command example"
|
||||
|
||||
oint slack MakeFilePrivate --token %token% --fileid %fileid%
|
||||
|
||||
|
||||
```
|
||||
|
||||
|
||||
```json title="Result"
|
||||
|
||||
|
||||
|
||||
```
|
||||
|
||||
@@ -1,37 +1,37 @@
|
||||
---
|
||||
sidebar_position: 5
|
||||
---
|
||||
|
||||
# Make file public
|
||||
Creates a public URL for the file. Requires user token
|
||||
|
||||
|
||||
*Function MakeFilePublic(Val Token, Val FileID) Export*
|
||||
|
||||
| Parameter | CLI option | Type | Destination |
|
||||
|-|-|-|-|
|
||||
| Token | --token | String | User token |
|
||||
| FileID | --fileid | String | File identifier |
|
||||
|
||||
|
||||
Returns: Map Of KeyAndValue - Serialized JSON response from Slack
|
||||
|
||||
```bsl title="Code example"
|
||||
|
||||
|
||||
|
||||
```
|
||||
|
||||
```sh title="CLI command example"
|
||||
|
||||
oint slack MakeFilePublic --token %token% --fileid %fileid%
|
||||
|
||||
|
||||
```
|
||||
|
||||
|
||||
```json title="Result"
|
||||
|
||||
|
||||
|
||||
```
|
||||
---
|
||||
sidebar_position: 5
|
||||
---
|
||||
|
||||
# Make file public
|
||||
Creates a public URL for the file. Requires user token
|
||||
|
||||
|
||||
*Function MakeFilePublic(Val Token, Val FileID) Export*
|
||||
|
||||
| Parameter | CLI option | Type | Destination |
|
||||
|-|-|-|-|
|
||||
| Token | --token | String | User token |
|
||||
| FileID | --fileid | String | File identifier |
|
||||
|
||||
|
||||
Returns: Map Of KeyAndValue - Serialized JSON response from Slack
|
||||
|
||||
```bsl title="Code example"
|
||||
|
||||
|
||||
|
||||
```
|
||||
|
||||
```sh title="CLI command example"
|
||||
|
||||
oint slack MakeFilePublic --token %token% --fileid %fileid%
|
||||
|
||||
|
||||
```
|
||||
|
||||
|
||||
```json title="Result"
|
||||
|
||||
|
||||
|
||||
```
|
||||
|
||||
@@ -1,88 +1,88 @@
|
||||
---
|
||||
sidebar_position: 2
|
||||
---
|
||||
|
||||
# Upload file
|
||||
Uploads a file to Slack servers
|
||||
|
||||
|
||||
*Function UploadFile(Val Token, Val File, Val FileName, Val Title, Val Channel = "") Export*
|
||||
|
||||
| Parameter | CLI option | Type | Destination |
|
||||
|-|-|-|-|
|
||||
| Token | --token | String | Bot token |
|
||||
| File | --file | String, BinaryData | File for upload |
|
||||
| FileName | --filename | String | File name with extension |
|
||||
| Title | --title | String | File name in Slack |
|
||||
| Channel | --channel | String | Channel ID |
|
||||
|
||||
|
||||
Returns: Map Of KeyAndValue - Serialized JSON response from Slack
|
||||
|
||||
```bsl title="Code example"
|
||||
|
||||
|
||||
FileName = "megadoc.docx";
|
||||
File = New BinaryData("D:\" + FileName);
|
||||
Title = "NewFile";
|
||||
Channel = "C123456";
|
||||
|
||||
Response = OPI_Slack.UploadFile(Token, File, FileName, Title, Channel); //Map
|
||||
Response = OPI_Tools.JSONString(Response);//JSON string
|
||||
|
||||
|
||||
|
||||
```
|
||||
|
||||
```sh title="CLI command example"
|
||||
|
||||
oint slack UploadFile --token %token% --file %file% --filename "megadoc.docx" --title %title% --channel "C123456"
|
||||
|
||||
|
||||
```
|
||||
|
||||
|
||||
```json title="Result"
|
||||
|
||||
{
|
||||
"ok": true,
|
||||
"files": [
|
||||
{
|
||||
"id": "F070SS4UHNZ",
|
||||
"created": 1714146549,
|
||||
"timestamp": 1714146549,
|
||||
"name": "megadoc.docx",
|
||||
"title": "NewFile",
|
||||
"mimetype": "",
|
||||
"filetype": "",
|
||||
"pretty_type": "",
|
||||
"user": "U06UG1CAYH2",
|
||||
"user_team": "T06UD92BS3C",
|
||||
"editable": false,
|
||||
"size": 24069,
|
||||
"mode": "hosted",
|
||||
"is_external": false,
|
||||
"external_type": "",
|
||||
"is_public": false,
|
||||
"public_url_shared": false,
|
||||
"display_as_bot": false,
|
||||
"username": "",
|
||||
"url_private": "https://files.slack.com/files-pri/T06UD92BS3C-F070SS4UHNZ/megadoc.docx",
|
||||
"url_private_download": "https://files.slack.com/files-pri/T06UD92BS3C-F070SS4UHNZ/download/megadoc.docx",
|
||||
"media_display_type": "unknown",
|
||||
"permalink": "https://openintegrationsgroup.slack.com/files/U06UG1CAYH2/F070SS4UHNZ/megadoc.docx",
|
||||
"permalink_public": "https://slack-files.com/T06UD92BS3C-F070SS4UHNZ-e68bef4a91",
|
||||
"comments_count": 0,
|
||||
"is_starred": false,
|
||||
"shares": {},
|
||||
"channels": [],
|
||||
"groups": [],
|
||||
"ims": [],
|
||||
"has_more_shares": false,
|
||||
"has_rich_preview": false,
|
||||
"file_access": "visible"
|
||||
}
|
||||
]
|
||||
}
|
||||
|
||||
```
|
||||
---
|
||||
sidebar_position: 2
|
||||
---
|
||||
|
||||
# Upload file
|
||||
Uploads a file to Slack servers
|
||||
|
||||
|
||||
*Function UploadFile(Val Token, Val File, Val FileName, Val Title, Val Channel = "") Export*
|
||||
|
||||
| Parameter | CLI option | Type | Destination |
|
||||
|-|-|-|-|
|
||||
| Token | --token | String | Bot token |
|
||||
| File | --file | String, BinaryData | File for upload |
|
||||
| FileName | --filename | String | File name with extension |
|
||||
| Title | --title | String | File name in Slack |
|
||||
| Channel | --channel | String | Channel ID |
|
||||
|
||||
|
||||
Returns: Map Of KeyAndValue - Serialized JSON response from Slack
|
||||
|
||||
```bsl title="Code example"
|
||||
|
||||
|
||||
FileName = "megadoc.docx";
|
||||
File = New BinaryData("D:\" + FileName);
|
||||
Title = "NewFile";
|
||||
Channel = "C123456";
|
||||
|
||||
Response = OPI_Slack.UploadFile(Token, File, FileName, Title, Channel); //Map
|
||||
Response = OPI_Tools.JSONString(Response);//JSON string
|
||||
|
||||
|
||||
|
||||
```
|
||||
|
||||
```sh title="CLI command example"
|
||||
|
||||
oint slack UploadFile --token %token% --file %file% --filename "megadoc.docx" --title %title% --channel "C123456"
|
||||
|
||||
|
||||
```
|
||||
|
||||
|
||||
```json title="Result"
|
||||
|
||||
{
|
||||
"ok": true,
|
||||
"files": [
|
||||
{
|
||||
"id": "F070SS4UHNZ",
|
||||
"created": 1714146549,
|
||||
"timestamp": 1714146549,
|
||||
"name": "megadoc.docx",
|
||||
"title": "NewFile",
|
||||
"mimetype": "",
|
||||
"filetype": "",
|
||||
"pretty_type": "",
|
||||
"user": "U06UG1CAYH2",
|
||||
"user_team": "T06UD92BS3C",
|
||||
"editable": false,
|
||||
"size": 24069,
|
||||
"mode": "hosted",
|
||||
"is_external": false,
|
||||
"external_type": "",
|
||||
"is_public": false,
|
||||
"public_url_shared": false,
|
||||
"display_as_bot": false,
|
||||
"username": "",
|
||||
"url_private": "https://files.slack.com/files-pri/T06UD92BS3C-F070SS4UHNZ/megadoc.docx",
|
||||
"url_private_download": "https://files.slack.com/files-pri/T06UD92BS3C-F070SS4UHNZ/download/megadoc.docx",
|
||||
"media_display_type": "unknown",
|
||||
"permalink": "https://openintegrationsgroup.slack.com/files/U06UG1CAYH2/F070SS4UHNZ/megadoc.docx",
|
||||
"permalink_public": "https://slack-files.com/T06UD92BS3C-F070SS4UHNZ-e68bef4a91",
|
||||
"comments_count": 0,
|
||||
"is_starred": false,
|
||||
"shares": {},
|
||||
"channels": [],
|
||||
"groups": [],
|
||||
"ims": [],
|
||||
"has_more_shares": false,
|
||||
"has_rich_preview": false,
|
||||
"file_access": "visible"
|
||||
}
|
||||
]
|
||||
}
|
||||
|
||||
```
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
{
|
||||
"label": "File managment",
|
||||
"position": "6"
|
||||
{
|
||||
"label": "File managment",
|
||||
"position": "6"
|
||||
}
|
||||
@@ -1,4 +1,4 @@
|
||||
{
|
||||
"label": "Management and settings",
|
||||
"position": "2"
|
||||
{
|
||||
"label": "Management and settings",
|
||||
"position": "2"
|
||||
}
|
||||
@@ -1,4 +1,4 @@
|
||||
{
|
||||
"label": "Message management",
|
||||
"position": "3"
|
||||
{
|
||||
"label": "Message management",
|
||||
"position": "3"
|
||||
}
|
||||
@@ -1,8 +1,8 @@
|
||||
{
|
||||
"label": null,
|
||||
"position": 9,
|
||||
"link": {
|
||||
"type": "doc",
|
||||
"id": "Slack"
|
||||
}
|
||||
{
|
||||
"label": null,
|
||||
"position": 9,
|
||||
"link": {
|
||||
"type": "doc",
|
||||
"id": "Slack"
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user