mirror of
https://github.com/Bayselonarrend/OpenIntegrations.git
synced 2025-02-03 13:22:19 +02:00
Main build (Jenkins)
This commit is contained in:
parent
4ab15c4cce
commit
94b649b700
@ -347,10 +347,6 @@ pipeline {
|
||||
powershell encoding: 'UTF-8', script:'1testrunner -run "./src/en/OInt/tests/Modules/internal/OPI_Tests.os" "GT_CreateTable"'
|
||||
}
|
||||
|
||||
catchError(buildResult: 'FAILURE', stageResult: 'FAILURE') {
|
||||
powershell encoding: 'UTF-8', script:'1testrunner -run "./src/en/OInt/tests/Modules/internal/OPI_Tests.os" "GT_GetTable"'
|
||||
}
|
||||
|
||||
catchError(buildResult: 'FAILURE', stageResult: 'FAILURE') {
|
||||
powershell encoding: 'UTF-8', script:'1testrunner -run "./src/en/OInt/tests/Modules/internal/OPI_Tests.os" "GT_FillClearCells"'
|
||||
}
|
||||
|
18
ci/ostestru
18
ci/ostestru
@ -402,29 +402,13 @@ pipeline {
|
||||
|
||||
|
||||
catchError(buildResult: 'FAILURE', stageResult: 'FAILURE') {
|
||||
powershell encoding: 'UTF-8', script:'1testrunner -run "./src/ru/OInt/tests/Modules/internal/OPI_Тесты.os" "Слак_ПолучитьИнформациюОБоте"'
|
||||
}
|
||||
|
||||
catchError(buildResult: 'FAILURE', stageResult: 'FAILURE') {
|
||||
powershell encoding: 'UTF-8', script:'1testrunner -run "./src/ru/OInt/tests/Modules/internal/OPI_Тесты.os" "Слак_ПолучитьСписокПользователей"'
|
||||
}
|
||||
|
||||
catchError(buildResult: 'FAILURE', stageResult: 'FAILURE') {
|
||||
powershell encoding: 'UTF-8', script:'1testrunner -run "./src/ru/OInt/tests/Modules/internal/OPI_Тесты.os" "Слак_ПолучитьСписокОбластей"'
|
||||
powershell encoding: 'UTF-8', script:'1testrunner -run "./src/ru/OInt/tests/Modules/internal/OPI_Тесты.os" "Слак_ПолучитьИнформацию"'
|
||||
}
|
||||
|
||||
catchError(buildResult: 'FAILURE', stageResult: 'FAILURE') {
|
||||
powershell encoding: 'UTF-8', script:'1testrunner -run "./src/ru/OInt/tests/Modules/internal/OPI_Тесты.os" "Слак_ОтправитьУдалитьСообщение"'
|
||||
}
|
||||
|
||||
catchError(buildResult: 'FAILURE', stageResult: 'FAILURE') {
|
||||
powershell encoding: 'UTF-8', script:'1testrunner -run "./src/ru/OInt/tests/Modules/internal/OPI_Тесты.os" "Слак_ОтправитьУдалитьЭфемерное"'
|
||||
}
|
||||
|
||||
catchError(buildResult: 'FAILURE', stageResult: 'FAILURE') {
|
||||
powershell encoding: 'UTF-8', script:'1testrunner -run "./src/ru/OInt/tests/Modules/internal/OPI_Тесты.os" "Слак_ПолучитьОтложенныеСообщения"'
|
||||
}
|
||||
|
||||
catchError(buildResult: 'FAILURE', stageResult: 'FAILURE') {
|
||||
powershell encoding: 'UTF-8', script:'1testrunner -run "./src/ru/OInt/tests/Modules/internal/OPI_Тесты.os" "Слак_СоздатьАрхивироватьКанал"'
|
||||
}
|
||||
|
@ -1,4 +1,5 @@
|
||||
{
|
||||
"Token": "xoxb-6965308400114-696804637...",
|
||||
"Channel": "C06UFNUTKUL",
|
||||
"Timestamp": "1714146538.221929"
|
||||
}
|
@ -1,4 +1,5 @@
|
||||
{
|
||||
"Token": "xoxb-6965308400114-696804637...",
|
||||
"Channel": "C070VPMKN8J",
|
||||
"Timestamp": "1714146538.221929",
|
||||
"Text": "TestMessage2"
|
||||
|
3
docs/en/data/Slack/GetBotInformation.json
Normal file
3
docs/en/data/Slack/GetBotInformation.json
Normal file
@ -0,0 +1,3 @@
|
||||
{
|
||||
"Token": "xoxb-6965308400114-696804637..."
|
||||
}
|
@ -1,3 +1,4 @@
|
||||
{
|
||||
"Token": "xoxb-6965308400114-696804637...",
|
||||
"Channel": "C070VPMKN8J"
|
||||
}
|
@ -1,4 +1,5 @@
|
||||
{
|
||||
"Token": "xoxb-6965308400114-696804637...",
|
||||
"Channel": "C070VPMKN8J",
|
||||
"Timestamp": "1714146538.221929"
|
||||
}
|
@ -1,4 +1,5 @@
|
||||
{
|
||||
"Token": "xoxb-6965308400114-696804637...",
|
||||
"Channel": "C070VPMKN8J",
|
||||
"Timestamp": "1714146538.221929"
|
||||
}
|
3
docs/en/data/Slack/GetUserList.json
Normal file
3
docs/en/data/Slack/GetUserList.json
Normal file
@ -0,0 +1,3 @@
|
||||
{
|
||||
"Token": "xoxb-6965308400114-696804637..."
|
||||
}
|
3
docs/en/data/Slack/GetWorkspaceList.json
Normal file
3
docs/en/data/Slack/GetWorkspaceList.json
Normal file
@ -0,0 +1,3 @@
|
||||
{
|
||||
"Token": "xoxb-6965308400114-696804637..."
|
||||
}
|
@ -1,3 +1,6 @@
|
||||
{
|
||||
"Channel": "C070VPMKN8J"
|
||||
"Token": "xoxb-6965308400114-696804637...",
|
||||
"Channel": "C070VPMKN8J",
|
||||
"User": "U06UABH3APP",
|
||||
"Image": "https://github.com/Bayselonarrend/OpenIntegrations/raw/main/service/test_data/picture.jpg"
|
||||
}
|
@ -1,4 +1,6 @@
|
||||
{
|
||||
"Token": "xoxb-6965308400114-696804637...",
|
||||
"Channel": "C070VPMKN8J",
|
||||
"Image": "https://github.com/Bayselonarrend/OpenIntegrations/raw/main/service/test_data/picture.jpg",
|
||||
"Text": "TestMessage"
|
||||
}
|
@ -1,7 +1,7 @@
|
||||
URL = "https://b24-ar17wx.bitrix24.by/rest/1/1o2...";
|
||||
ChatID = "872";
|
||||
|
||||
Image = "https://openintegrations.dev/test_data/picture2.jpg";
|
||||
Image = "https://github.com/Bayselonarrend/OpenIntegrations/raw/main/service/test_data/picture2.jpg";
|
||||
|
||||
Result = OPI_Bitrix24.ChangeChatPicture(URL, ChatID, Image);
|
||||
|
||||
|
@ -1,4 +1,4 @@
|
||||
Image = "https://openintegrations.dev/test_data/picture.jpg";
|
||||
Image = "https://github.com/Bayselonarrend/OpenIntegrations/raw/main/service/test_data/picture.jpg";
|
||||
OPI_TypeConversion.GetBinaryData(Image);
|
||||
|
||||
B64Image = GetBase64StringFromBinaryData(Image);
|
||||
|
@ -1,7 +1,7 @@
|
||||
Text = "Text of post";
|
||||
Title = "Post title";
|
||||
Image1 = "https://openintegrations.dev/test_data/picture.jpg"; // URL, Path or Binary Data
|
||||
Image2 = "https://openintegrations.dev/test_data/picture2.jpg"; // URL, Path or Binary Data
|
||||
Image1 = "https://github.com/Bayselonarrend/OpenIntegrations/raw/main/service/test_data/picture.jpg"; // URL, Path or Binary Data
|
||||
Image2 = "https://github.com/Bayselonarrend/OpenIntegrations/raw/main/service/test_data/picture2.jpg"; // URL, Path or Binary Data
|
||||
|
||||
Files = New Map;
|
||||
Files.Insert("1.png", Image1);
|
||||
|
@ -1,6 +1,6 @@
|
||||
URL = "https://b24-ar17wx.bitrix24.by/rest/1/1o2...";
|
||||
ChatID = "872";
|
||||
File = "https://openintegrations.dev/test_data/document.docx"; // Binary Data, URL or path to file
|
||||
File = "https://github.com/Bayselonarrend/OpenIntegrations/raw/main/service/test_data/document.docx"; // Binary Data, URL or path to file
|
||||
Description = "Very important file";
|
||||
|
||||
Directory = OPI_Bitrix24.GetChatFilesFolder(URL, ChatID);
|
||||
|
@ -1,6 +1,6 @@
|
||||
Text = "New post text";
|
||||
Title = "New post title";
|
||||
Image1 = "https://openintegrations.dev/test_data/picture.jpg"; // URL, Path or Binary Data
|
||||
Image1 = "https://github.com/Bayselonarrend/OpenIntegrations/raw/main/service/test_data/picture.jpg"; // URL, Path or Binary Data
|
||||
PostID = "836";
|
||||
|
||||
Files = New Map;
|
||||
|
@ -1,8 +1,8 @@
|
||||
Filename2 = "Picture2.jpg";
|
||||
Name = "Picture1.jpg";
|
||||
|
||||
Image2 = "https://openintegrations.dev/test_data/picture.jpg"; // Local path, URL or Binary Data
|
||||
Image = "https://openintegrations.dev/test_data/picture2.jpg"; // Local path, URL or Binary Data
|
||||
Image2 = "https://github.com/Bayselonarrend/OpenIntegrations/raw/main/service/test_data/picture.jpg"; // Local path, URL or Binary Data
|
||||
Image = "https://github.com/Bayselonarrend/OpenIntegrations/raw/main/service/test_data/picture2.jpg"; // Local path, URL or Binary Data
|
||||
|
||||
DestinationID = "10842";
|
||||
|
||||
|
@ -1,8 +1,8 @@
|
||||
Filename2 = "Picture2.jpg";
|
||||
Name = "Picture1.jpg";
|
||||
|
||||
Image2 = "https://openintegrations.dev/test_data/picture.jpg"; // Local path, URL or Binary Data
|
||||
Image = "https://openintegrations.dev/test_data/picture2.jpg"; // Local path, URL or Binary Data
|
||||
Image2 = "https://github.com/Bayselonarrend/OpenIntegrations/raw/main/service/test_data/picture.jpg"; // Local path, URL or Binary Data
|
||||
Image = "https://github.com/Bayselonarrend/OpenIntegrations/raw/main/service/test_data/picture2.jpg"; // Local path, URL or Binary Data
|
||||
|
||||
DestinationID = 3;
|
||||
|
||||
|
@ -1,6 +1,6 @@
|
||||
Path = "/New/pic.png";
|
||||
Token = "sl.B9sYGdZdLILSnqlGZCwLFCstq1B1GsgevbBkwi4UK_UlNyhGAoJ1fKoXMy3dQhkEb3e80HTL6g...";
|
||||
Image = "https://openintegrations.dev/test_data/picture.jpg";
|
||||
Image = "https://github.com/Bayselonarrend/OpenIntegrations/raw/main/service/test_data/picture.jpg";
|
||||
|
||||
ImagePath = GetTempFileName("png");
|
||||
CopyFile(Image, ImagePath);
|
||||
|
@ -1,5 +1,5 @@
|
||||
Path = "/New/url_doc.docx";
|
||||
Token = "sl.B9sYGdZdLILSnqlGZCwLFCstq1B1GsgevbBkwi4UK_UlNyhGAoJ1fKoXMy3dQhkEb3e80HTL6g...";
|
||||
URL = "https://openintegrations.dev/test_data/document.docx";
|
||||
URL = "https://github.com/Bayselonarrend/OpenIntegrations/raw/main/service/test_data/document.docx";
|
||||
|
||||
Result = OPI_Dropbox.UploadFileByURL(Token, URL, Path);
|
||||
|
@ -5,8 +5,8 @@
|
||||
Description = "TestEventDescription";
|
||||
Hour = 3600;
|
||||
|
||||
Image1 = "https://openintegrations.dev/test_data/picture.jpg"; // URL, Binary or Path to file
|
||||
Image2 = "https://openintegrations.dev/test_data/picture2.jpg"; // URL, Binary or Path to file
|
||||
Image1 = "https://github.com/Bayselonarrend/OpenIntegrations/raw/main/service/test_data/picture.jpg"; // URL, Binary or Path to file
|
||||
Image2 = "https://github.com/Bayselonarrend/OpenIntegrations/raw/main/service/test_data/picture2.jpg"; // URL, Binary or Path to file
|
||||
Attachments = New Map;
|
||||
|
||||
Attachments.Insert("Image1", Image1);
|
||||
|
@ -1,6 +1,6 @@
|
||||
Token = "ya29.a0AcM612wLdbBK14FR2SE0d3WHabYb8Xtppm0oKCcbVrecgsA-a5DfsgZ29stOw4hu84F_IpHbKTJocsm1WpjLQPBT5MJ6p8D7H1PKa_iT0...";
|
||||
NewName = "UpdatedFile.jpg";
|
||||
Identifier = "1RijXw14hyQN_59ZOzJ9f35ezzU_qd114";
|
||||
File = "https://openintegrations.dev/test_data/picture2.jpg"; // URL, Binary Data or Path to file
|
||||
File = "https://github.com/Bayselonarrend/OpenIntegrations/raw/main/service/test_data/picture2.jpg"; // URL, Binary Data or Path to file
|
||||
|
||||
Result = OPI_GoogleDrive.UpdateFile(Token, Identifier, File, NewName);
|
||||
|
@ -1,5 +1,5 @@
|
||||
Token = "ya29.a0AcM612wLdbBK14FR2SE0d3WHabYb8Xtppm0oKCcbVrecgsA-a5DfsgZ29stOw4hu84F_IpHbKTJocsm1WpjLQPBT5MJ6p8D7H1PKa_iT0...";
|
||||
Image = "https://openintegrations.dev/test_data/picture.jpg";
|
||||
Image = "https://github.com/Bayselonarrend/OpenIntegrations/raw/main/service/test_data/picture.jpg";
|
||||
Directory = "191iyaa6-2BCNRPOF0F8mQ0TuNWPNesdM";
|
||||
|
||||
Description = OPI_GoogleDrive.GetFileDescription();
|
||||
|
@ -1,5 +1,5 @@
|
||||
Token = "7419cd51de4037f7...";
|
||||
Data = "https://openintegrations.dev/test_data/picture.jpg"; // URL, Path or Binary Data
|
||||
Data = "https://github.com/Bayselonarrend/OpenIntegrations/raw/main/service/test_data/picture.jpg"; // URL, Path or Binary Data
|
||||
Path = "testfolder/test_pic.png";
|
||||
|
||||
Result = OPI_Neocities.UploadFile(Token, Path, Data);
|
||||
|
@ -1,8 +1,8 @@
|
||||
Token = "7419cd51de4037f7...";
|
||||
|
||||
Image1 = "https://openintegrations.dev/test_data/picture.jpg"; // URL, Path or Binary Data
|
||||
Image2 = "https://openintegrations.dev/test_data/picture2.jpg"; // URL, Path or Binary Data
|
||||
GIF = "https://openintegrations.dev/test_data/animation.gif"; // URL, Path or Binary Data
|
||||
Image1 = "https://github.com/Bayselonarrend/OpenIntegrations/raw/main/service/test_data/picture.jpg"; // URL, Path or Binary Data
|
||||
Image2 = "https://github.com/Bayselonarrend/OpenIntegrations/raw/main/service/test_data/picture2.jpg"; // URL, Path or Binary Data
|
||||
GIF = "https://github.com/Bayselonarrend/OpenIntegrations/raw/main/service/test_data/animation.gif"; // URL, Path or Binary Data
|
||||
|
||||
FileMapping = New Map;
|
||||
FileMapping.Insert("test/pic1.png", Image1);
|
||||
|
@ -1,7 +1,7 @@
|
||||
ClientID = "2128753";
|
||||
APIKey = "7cc90d26-33e4-499b...";
|
||||
Image1 = "https://openintegrations.dev/test_data/picture.jpg";
|
||||
Image2 = "https://openintegrations.dev/test_data/picture2.jpg";
|
||||
Image1 = "https://github.com/Bayselonarrend/OpenIntegrations/raw/main/service/test_data/picture.jpg";
|
||||
Image2 = "https://github.com/Bayselonarrend/OpenIntegrations/raw/main/service/test_data/picture2.jpg";
|
||||
Video = "https://rutube.ru/video/c6cc4d620b1d4338901770a44b3e82f4/";
|
||||
|
||||
ImageArray = New Array;
|
||||
|
@ -2,8 +2,8 @@
|
||||
APIKey = "7cc90d26-33e4-499b...";
|
||||
ProductID = "1202180384";
|
||||
|
||||
Image1 = "https://openintegrations.dev/test_data/picture.jpg";
|
||||
Image2 = "https://openintegrations.dev/test_data/picture2.jpg";
|
||||
Image1 = "https://github.com/Bayselonarrend/OpenIntegrations/raw/main/service/test_data/picture.jpg";
|
||||
Image2 = "https://github.com/Bayselonarrend/OpenIntegrations/raw/main/service/test_data/picture2.jpg";
|
||||
|
||||
MarketingColor = "GREEN";
|
||||
|
||||
|
@ -1,6 +1,5 @@
|
||||
|
||||
Channel = "C06UFNUTKUL";
|
||||
Timestamp = "1714146538.221929";
|
||||
Token = "xoxb-6965308400114-696804637...";
|
||||
Channel = "C06UFNUTKUL";
|
||||
Timestamp = "1727601574.499569";
|
||||
|
||||
Response = OPI_Slack.DeleteMessage(Token, Channel, Timestamp); //Map
|
||||
Response = OPI_Tools.JSONString(Response); //JSON string
|
||||
Result = OPI_Slack.DeleteMessage(Token, Channel, Timestamp);
|
||||
|
@ -1,7 +1,7 @@
|
||||
|
||||
Channel = "C070VPMKN8J";
|
||||
Timestamp = "1714146538.221929";
|
||||
Text = "TestMessage2";
|
||||
Token = "xoxb-6965308400114-696804637...";
|
||||
Channel = "C06UFNUTKUL";
|
||||
Timestamp = "1727601574.499569";
|
||||
|
||||
Response = OPI_Slack.EditMessage(Token, Channel, Timestamp, Text); //Map
|
||||
Response = OPI_Tools.JSONString(Response); //JSON string
|
||||
Text = "TestMessage2";
|
||||
|
||||
Result = OPI_Slack.EditMessage(Token, Channel, Timestamp, Text);
|
||||
|
@ -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);
|
||||
|
@ -1,5 +1,4 @@
|
||||
|
||||
Channel = "C070VPMKN8J";
|
||||
Token = "xoxb-6965308400114-696804637...";
|
||||
Channel = "C06UFNUTKUL";
|
||||
|
||||
Response = OPI_Slack.GetDelayedMessageList(Token, Channel); //Map
|
||||
Response = OPI_Tools.JSONString(Response); //JSON string
|
||||
Result = OPI_Slack.GetDelayedMessageList(Token, Channel);
|
||||
|
@ -1,6 +1,5 @@
|
||||
|
||||
Channel = "C070VPMKN8J";
|
||||
Timestamp = "1714146538.221929";
|
||||
Token = "xoxb-6965308400114-696804637...";
|
||||
Channel = "C06UFNUTKUL";
|
||||
Timestamp = "1727601574.499569";
|
||||
|
||||
Response = OPI_Slack.GetMessageLink(Token, Channel, Timestamp); //Map
|
||||
Response = OPI_Tools.JSONString(Response); //JSON string
|
||||
Result = OPI_Slack.GetMessageLink(Token, Channel, Timestamp);
|
||||
|
@ -1,6 +1,5 @@
|
||||
|
||||
Channel = "C070VPMKN8J";
|
||||
Timestamp = "1714146538.221929";
|
||||
Token = "xoxb-6965308400114-696804637...";
|
||||
Channel = "C06UFNUTKUL";
|
||||
Timestamp = "1727601574.499569";
|
||||
|
||||
Response = OPI_Slack.GetMessageReplyList(Token, Channel, Timestamp); //Map
|
||||
Response = OPI_Tools.JSONString(Response); //JSON string
|
||||
Result = OPI_Slack.GetMessageReplyList(Token, Channel, Timestamp);
|
||||
|
@ -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);
|
||||
|
@ -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);
|
||||
|
@ -1,6 +1,8 @@
|
||||
|
||||
Channel = "C070VPMKN8J";
|
||||
Block = OPI_Slack.GenerateImageBlock("https://opi.neocities.org/test_data/picture.jpg", "Image");
|
||||
Token = "xoxb-6965308400114-696804637...";
|
||||
Channel = "C06UFNUTKUL";
|
||||
User = "U06UABH3APP";
|
||||
Image = "https://github.com/Bayselonarrend/OpenIntegrations/raw/main/service/test_data/picture.jpg";
|
||||
Text = "Ephemeral message";
|
||||
|
||||
Response = OPI_Slack.SendEphemeralMessage(Token, Channel,, User, Block); //Map
|
||||
Response = OPI_Tools.JSONString(Response); //JSON string
|
||||
Block = OPI_Slack.GenerateImageBlock(Image, "Image");
|
||||
Result = OPI_Slack.SendEphemeralMessage(Token, Channel, Text, User, Block);
|
||||
|
@ -1,6 +1,27 @@
|
||||
|
||||
Channel = "C070VPMKN8J";
|
||||
Text = "TestMessage";
|
||||
Token = "xoxb-6965308400114-696804637...";
|
||||
Channel = "C06UFNUTKUL";
|
||||
|
||||
Response = OPI_Slack.SendMessage(Token, Channel, Text); //Map
|
||||
Response = OPI_Tools.JSONString(Response); //JSON string
|
||||
// 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);
|
||||
|
@ -2,7 +2,7 @@
|
||||
ChatID = "461699897";
|
||||
ChannelID = "@testsichee";
|
||||
Text = "Строковое значение";
|
||||
Audio = "https://openintegrations.dev/test_data/song.mp3";
|
||||
Audio = "https://github.com/Bayselonarrend/OpenIntegrations/raw/main/service/test_data/song.mp3";
|
||||
|
||||
AudioPath = GetTempFileName("mp3");
|
||||
CopyFile(Audio, AudioPath);
|
||||
|
@ -2,7 +2,7 @@
|
||||
ChatID = "461699897";
|
||||
ChannelID = "@testsichee";
|
||||
Text = "Строковое значение";
|
||||
Document = "https://openintegrations.dev/test_data/document.docx";
|
||||
Document = "https://github.com/Bayselonarrend/OpenIntegrations/raw/main/service/test_data/document.docx";
|
||||
|
||||
DocumentPath = GetTempFileName("docx");
|
||||
CopyFile(Document, DocumentPath);
|
||||
|
@ -2,7 +2,7 @@
|
||||
ChatID = "461699897";
|
||||
ChannelID = "@testsichee";
|
||||
Text = "Строковое значение";
|
||||
GIF = "https://openintegrations.dev/test_data/animation.gif";
|
||||
GIF = "https://github.com/Bayselonarrend/OpenIntegrations/raw/main/service/test_data/animation.gif";
|
||||
|
||||
GifPath = GetTempFileName("gif");
|
||||
CopyFile(GIF, GifPath);
|
||||
|
@ -1,8 +1,8 @@
|
||||
Token = "6129457865:AAFyzNYOAFbu...";
|
||||
ChatID = "461699897";
|
||||
Text = "Строковое значение";
|
||||
Image = "https://openintegrations.dev/test_data/picture.jpg";
|
||||
Video = "https://openintegrations.dev/test_data/video.mp4";
|
||||
Image = "https://github.com/Bayselonarrend/OpenIntegrations/raw/main/service/test_data/picture.jpg";
|
||||
Video = "https://github.com/Bayselonarrend/OpenIntegrations/raw/main/service/test_data/video.mp4";
|
||||
|
||||
ImagePath = GetTempFileName("png");
|
||||
CopyFile(Image, ImagePath);
|
||||
|
@ -2,7 +2,7 @@
|
||||
ChatID = "461699897";
|
||||
ChannelID = "@testsichee";
|
||||
Text = "Строковое значение";
|
||||
Image = "https://openintegrations.dev/test_data/picture.jpg";
|
||||
Image = "https://github.com/Bayselonarrend/OpenIntegrations/raw/main/service/test_data/picture.jpg";
|
||||
|
||||
ImagePath = GetTempFileName("png");
|
||||
CopyFile(Image, ImagePath);
|
||||
|
@ -2,7 +2,7 @@
|
||||
ChatID = "461699897";
|
||||
ChannelID = "@testsichee";
|
||||
Text = "Строковое значение";
|
||||
Video = "https://openintegrations.dev/test_data/video.mp4";
|
||||
Video = "https://github.com/Bayselonarrend/OpenIntegrations/raw/main/service/test_data/video.mp4";
|
||||
|
||||
VideoPath = GetTempFileName("mp4");
|
||||
CopyFile(Video, VideoPath);
|
||||
|
@ -1,7 +1,7 @@
|
||||
Parameters = GetVKParameters();
|
||||
|
||||
Image1 = "https://openintegrations.dev/test_data/picture.jpg"; // URL, Binary or Path to file
|
||||
Image2 = "https://openintegrations.dev/test_data/picture2.jpg"; // URL, Binary or Path to file
|
||||
Image1 = "https://github.com/Bayselonarrend/OpenIntegrations/raw/main/service/test_data/picture.jpg"; // URL, Binary or Path to file
|
||||
Image2 = "https://github.com/Bayselonarrend/OpenIntegrations/raw/main/service/test_data/picture2.jpg"; // URL, Binary or Path to file
|
||||
Selection = "121";
|
||||
|
||||
ImageArray = New Array;
|
||||
|
@ -2,8 +2,8 @@
|
||||
Text = "Post from autotest";
|
||||
URL = "https://github.com/Bayselonarrend/OpenIntegrations";
|
||||
|
||||
Image = "https://openintegrations.dev/test_data/picture.jpg"; // URL, Path or Binary Data
|
||||
Video = "https://openintegrations.dev/test_data/video.mp4"; // URL, Path or Binary Data
|
||||
Image = "https://github.com/Bayselonarrend/OpenIntegrations/raw/main/service/test_data/picture.jpg"; // URL, Path or Binary Data
|
||||
Video = "https://github.com/Bayselonarrend/OpenIntegrations/raw/main/service/test_data/video.mp4"; // URL, Path or Binary Data
|
||||
|
||||
TFN = GetTempFileName("png");
|
||||
CopyFile(Image, TFN);
|
||||
|
@ -2,8 +2,8 @@
|
||||
Text = "Post from autotest";
|
||||
URL = "https://github.com/Bayselonarrend/OpenIntegrations";
|
||||
|
||||
Image = "https://openintegrations.dev/test_data/picture.jpg"; // URL, Path or Binary Data
|
||||
Image2 = "https://openintegrations.dev/test_data/picture2.jpg"; // URL, Path or Binary Data
|
||||
Image = "https://github.com/Bayselonarrend/OpenIntegrations/raw/main/service/test_data/picture.jpg"; // URL, Path or Binary Data
|
||||
Image2 = "https://github.com/Bayselonarrend/OpenIntegrations/raw/main/service/test_data/picture2.jpg"; // URL, Path or Binary Data
|
||||
|
||||
TFN = GetTempFileName("png");
|
||||
CopyFile(Image2, TFN);
|
||||
|
@ -1,7 +1,7 @@
|
||||
Parameters = GetVKParameters();
|
||||
|
||||
Name = "TestCollection";
|
||||
Image = "https://openintegrations.dev/test_data/picture.jpg";
|
||||
Image = "https://github.com/Bayselonarrend/OpenIntegrations/raw/main/service/test_data/picture.jpg";
|
||||
Main = True;
|
||||
Hidden = False;
|
||||
|
||||
|
@ -1,7 +1,7 @@
|
||||
Parameters = GetVKParameters();
|
||||
|
||||
Image1 = "https://openintegrations.dev/test_data/picture.jpg";
|
||||
Image2 = "https://openintegrations.dev/test_data/picture2.jpg";
|
||||
Image1 = "https://github.com/Bayselonarrend/OpenIntegrations/raw/main/service/test_data/picture.jpg";
|
||||
Image2 = "https://github.com/Bayselonarrend/OpenIntegrations/raw/main/service/test_data/picture2.jpg";
|
||||
PropVariant1 = "2450";
|
||||
PropVariant2 = "2451";
|
||||
|
||||
|
@ -1,7 +1,7 @@
|
||||
Parameters = GetVKParameters();
|
||||
URL = "https://github.com/Bayselonarrend/OpenIntegrations";
|
||||
|
||||
Image = "https://openintegrations.dev/test_data/picture.jpg"; // URL, Path to file or Binary Data
|
||||
Image = "https://github.com/Bayselonarrend/OpenIntegrations/raw/main/service/test_data/picture.jpg"; // URL, Path to file or Binary Data
|
||||
TFN = GetTempFileName("png");
|
||||
CopyFile(Image, TFN);
|
||||
Image = New BinaryData(TFN);
|
||||
|
@ -2,7 +2,7 @@
|
||||
ImageDescription = "AutoTestImage";
|
||||
AlbumID = "305905563";
|
||||
|
||||
Image = "https://openintegrations.dev/test_data/picture.jpg"; // URL, Path to file or Binary Data
|
||||
Image = "https://github.com/Bayselonarrend/OpenIntegrations/raw/main/service/test_data/picture.jpg"; // URL, Path to file or Binary Data
|
||||
TFN = GetTempFileName("png");
|
||||
CopyFile(Image, TFN);
|
||||
|
||||
|
@ -1,6 +1,6 @@
|
||||
Parameters = GetVKParameters();
|
||||
|
||||
Video = "https://openintegrations.dev/test_data/video.mp4";
|
||||
Video = "https://github.com/Bayselonarrend/OpenIntegrations/raw/main/service/test_data/video.mp4";
|
||||
Name = "NewVideo";
|
||||
Description = "Video description";
|
||||
|
||||
|
@ -1,7 +1,7 @@
|
||||
Token = "001.3501506236.091...";
|
||||
ChatID = "AoLI0egLWBSLR1Ngn2w";
|
||||
|
||||
File = "https://openintegrations.dev/test_data/spy2.png"; // URL
|
||||
File = "https://github.com/Bayselonarrend/OpenIntegrations/raw/main/service/test_data/spy2.png"; // URL
|
||||
FilePath = GetTempFileName("png"); // Path
|
||||
|
||||
CopyFile(File, FilePath);
|
||||
|
@ -2,7 +2,7 @@
|
||||
ChatID = "AoLI0egLWBSLR1Ngn2w";
|
||||
Text = "File caption";
|
||||
|
||||
File = "https://openintegrations.dev/test_data/document.docx"; // URL
|
||||
File = "https://github.com/Bayselonarrend/OpenIntegrations/raw/main/service/test_data/document.docx"; // URL
|
||||
FilePath = GetTempFileName("docx"); // Path
|
||||
|
||||
CopyFile(File, FilePath);
|
||||
|
@ -3,7 +3,7 @@
|
||||
ReplyID = "7419291601358293295";
|
||||
Text = "File caption";
|
||||
|
||||
File = "https://openintegrations.dev/test_data/song.m4a" ; // URL
|
||||
File = "https://github.com/Bayselonarrend/OpenIntegrations/raw/main/service/test_data/song.m4a" ; // URL
|
||||
FilePath = GetTempFileName("m4a"); // Path
|
||||
|
||||
CopyFile(File, FilePath);
|
||||
|
@ -1,5 +1,5 @@
|
||||
Extension = "docx";
|
||||
URL = "https://openintegrations.dev/test_data/document.docx";
|
||||
URL = "https://github.com/Bayselonarrend/OpenIntegrations/raw/main/service/test_data/document.docx";
|
||||
|
||||
UserID = "d3jxe61Z4W73nmNkjYGgZg==";
|
||||
Token = "523b5b25ed27e6ec-fdf013e4...";
|
||||
|
@ -1,5 +1,5 @@
|
||||
Description = "TestMessage";
|
||||
URL = "https://openintegrations.dev/test_data/picture.jpg";
|
||||
URL = "https://github.com/Bayselonarrend/OpenIntegrations/raw/main/service/test_data/picture.jpg";
|
||||
|
||||
UserID = "d3jxe61Z4W73nmNkjYGgZg==";
|
||||
Token = "523b5b25ed27e6ec-fdf013e4...";
|
||||
|
@ -2,7 +2,7 @@
|
||||
Path2 = "/" + String(New UUID) + ".png";
|
||||
|
||||
Token = "y0_AgAAAABdylaOAAs0QgAAAAD5i-a...";
|
||||
Image = "https://openintegrations.dev/test_data/picture.jpg"; // URL
|
||||
Image = "https://github.com/Bayselonarrend/OpenIntegrations/raw/main/service/test_data/picture.jpg"; // URL
|
||||
|
||||
TFN = GetTempFileName("png"); // Path
|
||||
CopyFile(Image, TFN);
|
||||
|
@ -1,5 +1,5 @@
|
||||
Token = "y0_AgAAAABdylaOAAs0QgAAAAD5i-a...";
|
||||
Address = "https://openintegrations.dev/test_data/picture.jpg";
|
||||
Address = "https://github.com/Bayselonarrend/OpenIntegrations/raw/main/service/test_data/picture.jpg";
|
||||
Path = "/" + String(New UUID) + ".png";
|
||||
|
||||
Result = OPI_YandexDisk.UploadFileByURL(Token, Path, Address);
|
||||
|
@ -31,7 +31,7 @@ Method at API documentation: [im.chat.updateAvatar](https://dev.1c-bitrix.ru/lea
|
||||
URL = "https://b24-ar17wx.bitrix24.by/rest/1/1o2...";
|
||||
ChatID = "872";
|
||||
|
||||
Image = "https://openintegrations.dev/test_data/picture2.jpg";
|
||||
Image = "https://github.com/Bayselonarrend/OpenIntegrations/raw/main/service/test_data/picture2.jpg";
|
||||
|
||||
Result = OPI_Bitrix24.ChangeChatPicture(URL, ChatID, Image);
|
||||
|
||||
|
@ -27,7 +27,7 @@ Method at API documentation: [im.chat.add](https://dev.1c-bitrix.ru/learning/cou
|
||||
|
||||
|
||||
```bsl title="Code example"
|
||||
Image = "https://openintegrations.dev/test_data/picture.jpg";
|
||||
Image = "https://github.com/Bayselonarrend/OpenIntegrations/raw/main/service/test_data/picture.jpg";
|
||||
OPI_TypeConversion.GetBinaryData(Image);
|
||||
|
||||
B64Image = GetBase64StringFromBinaryData(Image);
|
||||
|
@ -33,8 +33,8 @@ Method at API documentation: [log.blogpost.add](https://dev.1c-bitrix.ru/rest_he
|
||||
```bsl title="Code example"
|
||||
Text = "Text of post";
|
||||
Title = "Post title";
|
||||
Image1 = "https://openintegrations.dev/test_data/picture.jpg"; // URL, Path or Binary Data
|
||||
Image2 = "https://openintegrations.dev/test_data/picture2.jpg"; // URL, Path or Binary Data
|
||||
Image1 = "https://github.com/Bayselonarrend/OpenIntegrations/raw/main/service/test_data/picture.jpg"; // URL, Path or Binary Data
|
||||
Image2 = "https://github.com/Bayselonarrend/OpenIntegrations/raw/main/service/test_data/picture2.jpg"; // URL, Path or Binary Data
|
||||
|
||||
Files = New Map;
|
||||
Files.Insert("1.png", Image1);
|
||||
|
@ -33,7 +33,7 @@ Method at API documentation: [log.blogpost.update](https://dev.1c-bitrix.ru/rest
|
||||
```bsl title="Code example"
|
||||
Text = "New post text";
|
||||
Title = "New post title";
|
||||
Image1 = "https://openintegrations.dev/test_data/picture.jpg"; // URL, Path or Binary Data
|
||||
Image1 = "https://github.com/Bayselonarrend/OpenIntegrations/raw/main/service/test_data/picture.jpg"; // URL, Path or Binary Data
|
||||
PostID = "836";
|
||||
|
||||
Files = New Map;
|
||||
|
@ -32,8 +32,8 @@ Method at API documentation: [disk.folder.uploadfile](https://dev.1c-bitrix.ru/r
|
||||
Filename2 = "Picture2.jpg";
|
||||
Name = "Picture1.jpg";
|
||||
|
||||
Image2 = "https://openintegrations.dev/test_data/picture.jpg"; // Local path, URL or Binary Data
|
||||
Image = "https://openintegrations.dev/test_data/picture2.jpg"; // Local path, URL or Binary Data
|
||||
Image2 = "https://github.com/Bayselonarrend/OpenIntegrations/raw/main/service/test_data/picture.jpg"; // Local path, URL or Binary Data
|
||||
Image = "https://github.com/Bayselonarrend/OpenIntegrations/raw/main/service/test_data/picture2.jpg"; // Local path, URL or Binary Data
|
||||
|
||||
DestinationID = "10842";
|
||||
|
||||
|
@ -33,8 +33,8 @@ Method at API documentation: [disk.storage.uploadfile](https://dev.1c-bitrix.ru/
|
||||
Filename2 = "Picture2.jpg";
|
||||
Name = "Picture1.jpg";
|
||||
|
||||
Image2 = "https://openintegrations.dev/test_data/picture.jpg"; // Local path, URL or Binary Data
|
||||
Image = "https://openintegrations.dev/test_data/picture2.jpg"; // Local path, URL or Binary Data
|
||||
Image2 = "https://github.com/Bayselonarrend/OpenIntegrations/raw/main/service/test_data/picture.jpg"; // Local path, URL or Binary Data
|
||||
Image = "https://github.com/Bayselonarrend/OpenIntegrations/raw/main/service/test_data/picture2.jpg"; // Local path, URL or Binary Data
|
||||
|
||||
DestinationID = 3;
|
||||
|
||||
|
@ -31,7 +31,7 @@ Method at API documentation: [im.disk.file.commit](https://dev.1c-bitrix.ru/lear
|
||||
```bsl title="Code example"
|
||||
URL = "https://b24-ar17wx.bitrix24.by/rest/1/1o2...";
|
||||
ChatID = "872";
|
||||
File = "https://openintegrations.dev/test_data/document.docx"; // Binary Data, URL or path to file
|
||||
File = "https://github.com/Bayselonarrend/OpenIntegrations/raw/main/service/test_data/document.docx"; // Binary Data, URL or path to file
|
||||
Description = "Very important file";
|
||||
|
||||
Directory = OPI_Bitrix24.GetChatFilesFolder(URL, ChatID);
|
||||
|
@ -26,7 +26,7 @@ sidebar_position: 5
|
||||
```bsl title="Code example"
|
||||
Path = "/New/url_doc.docx";
|
||||
Token = "sl.B9sYGdZdLILSnqlGZCwLFCstq1B1GsgevbBkwi4UK_UlNyhGAoJ1fKoXMy3dQhkEb3e80HTL6g...";
|
||||
URL = "https://openintegrations.dev/test_data/document.docx";
|
||||
URL = "https://github.com/Bayselonarrend/OpenIntegrations/raw/main/service/test_data/document.docx";
|
||||
|
||||
Result = OPI_Dropbox.UploadFileByURL(Token, URL, Path);
|
||||
```
|
||||
|
@ -27,7 +27,7 @@ sidebar_position: 4
|
||||
```bsl title="Code example"
|
||||
Path = "/New/pic.png";
|
||||
Token = "sl.B9sYGdZdLILSnqlGZCwLFCstq1B1GsgevbBkwi4UK_UlNyhGAoJ1fKoXMy3dQhkEb3e80HTL6g...";
|
||||
Image = "https://openintegrations.dev/test_data/picture.jpg";
|
||||
Image = "https://github.com/Bayselonarrend/OpenIntegrations/raw/main/service/test_data/picture.jpg";
|
||||
|
||||
ImagePath = GetTempFileName("png");
|
||||
CopyFile(Image, ImagePath);
|
||||
|
@ -31,8 +31,8 @@ sidebar_position: 4
|
||||
Description = "TestEventDescription";
|
||||
Hour = 3600;
|
||||
|
||||
Image1 = "https://openintegrations.dev/test_data/picture.jpg"; // URL, Binary or Path to file
|
||||
Image2 = "https://openintegrations.dev/test_data/picture2.jpg"; // URL, Binary or Path to file
|
||||
Image1 = "https://github.com/Bayselonarrend/OpenIntegrations/raw/main/service/test_data/picture.jpg"; // URL, Binary or Path to file
|
||||
Image2 = "https://github.com/Bayselonarrend/OpenIntegrations/raw/main/service/test_data/picture2.jpg"; // URL, Binary or Path to file
|
||||
Attachments = New Map;
|
||||
|
||||
Attachments.Insert("Image1", Image1);
|
||||
|
@ -28,7 +28,7 @@ sidebar_position: 8
|
||||
Token = "ya29.a0AcM612wLdbBK14FR2SE0d3WHabYb8Xtppm0oKCcbVrecgsA-a5DfsgZ29stOw4hu84F_IpHbKTJocsm1WpjLQPBT5MJ6p8D7H1PKa_iT0...";
|
||||
NewName = "UpdatedFile.jpg";
|
||||
Identifier = "1RijXw14hyQN_59ZOzJ9f35ezzU_qd114";
|
||||
File = "https://openintegrations.dev/test_data/picture2.jpg"; // URL, Binary Data or Path to file
|
||||
File = "https://github.com/Bayselonarrend/OpenIntegrations/raw/main/service/test_data/picture2.jpg"; // URL, Binary Data or Path to file
|
||||
|
||||
Result = OPI_GoogleDrive.UpdateFile(Token, Identifier, File, NewName);
|
||||
```
|
||||
|
@ -25,7 +25,7 @@ sidebar_position: 4
|
||||
|
||||
```bsl title="Code example"
|
||||
Token = "ya29.a0AcM612wLdbBK14FR2SE0d3WHabYb8Xtppm0oKCcbVrecgsA-a5DfsgZ29stOw4hu84F_IpHbKTJocsm1WpjLQPBT5MJ6p8D7H1PKa_iT0...";
|
||||
Image = "https://openintegrations.dev/test_data/picture.jpg";
|
||||
Image = "https://github.com/Bayselonarrend/OpenIntegrations/raw/main/service/test_data/picture.jpg";
|
||||
Directory = "191iyaa6-2BCNRPOF0F8mQ0TuNWPNesdM";
|
||||
|
||||
Description = OPI_GoogleDrive.GetFileDescription();
|
||||
|
@ -28,7 +28,7 @@ Neocities API docs: [neocities.org/api](https://neocities.org/api)
|
||||
|
||||
```bsl title="Code example"
|
||||
Token = "7419cd51de4037f7...";
|
||||
Data = "https://openintegrations.dev/test_data/picture.jpg"; // URL, Path or Binary Data
|
||||
Data = "https://github.com/Bayselonarrend/OpenIntegrations/raw/main/service/test_data/picture.jpg"; // URL, Path or Binary Data
|
||||
Path = "testfolder/test_pic.png";
|
||||
|
||||
Result = OPI_Neocities.UploadFile(Token, Path, Data);
|
||||
|
@ -29,9 +29,9 @@ Neocities API docs: [neocities.org/api](https://neocities.org/api)
|
||||
```bsl title="Code example"
|
||||
Token = "7419cd51de4037f7...";
|
||||
|
||||
Image1 = "https://openintegrations.dev/test_data/picture.jpg"; // URL, Path or Binary Data
|
||||
Image2 = "https://openintegrations.dev/test_data/picture2.jpg"; // URL, Path or Binary Data
|
||||
GIF = "https://openintegrations.dev/test_data/animation.gif"; // URL, Path or Binary Data
|
||||
Image1 = "https://github.com/Bayselonarrend/OpenIntegrations/raw/main/service/test_data/picture.jpg"; // URL, Path or Binary Data
|
||||
Image2 = "https://github.com/Bayselonarrend/OpenIntegrations/raw/main/service/test_data/picture2.jpg"; // URL, Path or Binary Data
|
||||
GIF = "https://github.com/Bayselonarrend/OpenIntegrations/raw/main/service/test_data/animation.gif"; // URL, Path or Binary Data
|
||||
|
||||
FileMapping = New Map;
|
||||
FileMapping.Insert("test/pic1.png", Image1);
|
||||
|
@ -33,8 +33,8 @@ Methods of product structure formation: GetProductStructure(), AddProductVideo()
|
||||
```bsl title="Code example"
|
||||
ClientID = "2128753";
|
||||
APIKey = "7cc90d26-33e4-499b...";
|
||||
Image1 = "https://openintegrations.dev/test_data/picture.jpg";
|
||||
Image2 = "https://openintegrations.dev/test_data/picture2.jpg";
|
||||
Image1 = "https://github.com/Bayselonarrend/OpenIntegrations/raw/main/service/test_data/picture.jpg";
|
||||
Image2 = "https://github.com/Bayselonarrend/OpenIntegrations/raw/main/service/test_data/picture2.jpg";
|
||||
Video = "https://rutube.ru/video/c6cc4d620b1d4338901770a44b3e82f4/";
|
||||
|
||||
ImageArray = New Array;
|
||||
|
@ -40,8 +40,8 @@ On each method call, send all the images that should be on the product card
|
||||
APIKey = "7cc90d26-33e4-499b...";
|
||||
ProductID = "1202180384";
|
||||
|
||||
Image1 = "https://openintegrations.dev/test_data/picture.jpg";
|
||||
Image2 = "https://openintegrations.dev/test_data/picture2.jpg";
|
||||
Image1 = "https://github.com/Bayselonarrend/OpenIntegrations/raw/main/service/test_data/picture.jpg";
|
||||
Image2 = "https://github.com/Bayselonarrend/OpenIntegrations/raw/main/service/test_data/picture2.jpg";
|
||||
|
||||
MarketingColor = "GREEN";
|
||||
|
||||
|
@ -22,10 +22,8 @@ sidebar_position: 1
|
||||
|
||||
|
||||
```bsl title="Code example"
|
||||
|
||||
|
||||
Response = OPI_Slack.GetBotInformation(Token); //Map
|
||||
Response = OPI_Tools.JSONString(Response); //JSON string
|
||||
Token = "xoxb-6965308400114-696804637...";
|
||||
Result = OPI_Slack.GetBotInformation(Token);
|
||||
```
|
||||
|
||||
|
||||
|
@ -23,10 +23,8 @@ sidebar_position: 3
|
||||
|
||||
|
||||
```bsl title="Code example"
|
||||
|
||||
|
||||
Response = OPI_Slack.GetUserList(Token, Cursor); //Map
|
||||
Response = OPI_Tools.JSONString(Response); //JSON string
|
||||
Token = "xoxb-6965308400114-696804637...";
|
||||
Result = OPI_Slack.GetUserList(Token);
|
||||
```
|
||||
|
||||
|
||||
|
@ -23,10 +23,8 @@ sidebar_position: 2
|
||||
|
||||
|
||||
```bsl title="Code example"
|
||||
|
||||
|
||||
Response = OPI_Slack.GetWorkspaceList(Token); //Map
|
||||
Response = OPI_Tools.JSONString(Response); //JSON string
|
||||
Token = "xoxb-6965308400114-696804637...";
|
||||
Result = OPI_Slack.GetWorkspaceList(Token);
|
||||
```
|
||||
|
||||
|
||||
|
@ -25,12 +25,11 @@ sidebar_position: 4
|
||||
|
||||
|
||||
```bsl title="Code example"
|
||||
Token = "xoxb-6965308400114-696804637...";
|
||||
Channel = "C06UFNUTKUL";
|
||||
Timestamp = "1727601574.499569";
|
||||
|
||||
Channel = "C06UFNUTKUL";
|
||||
Timestamp = "1714146538.221929";
|
||||
|
||||
Response = OPI_Slack.DeleteMessage(Token, Channel, Timestamp); //Map
|
||||
Response = OPI_Tools.JSONString(Response); //JSON string
|
||||
Result = OPI_Slack.DeleteMessage(Token, Channel, Timestamp);
|
||||
```
|
||||
|
||||
|
||||
|
@ -26,13 +26,13 @@ sidebar_position: 3
|
||||
|
||||
|
||||
```bsl title="Code example"
|
||||
Token = "xoxb-6965308400114-696804637...";
|
||||
Channel = "C06UFNUTKUL";
|
||||
Timestamp = "1727601574.499569";
|
||||
|
||||
Channel = "C070VPMKN8J";
|
||||
Timestamp = "1714146538.221929";
|
||||
Text = "TestMessage2";
|
||||
Text = "TestMessage2";
|
||||
|
||||
Response = OPI_Slack.EditMessage(Token, Channel, Timestamp, Text); //Map
|
||||
Response = OPI_Tools.JSONString(Response); //JSON string
|
||||
Result = OPI_Slack.EditMessage(Token, Channel, Timestamp, Text);
|
||||
```
|
||||
|
||||
|
||||
|
@ -24,11 +24,10 @@ sidebar_position: 5
|
||||
|
||||
|
||||
```bsl title="Code example"
|
||||
Token = "xoxb-6965308400114-696804637...";
|
||||
Channel = "C06UFNUTKUL";
|
||||
|
||||
Channel = "C070VPMKN8J";
|
||||
|
||||
Response = OPI_Slack.GetDelayedMessageList(Token, Channel); //Map
|
||||
Response = OPI_Tools.JSONString(Response); //JSON string
|
||||
Result = OPI_Slack.GetDelayedMessageList(Token, Channel);
|
||||
```
|
||||
|
||||
|
||||
|
@ -24,12 +24,11 @@ sidebar_position: 6
|
||||
|
||||
|
||||
```bsl title="Code example"
|
||||
Token = "xoxb-6965308400114-696804637...";
|
||||
Channel = "C06UFNUTKUL";
|
||||
Timestamp = "1727601574.499569";
|
||||
|
||||
Channel = "C070VPMKN8J";
|
||||
Timestamp = "1714146538.221929";
|
||||
|
||||
Response = OPI_Slack.GetMessageLink(Token, Channel, Timestamp); //Map
|
||||
Response = OPI_Tools.JSONString(Response); //JSON string
|
||||
Result = OPI_Slack.GetMessageLink(Token, Channel, Timestamp);
|
||||
```
|
||||
|
||||
|
||||
|
@ -25,12 +25,11 @@ sidebar_position: 7
|
||||
|
||||
|
||||
```bsl title="Code example"
|
||||
Token = "xoxb-6965308400114-696804637...";
|
||||
Channel = "C06UFNUTKUL";
|
||||
Timestamp = "1727601574.499569";
|
||||
|
||||
Channel = "C070VPMKN8J";
|
||||
Timestamp = "1714146538.221929";
|
||||
|
||||
Response = OPI_Slack.GetMessageReplyList(Token, Channel, Timestamp); //Map
|
||||
Response = OPI_Tools.JSONString(Response); //JSON string
|
||||
Result = OPI_Slack.GetMessageReplyList(Token, Channel, Timestamp);
|
||||
```
|
||||
|
||||
|
||||
|
@ -26,12 +26,14 @@ Sends a message that arrives in the channel but is visible only to a specific us
|
||||
|
||||
|
||||
```bsl title="Code example"
|
||||
Token = "xoxb-6965308400114-696804637...";
|
||||
Channel = "C06UFNUTKUL";
|
||||
User = "U06UABH3APP";
|
||||
Image = "https://github.com/Bayselonarrend/OpenIntegrations/raw/main/service/test_data/picture.jpg";
|
||||
Text = "Ephemeral message";
|
||||
|
||||
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
|
||||
Block = OPI_Slack.GenerateImageBlock(Image, "Image");
|
||||
Result = OPI_Slack.SendEphemeralMessage(Token, Channel, Text, User, Block);
|
||||
```
|
||||
|
||||
|
||||
|
@ -26,12 +26,33 @@ sidebar_position: 1
|
||||
|
||||
|
||||
```bsl title="Code example"
|
||||
Token = "xoxb-6965308400114-696804637...";
|
||||
Channel = "C06UFNUTKUL";
|
||||
|
||||
Channel = "C070VPMKN8J";
|
||||
Text = "TestMessage";
|
||||
// Text
|
||||
|
||||
Response = OPI_Slack.SendMessage(Token, Channel, Text); //Map
|
||||
Response = OPI_Tools.JSONString(Response); //JSON string
|
||||
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);
|
||||
```
|
||||
|
||||
|
||||
|
@ -31,7 +31,7 @@ sidebar_position: 4
|
||||
ChatID = "461699897";
|
||||
ChannelID = "@testsichee";
|
||||
Text = "Строковое значение";
|
||||
Audio = "https://openintegrations.dev/test_data/song.mp3";
|
||||
Audio = "https://github.com/Bayselonarrend/OpenIntegrations/raw/main/service/test_data/song.mp3";
|
||||
|
||||
AudioPath = GetTempFileName("mp3");
|
||||
CopyFile(Audio, AudioPath);
|
||||
|
@ -32,7 +32,7 @@ sidebar_position: 5
|
||||
ChatID = "461699897";
|
||||
ChannelID = "@testsichee";
|
||||
Text = "Строковое значение";
|
||||
Document = "https://openintegrations.dev/test_data/document.docx";
|
||||
Document = "https://github.com/Bayselonarrend/OpenIntegrations/raw/main/service/test_data/document.docx";
|
||||
|
||||
DocumentPath = GetTempFileName("docx");
|
||||
CopyFile(Document, DocumentPath);
|
||||
|
@ -31,7 +31,7 @@ sidebar_position: 6
|
||||
ChatID = "461699897";
|
||||
ChannelID = "@testsichee";
|
||||
Text = "Строковое значение";
|
||||
GIF = "https://openintegrations.dev/test_data/animation.gif";
|
||||
GIF = "https://github.com/Bayselonarrend/OpenIntegrations/raw/main/service/test_data/animation.gif";
|
||||
|
||||
GifPath = GetTempFileName("gif");
|
||||
CopyFile(GIF, GifPath);
|
||||
|
@ -33,8 +33,8 @@ Map: Key - File, Value - media type
|
||||
Token = "6129457865:AAFyzNYOAFbu...";
|
||||
ChatID = "461699897";
|
||||
Text = "Строковое значение";
|
||||
Image = "https://openintegrations.dev/test_data/picture.jpg";
|
||||
Video = "https://openintegrations.dev/test_data/video.mp4";
|
||||
Image = "https://github.com/Bayselonarrend/OpenIntegrations/raw/main/service/test_data/picture.jpg";
|
||||
Video = "https://github.com/Bayselonarrend/OpenIntegrations/raw/main/service/test_data/video.mp4";
|
||||
|
||||
ImagePath = GetTempFileName("png");
|
||||
CopyFile(Image, ImagePath);
|
||||
|
@ -31,7 +31,7 @@ sidebar_position: 3
|
||||
ChatID = "461699897";
|
||||
ChannelID = "@testsichee";
|
||||
Text = "Строковое значение";
|
||||
Video = "https://openintegrations.dev/test_data/video.mp4";
|
||||
Video = "https://github.com/Bayselonarrend/OpenIntegrations/raw/main/service/test_data/video.mp4";
|
||||
|
||||
VideoPath = GetTempFileName("mp4");
|
||||
CopyFile(Video, VideoPath);
|
||||
|
@ -30,8 +30,8 @@ sidebar_position: 2
|
||||
Text = "Post from autotest";
|
||||
URL = "https://github.com/Bayselonarrend/OpenIntegrations";
|
||||
|
||||
Image = "https://openintegrations.dev/test_data/picture.jpg"; // URL, Path or Binary Data
|
||||
Video = "https://openintegrations.dev/test_data/video.mp4"; // URL, Path or Binary Data
|
||||
Image = "https://github.com/Bayselonarrend/OpenIntegrations/raw/main/service/test_data/picture.jpg"; // URL, Path or Binary Data
|
||||
Video = "https://github.com/Bayselonarrend/OpenIntegrations/raw/main/service/test_data/video.mp4"; // URL, Path or Binary Data
|
||||
|
||||
TFN = GetTempFileName("png");
|
||||
CopyFile(Image, TFN);
|
||||
|
@ -30,8 +30,8 @@ sidebar_position: 1
|
||||
Text = "Post from autotest";
|
||||
URL = "https://github.com/Bayselonarrend/OpenIntegrations";
|
||||
|
||||
Image = "https://openintegrations.dev/test_data/picture.jpg"; // URL, Path or Binary Data
|
||||
Image2 = "https://openintegrations.dev/test_data/picture2.jpg"; // URL, Path or Binary Data
|
||||
Image = "https://github.com/Bayselonarrend/OpenIntegrations/raw/main/service/test_data/picture.jpg"; // URL, Path or Binary Data
|
||||
Image2 = "https://github.com/Bayselonarrend/OpenIntegrations/raw/main/service/test_data/picture2.jpg"; // URL, Path or Binary Data
|
||||
|
||||
TFN = GetTempFileName("png");
|
||||
CopyFile(Image2, TFN);
|
||||
|
@ -27,7 +27,7 @@ sidebar_position: 7
|
||||
Parameters = GetVKParameters();
|
||||
URL = "https://github.com/Bayselonarrend/OpenIntegrations";
|
||||
|
||||
Image = "https://openintegrations.dev/test_data/picture.jpg"; // URL, Path to file or Binary Data
|
||||
Image = "https://github.com/Bayselonarrend/OpenIntegrations/raw/main/service/test_data/picture.jpg"; // URL, Path to file or Binary Data
|
||||
TFN = GetTempFileName("png");
|
||||
CopyFile(Image, TFN);
|
||||
Image = New BinaryData(TFN);
|
||||
|
@ -28,7 +28,7 @@ sidebar_position: 10
|
||||
```bsl title="Code example"
|
||||
Parameters = GetVKParameters();
|
||||
|
||||
Video = "https://openintegrations.dev/test_data/video.mp4";
|
||||
Video = "https://github.com/Bayselonarrend/OpenIntegrations/raw/main/service/test_data/video.mp4";
|
||||
Name = "NewVideo";
|
||||
Description = "Video description";
|
||||
|
||||
|
@ -26,8 +26,8 @@ sidebar_position: 4
|
||||
```bsl title="Code example"
|
||||
Parameters = GetVKParameters();
|
||||
|
||||
Image1 = "https://openintegrations.dev/test_data/picture.jpg"; // URL, Binary or Path to file
|
||||
Image2 = "https://openintegrations.dev/test_data/picture2.jpg"; // URL, Binary or Path to file
|
||||
Image1 = "https://github.com/Bayselonarrend/OpenIntegrations/raw/main/service/test_data/picture.jpg"; // URL, Binary or Path to file
|
||||
Image2 = "https://github.com/Bayselonarrend/OpenIntegrations/raw/main/service/test_data/picture2.jpg"; // URL, Binary or Path to file
|
||||
Selection = "121";
|
||||
|
||||
ImageArray = New Array;
|
||||
|
@ -29,7 +29,7 @@ sidebar_position: 3
|
||||
Parameters = GetVKParameters();
|
||||
|
||||
Name = "TestCollection";
|
||||
Image = "https://openintegrations.dev/test_data/picture.jpg";
|
||||
Image = "https://github.com/Bayselonarrend/OpenIntegrations/raw/main/service/test_data/picture.jpg";
|
||||
Main = True;
|
||||
Hidden = False;
|
||||
|
||||
|
@ -30,7 +30,7 @@ Method at API documentation: [POST /chats/avatar/set](https://teams.vk.
|
||||
Token = "001.3501506236.091...";
|
||||
ChatID = "AoLI0egLWBSLR1Ngn2w";
|
||||
|
||||
File = "https://openintegrations.dev/test_data/spy2.png"; // URL
|
||||
File = "https://github.com/Bayselonarrend/OpenIntegrations/raw/main/service/test_data/spy2.png"; // URL
|
||||
FilePath = GetTempFileName("png"); // Path
|
||||
|
||||
CopyFile(File, FilePath);
|
||||
|
@ -34,7 +34,7 @@ Method at API documentation: [POST /messages/sendFile](https://teams.vk.com/bota
|
||||
ChatID = "AoLI0egLWBSLR1Ngn2w";
|
||||
Text = "File caption";
|
||||
|
||||
File = "https://openintegrations.dev/test_data/document.docx"; // URL
|
||||
File = "https://github.com/Bayselonarrend/OpenIntegrations/raw/main/service/test_data/document.docx"; // URL
|
||||
FilePath = GetTempFileName("docx"); // Path
|
||||
|
||||
CopyFile(File, FilePath);
|
||||
|
@ -37,7 +37,7 @@ If you want the client to display this file as a playable voice message, it must
|
||||
ReplyID = "7419291601358293295";
|
||||
Text = "File caption";
|
||||
|
||||
File = "https://openintegrations.dev/test_data/song.m4a" ; // URL
|
||||
File = "https://github.com/Bayselonarrend/OpenIntegrations/raw/main/service/test_data/song.m4a" ; // URL
|
||||
FilePath = GetTempFileName("m4a"); // Path
|
||||
|
||||
CopyFile(File, FilePath);
|
||||
|
@ -28,7 +28,7 @@ sidebar_position: 3
|
||||
|
||||
```bsl title="Code example"
|
||||
Extension = "docx";
|
||||
URL = "https://openintegrations.dev/test_data/document.docx";
|
||||
URL = "https://github.com/Bayselonarrend/OpenIntegrations/raw/main/service/test_data/document.docx";
|
||||
|
||||
UserID = "d3jxe61Z4W73nmNkjYGgZg==";
|
||||
Token = "523b5b25ed27e6ec-fdf013e4...";
|
||||
|
Some files were not shown because too many files have changed in this diff Show More
Loading…
x
Reference in New Issue
Block a user