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

Правки доков

This commit is contained in:
Anton Titovets
2024-07-10 14:11:17 +03:00
parent a7dad7b0c6
commit 16b2c0592e
667 changed files with 1321 additions and 2054 deletions

View File

@@ -25,13 +25,11 @@ sidebar_position: 1
```bsl title="Code example"
Text = "Alpaca picture";
Text = "Alpaca picture";
URL = "https://github.com/Bayselonarrend/OpenIntegrations/raw/main/Media/logo.png?v1";
Response = OPI_Slack.GenerateImageBlock(URL, Text); //Map
Response = OPI_Tools.JSONString(Response); //JSON string
```
@@ -43,7 +41,7 @@ sidebar_position: 1
```
```json title="Result"
{
{
"alt_text": "Yo",
"image_url": "https://github.com/Bayselonarrend/OpenIntegrations/raw/main/Media/logo.png?v1",
"type": "image"

View File

@@ -25,13 +25,10 @@ sidebar_position: 4
```bsl title="Code example"
Channel = "C070VPMKN8J";
Channel = "C070VPMKN8J";
Response = OPI_Slack.ArchiveChannel(Token, Channel); //Map
Response = OPI_Tools.JSONString(Response); //JSON string
```
@@ -43,7 +40,7 @@ sidebar_position: 4
```
```json title="Result"
{
{
"ok": true
}
```

View File

@@ -26,12 +26,10 @@ sidebar_position: 3
```bsl title="Code example"
Name = "testcov" + String(New UUID);
Name = "testcov" + String(New UUID);
Response = OPI_Slack.CreateChannel(Token, Name, False); //Map
Response = OPI_Tools.JSONString(Response); //JSON string
```
@@ -43,7 +41,7 @@ sidebar_position: 3
```
```json title="Result"
{
{
"ok": true,
"channel": {
"id": "C070VPMKN8J",

View File

@@ -25,12 +25,10 @@ sidebar_position: 6
```bsl title="Code example"
Channel = "C070VPMKN8J";
Channel = "C070VPMKN8J";
Response = OPI_Slack.GetChannelHistory(Token, Channel); //Map
Response = OPI_Tools.JSONString(Response); //JSON string
```
@@ -42,7 +40,7 @@ sidebar_position: 6
```
```json title="Result"
{
{
"ok": true,
"messages": [
{

View File

@@ -26,12 +26,10 @@ sidebar_position: 1
```bsl title="Code example"
ExcludeArchived = True;
ExcludeArchived = True;
Response = OPI_Slack.GetChannelList(Token, ExcludeArchived); //Map
Response = OPI_Tools.JSONString(Response); //JSON string
```
@@ -43,7 +41,7 @@ sidebar_position: 1
```
```json title="Result"
{
{
"ok": true,
"channels": [
{

View File

@@ -26,12 +26,10 @@ sidebar_position: 2
```bsl title="Code example"
Channel = "C070VPMKN8J";
Channel = "C070VPMKN8J";
Response = OPI_Slack.GetChannelUserList(Token, Channel); //Map
Response = OPI_Tools.JSONString(Response); //JSON string
```
@@ -43,7 +41,7 @@ sidebar_position: 2
```
```json title="Result"
{
{
"ok": true,
"members": [
"U06UG1CAYH2"

View File

@@ -25,12 +25,10 @@ sidebar_position: 5
```bsl title="Code example"
Channel = "C070VPMKN8J";
Channel = "C070VPMKN8J";
Response = OPI_Slack.GetChannel(Token, Channel); //Map
Response = OPI_Tools.JSONString(Response);//JSON string
```
@@ -42,7 +40,7 @@ sidebar_position: 5
```
```json title="Result"
{
{
"ok": true,
"channel": {
"id": "C070VPMKN8J",

View File

@@ -26,14 +26,12 @@ sidebar_position: 7
```bsl title="Code example"
Channel = "C070VPMKN8J";
Channel = "C070VPMKN8J";
ArrayOfUsers = New Array;
ArrayOfUsers.Add("U06UG1CAYH2");
Response = OPI_Slack.InviteUsersToChannel(Token, Channel, ArrayOfUsers); //Map
Response = OPI_Tools.JSONString(Response); //JSON string
```
@@ -45,7 +43,7 @@ sidebar_position: 7
```
```json title="Result"
{
{
"ok": true,
"channel": {
"id": "C070VPMKN8J",

View File

@@ -25,12 +25,10 @@ sidebar_position: 9
```bsl title="Code example"
Channel = "C070VPMKN8J";
Channel = "C070VPMKN8J";
Response = OPI_Slack.JoinChannel(Token, Channel); //Map
Response = OPI_Tools.JSONString(Response); //JSON string
```
@@ -42,7 +40,7 @@ sidebar_position: 9
```
```json title="Result"
{
{
"ok": true,
"channel": {
"id": "C070VPMKN8J",

View File

@@ -26,13 +26,11 @@ sidebar_position: 8
```bsl title="Code example"
User = "U06UG1CAYH2";
User = "U06UG1CAYH2";
Channel = "C070VPMKN8J";
Response = OPI_Slack.KickUserFromChannel(Token, Channel, User); //Map
Response = OPI_Tools.JSONString(Response); //JSON string
```
@@ -44,7 +42,7 @@ sidebar_position: 8
```
```json title="Result"
{
{
"ok": true
}
```

View File

@@ -25,12 +25,10 @@ sidebar_position: 10
```bsl title="Code example"
Channel = "C070VPMKN8J";
Channel = "C070VPMKN8J";
Response = OPI_Slack.LeaveChannel(Token, Channel); //Map
Response = OPI_Tools.JSONString(Response); //JSON string
```
@@ -42,7 +40,7 @@ sidebar_position: 10
```
```json title="Result"
{
{
"ok": true
}
```

View File

@@ -26,13 +26,11 @@ sidebar_position: 13
```bsl title="Code example"
Name = "testcov" + String(New UUID);
Name = "testcov" + String(New UUID);
Channel = "C070VPMKN8J";
Response = OPI_Slack.RenameChannel(Token, Channel, Name); //Map
Response = OPI_Tools.JSONString(Response); //JSON string
```
@@ -44,7 +42,7 @@ sidebar_position: 13
```
```json title="Result"
{
{
"ok": true,
"channel": {
"id": "C070VPMKN8J",

View File

@@ -26,13 +26,11 @@ sidebar_position: 12
```bsl title="Code example"
Purpose = "TestGoal";
Purpose = "TestGoal";
Channel = "C070VPMKN8J";
Response = OPI_Slack.SetChannelGoal(Token, Channel, Purpose); //Map
Response = OPI_Tools.JSONString(Response); //JSON string
```
@@ -44,7 +42,7 @@ sidebar_position: 12
```
```json title="Result"
{
{
"ok": true,
"channel": {
"id": "C070VPMKN8J",

View File

@@ -26,13 +26,11 @@ sidebar_position: 11
```bsl title="Code example"
Channel = "C070VPMKN8J";
Channel = "C070VPMKN8J";
Topic = "TestTopic";
Response = OPI_Slack.SetChannelTopic(Token, Channel, Topic); //Map
Response = OPI_Tools.JSONString(Response); //JSON string
```
@@ -44,7 +42,7 @@ sidebar_position: 11
```
```json title="Result"
{
{
"ok": true,
"channel": {
"id": "C070VPMKN8J",

View File

@@ -25,12 +25,10 @@ sidebar_position: 2
```bsl title="Code example"
Dialog = "D06UAKK1C6R";
Dialog = "D06UAKK1C6R";
Response = OPI_Slack.CloseDialog(Token, Dialog); //Map
Response = OPI_Tools.JSONString(Response); //JSON string
```
@@ -42,7 +40,7 @@ sidebar_position: 2
```
```json title="Result"
{
{
"ok": true,
"already_closed": false,
"no_op": false

View File

@@ -25,14 +25,12 @@ sidebar_position: 1
```bsl title="Code example"
ArrayOfUsers = New Array;
ArrayOfUsers = New Array;
ArrayOfUsers.Add("U123456");
ArrayOfUsers.Add("U654321");
Response = OPI_Slack.OpenDialog(Token, ArrayOfUsers); //Map
Response = OPI_Tools.JSONString(Response); //JSON string
```
@@ -44,7 +42,7 @@ sidebar_position: 1
```
```json title="Result"
{
{
"ok": true,
"no_op": false,
"already_open": false,

View File

@@ -26,13 +26,11 @@ sidebar_position: 3
```bsl title="Code example"
URL = https://opi.neocities.org/test_data/document.docx;
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
```
@@ -44,7 +42,7 @@ sidebar_position: 3
```
```json title="Result"
{
{
"ok": true,
"file": {
"id": "F070P52CU94",

View File

@@ -25,12 +25,10 @@ sidebar_position: 5
```bsl title="Code example"
FileID = "F070P52CU94";
FileID = "F070P52CU94";
Response = OPI_Slack.DeleteExternalFile(Token, FileID); //Map
Response = OPI_Tools.JSONString(Response); //JSON string
```
@@ -42,7 +40,7 @@ sidebar_position: 5
```
```json title="Result"
{
{
"ok": true
}
```

View File

@@ -26,12 +26,10 @@ sidebar_position: 1
```bsl title="Code example"
Channel = "C070VPMKN8J";
Channel = "C070VPMKN8J";
Response = OPI_Slack.GetExternalFileList(Token, Channel); //Map
Response = OPI_Tools.JSONString(Response); //JSON string
```
@@ -43,7 +41,7 @@ sidebar_position: 1
```
```json title="Result"
{
{
"ok": true,
"files": [],
"response_metadata": {

View File

@@ -25,12 +25,10 @@ sidebar_position: 2
```bsl title="Code example"
FileID = "F070P52CU94";
FileID = "F070P52CU94";
Response = OPI_Slack.GetExternalFile(Token, FileID); //Map
Response = OPI_Tools.JSONString(Response); //JSON string
```
@@ -42,7 +40,7 @@ sidebar_position: 2
```
```json title="Result"
{
{
"ok": true,
"file": {
"id": "F070P52CU94",

View File

@@ -26,13 +26,11 @@ sidebar_position: 4
```bsl title="Code example"
Channel = "C070VPMKN8J";
Channel = "C070VPMKN8J";
FileID = "F070P52CU94";
Response = OPI_Slack.SendExternalFile(Token, FileID, Channel); //Map
Response = OPI_Tools.JSONString(Response); //JSON string
```
@@ -44,7 +42,7 @@ sidebar_position: 4
```
```json title="Result"
{
{
"ok": true,
"file": {
"id": "F070P52CU94",

View File

@@ -25,12 +25,10 @@ sidebar_position: 4
```bsl title="Code example"
FileID = "F070VL6FQFM";
FileID = "F070VL6FQFM";
Response = OPI_Slack.DeleteFile(Token, FileID); //Map
Response = OPI_Tools.JSONString(Response);//JSON string
```
@@ -42,7 +40,7 @@ sidebar_position: 4
```
```json title="Result"
{
{
"ok": true
}
```

View File

@@ -25,12 +25,10 @@ sidebar_position: 3
```bsl title="Code example"
FileID = "F070VL6FQFM";
FileID = "F070VL6FQFM";
Response = OPI_Slack.GetFileData(Token, FileID); //Map
Response = OPI_Tools.JSONString(Response); //JSON string
```
@@ -42,7 +40,7 @@ sidebar_position: 3
```
```json title="Result"
{
{
"ok": true,
"file": {
"id": "F070VL6FQFM",

View File

@@ -26,13 +26,11 @@ sidebar_position: 1
```bsl title="Code example"
PageNumber = 1;
PageNumber = 1;
Channel = "C123456";
Response = OPI_Slack.GetFilesList(Token, Channel, PageNumber); //Map
Response = OPI_Tools.JSONString(Response); //JSON string
```
@@ -44,7 +42,7 @@ sidebar_position: 1
```
```json title="Result"
{
{
"ok": true,
"files": [
{

View File

@@ -28,15 +28,13 @@ sidebar_position: 2
```bsl title="Code example"
FileName = "megadoc.docx";
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
```
@@ -48,7 +46,7 @@ sidebar_position: 2
```
```json title="Result"
{
{
"ok": true,
"files": [
{

View File

@@ -24,11 +24,8 @@ sidebar_position: 1
```bsl title="Code example"
Response = OPI_Slack.GetBotInformation(Token); //Map
Response = OPI_Slack.GetBotInformation(Token); //Map
Response = OPI_Tools.JSONString(Response); //JSON string
```
@@ -40,7 +37,7 @@ sidebar_position: 1
```
```json title="Result"
{
{
"ok": true,
"url": "https://openintegrationsgroup.slack.com/",
"team": "OpenIntegrations",

View File

@@ -25,11 +25,8 @@ sidebar_position: 3
```bsl title="Code example"
Response = OPI_Slack.GetUserList(Token, Cursor); //Map
Response = OPI_Slack.GetUserList(Token, Cursor); //Map
Response = OPI_Tools.JSONString(Response); //JSON string
```
@@ -41,7 +38,7 @@ sidebar_position: 3
```
```json title="Result"
{
{
"ok": true,
"members": [
{

View File

@@ -25,11 +25,8 @@ sidebar_position: 2
```bsl title="Code example"
Response = OPI_Slack.GetWorkspaceList(Token); //Map
Response = OPI_Slack.GetWorkspaceList(Token); //Map
Response = OPI_Tools.JSONString(Response); //JSON string
```
@@ -41,7 +38,7 @@ sidebar_position: 2
```
```json title="Result"
{
{
"ok": true,
"teams": [
{

View File

@@ -27,13 +27,11 @@ sidebar_position: 4
```bsl title="Code example"
Channel = "C06UFNUTKUL";
Channel = "C06UFNUTKUL";
Timestamp = "1714146538.221929";
Response = OPI_Slack.DeleteMessage(Token, Channel, Timestamp); //Map
Response = OPI_Tools.JSONString(Response); //JSON string
```
@@ -45,7 +43,7 @@ sidebar_position: 4
```
```json title="Result"
{
{
"ok": true,
"channel": "C06UFNUTKUL",
"ts": "1714146538.221929"

View File

@@ -28,14 +28,12 @@ sidebar_position: 3
```bsl title="Code example"
Channel = "C070VPMKN8J";
Channel = "C070VPMKN8J";
Timestamp = "1714146538.221929";
Text = "TestMessage2";
Response = OPI_Slack.EditMessage(Token, Channel, Timestamp, Text); //Map
Response = OPI_Tools.JSONString(Response); //JSON string
```
@@ -47,7 +45,7 @@ sidebar_position: 3
```
```json title="Result"
{
{
"ok": true,
"channel": "C06UFNUTKUL",
"ts": "1714146538.221929",

View File

@@ -26,12 +26,10 @@ sidebar_position: 5
```bsl title="Code example"
Channel = "C070VPMKN8J";
Channel = "C070VPMKN8J";
Response = OPI_Slack.GetDelayedMessageList(Token, Channel); //Map
Response = OPI_Tools.JSONString(Response); //JSON string
```
@@ -43,7 +41,7 @@ sidebar_position: 5
```
```json title="Result"
{
{
"ok": true,
"scheduled_messages": [],
"response_metadata": {

View File

@@ -26,13 +26,11 @@ sidebar_position: 6
```bsl title="Code example"
Channel = "C070VPMKN8J";
Channel = "C070VPMKN8J";
Timestamp = "1714146538.221929";
Response = OPI_Slack.GetMessageLink(Token, Channel, Timestamp); //Map
Response = OPI_Tools.JSONString(Response); //JSON string
```
@@ -44,7 +42,7 @@ sidebar_position: 6
```
```json title="Result"
{
{
"ok": true,
"permalink": "https://openintegrationsgroup.slack.com/archives/C06UFNUTKUL/p1714146538221929",
"channel": "C06UFNUTKUL"

View File

@@ -27,13 +27,11 @@ sidebar_position: 7
```bsl title="Code example"
Channel = "C070VPMKN8J";
Channel = "C070VPMKN8J";
Timestamp = "1714146538.221929";
Response = OPI_Slack.GetMessageReplyList(Token, Channel, Timestamp); //Map
Response = OPI_Tools.JSONString(Response); //JSON string
```
@@ -45,7 +43,7 @@ sidebar_position: 7
```
```json title="Result"
{
{
"ok": true,
"messages": [
{

View File

@@ -28,13 +28,11 @@ Sends a message that arrives in the channel but is visible only to a specific us
```bsl title="Code example"
Channel = "C070VPMKN8J";
Channel = "C070VPMKN8J";
Block = OPI_Slack.GenerateImageBlock("https://opi.neocities.org/test_data/picture.jpg", "Image");
Response = OPI_Slack.SendEphemeralMessage(Token, Channel,, User, Block); //Map
Response = OPI_Tools.JSONString(Response); //JSON string
```
@@ -46,7 +44,7 @@ Sends a message that arrives in the channel but is visible only to a specific us
```
```json title="Result"
{
{
"ok": true,
"message_ts": "1714146540.000300"
}

View File

@@ -28,13 +28,11 @@ sidebar_position: 1
```bsl title="Code example"
Channel = "C070VPMKN8J";
Channel = "C070VPMKN8J";
Text = "TestMessage";
Response = OPI_Slack.SendMessage(Token, Channel, Text); //Map
Response = OPI_Tools.JSONString(Response); //JSON string
```
@@ -46,7 +44,7 @@ sidebar_position: 1
```
```json title="Result"
{
{
"ok": true,
"channel": "C06UFNUTKUL",
"ts": "1714146538.221929",