1
0
mirror of https://github.com/Bayselonarrend/OpenIntegrations.git synced 2025-11-25 22:12:29 +02:00

Main build (Jenkins)

This commit is contained in:
Vitaly the Alpaca (bot)
2024-09-29 12:34:39 +03:00
parent 4d0b26ad97
commit bf7a7febc2
214 changed files with 5809 additions and 5573 deletions

View File

@@ -1,6 +1,5 @@

Channel = "C06UFNUTKUL";
Timestamp = "1714146538.221929";
Response = OPI_Slack.DeleteMessage(Token, Channel, Timestamp); //Map
Response = OPI_Tools.JSONString(Response); //JSON string
 Token = "xoxb-6965308400114-696804637...";
Channel = "C06UFNUTKUL";
Timestamp = "1727601574.499569";
Result = OPI_Slack.DeleteMessage(Token, Channel, Timestamp);

View File

@@ -1,7 +1,7 @@

Channel = "C070VPMKN8J";
Timestamp = "1714146538.221929";
Text = "TestMessage2";
Response = OPI_Slack.EditMessage(Token, Channel, Timestamp, Text); //Map
Response = OPI_Tools.JSONString(Response); //JSON string
 Token = "xoxb-6965308400114-696804637...";
Channel = "C06UFNUTKUL";
Timestamp = "1727601574.499569";
Text = "TestMessage2";
Result = OPI_Slack.EditMessage(Token, Channel, Timestamp, Text);

View File

@@ -1,4 +1,2 @@

Response = OPI_Slack.GetBotInformation(Token); //Map
Response = OPI_Tools.JSONString(Response); //JSON string
 Token = "xoxb-6965308400114-696804637...";
Result = OPI_Slack.GetBotInformation(Token);

View File

@@ -1,5 +1,4 @@

Channel = "C070VPMKN8J";
Response = OPI_Slack.GetDelayedMessageList(Token, Channel); //Map
Response = OPI_Tools.JSONString(Response); //JSON string
 Token = "xoxb-6965308400114-696804637...";
Channel = "C06UFNUTKUL";
Result = OPI_Slack.GetDelayedMessageList(Token, Channel);

View File

@@ -1,6 +1,5 @@

Channel = "C070VPMKN8J";
Timestamp = "1714146538.221929";
Response = OPI_Slack.GetMessageLink(Token, Channel, Timestamp); //Map
Response = OPI_Tools.JSONString(Response); //JSON string
 Token = "xoxb-6965308400114-696804637...";
Channel = "C06UFNUTKUL";
Timestamp = "1727601574.499569";
Result = OPI_Slack.GetMessageLink(Token, Channel, Timestamp);

View File

@@ -1,6 +1,5 @@

Channel = "C070VPMKN8J";
Timestamp = "1714146538.221929";
Response = OPI_Slack.GetMessageReplyList(Token, Channel, Timestamp); //Map
Response = OPI_Tools.JSONString(Response); //JSON string
 Token = "xoxb-6965308400114-696804637...";
Channel = "C06UFNUTKUL";
Timestamp = "1727601574.499569";
Result = OPI_Slack.GetMessageReplyList(Token, Channel, Timestamp);

View File

@@ -1,4 +1,2 @@

Response = OPI_Slack.GetUserList(Token, Cursor); //Map
Response = OPI_Tools.JSONString(Response); //JSON string
 Token = "xoxb-6965308400114-696804637...";
Result = OPI_Slack.GetUserList(Token);

View File

@@ -1,4 +1,2 @@

Response = OPI_Slack.GetWorkspaceList(Token); //Map
Response = OPI_Tools.JSONString(Response); //JSON string
 Token = "xoxb-6965308400114-696804637...";
Result = OPI_Slack.GetWorkspaceList(Token);

View File

@@ -1,6 +1,8 @@

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
 Token = "xoxb-6965308400114-696804637...";
Channel = "C06UFNUTKUL";
User = "U06UABH3APP";
Image = "https://github.com/Bayselonarrend/OpenIntegrations/raw/main/service/test_data/picture.jpg";
Text = "Ephemeral message";
Block = OPI_Slack.GenerateImageBlock(Image, "Image");
Result = OPI_Slack.SendEphemeralMessage(Token, Channel, Text, User, Block);

View File

@@ -1,6 +1,27 @@

Channel = "C070VPMKN8J";
Text = "TestMessage";
Response = OPI_Slack.SendMessage(Token, Channel, Text); //Map
Response = OPI_Tools.JSONString(Response); //JSON string
 Token = "xoxb-6965308400114-696804637...";
Channel = "C06UFNUTKUL";
// Text
Text = "TestMessage1";
Result = OPI_Slack.SendMessage(Token, Channel, Text);
// With attachments (picture block in the example)
Text = "Message with picture";
Image = "https://github.com/Bayselonarrend/OpenIntegrations/raw/main/service/test_data/picture.jpg";
BlockArray = New Array;
Block = OPI_Slack.GenerateImageBlock(Image, "Image");
BlockArray.Add(Block);
Result = OPI_Slack.SendMessage(Token, Channel, Text, , BlockArray);
// Sheduled
Text = "Sheduled message";
Hour = 3600;
Day = 24;
SendingDate = OPI_Tools.GetCurrentDate() + (Day * Hour);
Result = OPI_Slack.SendMessage(Token, Channel, Text, SendingDate);