You've already forked OpenIntegrations
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:
@@ -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";
|
||||
|
||||
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);
|
||||
|
||||
@@ -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);
|
||||
|
||||
@@ -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";
|
||||
|
||||
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);
|
||||
|
||||
@@ -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);
|
||||
|
||||
@@ -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);
|
||||
|
||||
@@ -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");
|
||||
|
||||
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);
|
||||
|
||||
@@ -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);
|
||||
|
||||
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user