mirror of
https://github.com/Bayselonarrend/OpenIntegrations.git
synced 2025-03-23 21:29:38 +02:00
Main build (Jenkins)
This commit is contained in:
parent
690d525b70
commit
1dd489de49
@ -1,7 +1,7 @@
|
|||||||
URL = "https://b24-ar17wx.bitrix24.by/rest/1/1o2...";
|
URL = "https://b24-ar17wx.bitrix24.by/rest/1/1o2...";
|
||||||
ChatID = "872";
|
ChatID = "872";
|
||||||
|
|
||||||
Image = "https://github.com/Bayselonarrend/OpenIntegrations/raw/main/service/test_data/picture2.jpg";
|
Image = "https://openyellow.neocities.org/test_data/picture2.jpg";
|
||||||
|
|
||||||
Result = OPI_Bitrix24.ChangeChatPicture(URL, ChatID, Image);
|
Result = OPI_Bitrix24.ChangeChatPicture(URL, ChatID, Image);
|
||||||
|
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
Image = "https://github.com/Bayselonarrend/OpenIntegrations/raw/main/service/test_data/picture.jpg";
|
Image = "https://openyellow.neocities.org/test_data/picture.jpg";
|
||||||
OPI_TypeConversion.GetBinaryData(Image);
|
OPI_TypeConversion.GetBinaryData(Image);
|
||||||
|
|
||||||
B64Image = GetBase64StringFromBinaryData(Image);
|
B64Image = GetBase64StringFromBinaryData(Image);
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
Text = "Text of post";
|
Text = "Text of post";
|
||||||
Title = "Post title";
|
Title = "Post title";
|
||||||
Image1 = "https://github.com/Bayselonarrend/OpenIntegrations/raw/main/service/test_data/picture.jpg"; // URL, Path or Binary Data
|
Image1 = "https://openyellow.neocities.org/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
|
Image2 = "https://openyellow.neocities.org/test_data/picture2.jpg"; // URL, Path or Binary Data
|
||||||
|
|
||||||
Files = New Map;
|
Files = New Map;
|
||||||
Files.Insert("1.png", Image1);
|
Files.Insert("1.png", Image1);
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
Name = "Image";
|
Name = "Image";
|
||||||
URL = "https://github.com/Bayselonarrend/OpenIntegrations/raw/main/service/test_data/document.docx";
|
URL = "https://openyellow.neocities.org/test_data/document.docx";
|
||||||
|
|
||||||
Result = OPI_Bitrix24.GetFileBlock(Name, URL);
|
Result = OPI_Bitrix24.GetFileBlock(Name, URL);
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
Name = "Image";
|
Name = "Image";
|
||||||
URL = "https://github.com/Bayselonarrend/OpenIntegrations/raw/main/service/test_data/picture.jpg";
|
URL = "https://openyellow.neocities.org/test_data/picture.jpg";
|
||||||
|
|
||||||
Result = OPI_Bitrix24.GetPictureBlock(Name, URL);
|
Result = OPI_Bitrix24.GetPictureBlock(Name, URL);
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
URL = "https://b24-ar17wx.bitrix24.by/rest/1/1o2...";
|
URL = "https://b24-ar17wx.bitrix24.by/rest/1/1o2...";
|
||||||
ChatID = "872";
|
ChatID = "872";
|
||||||
File = "https://github.com/Bayselonarrend/OpenIntegrations/raw/main/service/test_data/document.docx"; // Binary Data, URL or path to file
|
File = "https://openyellow.neocities.org/test_data/document.docx"; // Binary Data, URL or path to file
|
||||||
Description = "Very important file";
|
Description = "Very important file";
|
||||||
|
|
||||||
Directory = OPI_Bitrix24.GetChatFilesFolder(URL, ChatID);
|
Directory = OPI_Bitrix24.GetChatFilesFolder(URL, ChatID);
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
Text = "New post text";
|
Text = "New post text";
|
||||||
Title = "New post title";
|
Title = "New post title";
|
||||||
Image1 = "https://github.com/Bayselonarrend/OpenIntegrations/raw/main/service/test_data/picture.jpg"; // URL, Path or Binary Data
|
Image1 = "https://openyellow.neocities.org/test_data/picture.jpg"; // URL, Path or Binary Data
|
||||||
PostID = "836";
|
PostID = "836";
|
||||||
|
|
||||||
Files = New Map;
|
Files = New Map;
|
||||||
|
@ -1,8 +1,8 @@
|
|||||||
Filename2 = "Picture2.jpg";
|
Filename2 = "Picture2.jpg";
|
||||||
Name = "Picture1.jpg";
|
Name = "Picture1.jpg";
|
||||||
|
|
||||||
Image2 = "https://github.com/Bayselonarrend/OpenIntegrations/raw/main/service/test_data/picture.jpg"; // Local path, URL or Binary Data
|
Image2 = "https://openyellow.neocities.org/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
|
Image = "https://openyellow.neocities.org/test_data/picture2.jpg"; // Local path, URL or Binary Data
|
||||||
|
|
||||||
DestinationID = "10842";
|
DestinationID = "10842";
|
||||||
|
|
||||||
|
@ -1,8 +1,8 @@
|
|||||||
Filename2 = "Picture2.jpg";
|
Filename2 = "Picture2.jpg";
|
||||||
Name = "Picture1.jpg";
|
Name = "Picture1.jpg";
|
||||||
|
|
||||||
Image2 = "https://github.com/Bayselonarrend/OpenIntegrations/raw/main/service/test_data/picture.jpg"; // Local path, URL or Binary Data
|
Image2 = "https://openyellow.neocities.org/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
|
Image = "https://openyellow.neocities.org/test_data/picture2.jpg"; // Local path, URL or Binary Data
|
||||||
|
|
||||||
DestinationID = 3;
|
DestinationID = 3;
|
||||||
|
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
Path = "/New/pic.png";
|
Path = "/New/pic.png";
|
||||||
Token = "sl.B9sYGdZdLILSnqlGZCwLFCstq1B1GsgevbBkwi4UK_UlNyhGAoJ1fKoXMy3dQhkEb3e80HTL6g...";
|
Token = "sl.B9sYGdZdLILSnqlGZCwLFCstq1B1GsgevbBkwi4UK_UlNyhGAoJ1fKoXMy3dQhkEb3e80HTL6g...";
|
||||||
Image = "https://github.com/Bayselonarrend/OpenIntegrations/raw/main/service/test_data/picture.jpg";
|
Image = "https://openyellow.neocities.org/test_data/picture.jpg";
|
||||||
|
|
||||||
ImagePath = GetTempFileName("png");
|
ImagePath = GetTempFileName("png");
|
||||||
CopyFile(Image, ImagePath);
|
CopyFile(Image, ImagePath);
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
Path = "/New/url_doc.docx";
|
Path = "/New/url_doc.docx";
|
||||||
Token = "sl.B9sYGdZdLILSnqlGZCwLFCstq1B1GsgevbBkwi4UK_UlNyhGAoJ1fKoXMy3dQhkEb3e80HTL6g...";
|
Token = "sl.B9sYGdZdLILSnqlGZCwLFCstq1B1GsgevbBkwi4UK_UlNyhGAoJ1fKoXMy3dQhkEb3e80HTL6g...";
|
||||||
URL = "https://github.com/Bayselonarrend/OpenIntegrations/raw/main/service/test_data/document.docx";
|
URL = "https://openyellow.neocities.org/test_data/document.docx";
|
||||||
|
|
||||||
Result = OPI_Dropbox.UploadFileByURL(Token, URL, Path);
|
Result = OPI_Dropbox.UploadFileByURL(Token, URL, Path);
|
||||||
|
@ -5,8 +5,8 @@
|
|||||||
Description = "TestEventDescription";
|
Description = "TestEventDescription";
|
||||||
Hour = 3600;
|
Hour = 3600;
|
||||||
|
|
||||||
Image1 = "https://github.com/Bayselonarrend/OpenIntegrations/raw/main/service/test_data/picture.jpg"; // URL, Binary or Path to file
|
Image1 = "https://openyellow.neocities.org/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
|
Image2 = "https://openyellow.neocities.org/test_data/picture2.jpg"; // URL, Binary or Path to file
|
||||||
Attachments = New Map;
|
Attachments = New Map;
|
||||||
|
|
||||||
Attachments.Insert("Image1", Image1);
|
Attachments.Insert("Image1", Image1);
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
Token = "ya29.a0AcM612xw6IRwwkQIOEhizd2pJ6LLI4UAhdhxmXDGEzYkcfUPrLYgDDwbsSi5iQdc78WPs_1_Qor5KipuV6mAIvr6z-AKzrBaMT4erIR5T...";
|
Token = "ya29.a0AcM612xw6IRwwkQIOEhizd2pJ6LLI4UAhdhxmXDGEzYkcfUPrLYgDDwbsSi5iQdc78WPs_1_Qor5KipuV6mAIvr6z-AKzrBaMT4erIR5T...";
|
||||||
NewName = "UpdatedFile.jpg";
|
NewName = "UpdatedFile.jpg";
|
||||||
Identifier = "1f-YrvMCEZ7r3JWlLGM39zn6dctvFjwCi";
|
Identifier = "1f-YrvMCEZ7r3JWlLGM39zn6dctvFjwCi";
|
||||||
File = "https://github.com/Bayselonarrend/OpenIntegrations/raw/main/service/test_data/picture2.jpg"; // URL, Binary Data or Path to file
|
File = "https://openyellow.neocities.org/test_data/picture2.jpg"; // URL, Binary Data or Path to file
|
||||||
|
|
||||||
Result = OPI_GoogleDrive.UpdateFile(Token, Identifier, File, NewName);
|
Result = OPI_GoogleDrive.UpdateFile(Token, Identifier, File, NewName);
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
Token = "ya29.a0AcM612xw6IRwwkQIOEhizd2pJ6LLI4UAhdhxmXDGEzYkcfUPrLYgDDwbsSi5iQdc78WPs_1_Qor5KipuV6mAIvr6z-AKzrBaMT4erIR5T...";
|
Token = "ya29.a0AcM612xw6IRwwkQIOEhizd2pJ6LLI4UAhdhxmXDGEzYkcfUPrLYgDDwbsSi5iQdc78WPs_1_Qor5KipuV6mAIvr6z-AKzrBaMT4erIR5T...";
|
||||||
Image = "https://github.com/Bayselonarrend/OpenIntegrations/raw/main/service/test_data/picture.jpg";
|
Image = "https://openyellow.neocities.org/test_data/picture.jpg";
|
||||||
Directory = "191iyaa6-2BCNRPOF0F8mQ0TuNWPNesdM";
|
Directory = "191iyaa6-2BCNRPOF0F8mQ0TuNWPNesdM";
|
||||||
|
|
||||||
Description = OPI_GoogleDrive.GetFileDescription();
|
Description = OPI_GoogleDrive.GetFileDescription();
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
Token = "7419cd51de4037f7...";
|
Token = "7419cd51de4037f7...";
|
||||||
Data = "https://github.com/Bayselonarrend/OpenIntegrations/raw/main/service/test_data/picture.jpg"; // URL, Path or Binary Data
|
Data = "https://openyellow.neocities.org/test_data/picture.jpg"; // URL, Path or Binary Data
|
||||||
Path = "testfolder/test_pic.png";
|
Path = "testfolder/test_pic.png";
|
||||||
|
|
||||||
Result = OPI_Neocities.UploadFile(Token, Path, Data);
|
Result = OPI_Neocities.UploadFile(Token, Path, Data);
|
||||||
|
@ -1,8 +1,8 @@
|
|||||||
Token = "7419cd51de4037f7...";
|
Token = "7419cd51de4037f7...";
|
||||||
|
|
||||||
Image1 = "https://github.com/Bayselonarrend/OpenIntegrations/raw/main/service/test_data/picture.jpg"; // URL, Path or Binary Data
|
Image1 = "https://openyellow.neocities.org/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
|
Image2 = "https://openyellow.neocities.org/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
|
GIF = "https://openyellow.neocities.org/test_data/animation.gif"; // URL, Path or Binary Data
|
||||||
|
|
||||||
FileMapping = New Map;
|
FileMapping = New Map;
|
||||||
FileMapping.Insert("test/pic1.png", Image1);
|
FileMapping.Insert("test/pic1.png", Image1);
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
Token = "secret_9RsfMrRMqZwqp0Zl0B...";
|
Token = "secret_9RsfMrRMqZwqp0Zl0B...";
|
||||||
Base = "11282aa7-fc4e-810b-ab77-cef5a2a3443e";
|
Base = "11282aa7-fc4e-810b-ab77-cef5a2a3443e";
|
||||||
Image_ = "https://github.com/Bayselonarrend/OpenIntegrations/raw/main/service/test_data/picture.jpg"; // URL, Binary Data or Path to file
|
Image_ = "https://openyellow.neocities.org/test_data/picture.jpg"; // URL, Binary Data or Path to file
|
||||||
|
|
||||||
Image = New Map;
|
Image = New Map;
|
||||||
Image.Insert("Logo", Image_);
|
Image.Insert("Logo", Image_);
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
Token = "secret_9RsfMrRMqZwqp0Zl0B...";
|
Token = "secret_9RsfMrRMqZwqp0Zl0B...";
|
||||||
Page = "11282aa7-fc4e-814c-990c-dd3c9c3c2c22";
|
Page = "11282aa7-fc4e-814c-990c-dd3c9c3c2c22";
|
||||||
Icon = "https://github.com/Bayselonarrend/OpenIntegrations/raw/main/service/test_data/picture.jpg";
|
Icon = "https://openyellow.neocities.org/test_data/picture.jpg";
|
||||||
Cover = "https://github.com/Bayselonarrend/OpenIntegrations/raw/main/service/test_data/picture2.jpg";
|
Cover = "https://openyellow.neocities.org/test_data/picture2.jpg";
|
||||||
Archive = False;
|
Archive = False;
|
||||||
|
|
||||||
Properties = New Map;
|
Properties = New Map;
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
ClientID = "2128753";
|
ClientID = "2128753";
|
||||||
APIKey = "7cc90d26-33e4-499b...";
|
APIKey = "7cc90d26-33e4-499b...";
|
||||||
Image1 = "https://github.com/Bayselonarrend/OpenIntegrations/raw/main/service/test_data/picture.jpg";
|
Image1 = "https://openyellow.neocities.org/test_data/picture.jpg";
|
||||||
Image2 = "https://github.com/Bayselonarrend/OpenIntegrations/raw/main/service/test_data/picture2.jpg";
|
Image2 = "https://openyellow.neocities.org/test_data/picture2.jpg";
|
||||||
Video = "https://rutube.ru/video/c6cc4d620b1d4338901770a44b3e82f4/";
|
Video = "https://rutube.ru/video/c6cc4d620b1d4338901770a44b3e82f4/";
|
||||||
|
|
||||||
ImageArray = New Array;
|
ImageArray = New Array;
|
||||||
|
@ -2,8 +2,8 @@
|
|||||||
APIKey = "7cc90d26-33e4-499b...";
|
APIKey = "7cc90d26-33e4-499b...";
|
||||||
ProductID = "1202180384";
|
ProductID = "1202180384";
|
||||||
|
|
||||||
Image1 = "https://github.com/Bayselonarrend/OpenIntegrations/raw/main/service/test_data/picture.jpg";
|
Image1 = "https://openyellow.neocities.org/test_data/picture.jpg";
|
||||||
Image2 = "https://github.com/Bayselonarrend/OpenIntegrations/raw/main/service/test_data/picture2.jpg";
|
Image2 = "https://openyellow.neocities.org/test_data/picture2.jpg";
|
||||||
|
|
||||||
MarketingColor = "GREEN";
|
MarketingColor = "GREEN";
|
||||||
|
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
Token = "xoxb-6965308400114-696804637...";
|
Token = "xoxb-6965308400114-696804637...";
|
||||||
Title = "NewFile";
|
Title = "NewFile";
|
||||||
File = "https://github.com/Bayselonarrend/OpenIntegrations/raw/main/service/test_data/document.docx"; // URL, Binary Data or Path to file
|
File = "https://openyellow.neocities.org/test_data/document.docx"; // URL, Binary Data or Path to file
|
||||||
|
|
||||||
Result = OPI_Slack.AddExternalFile(Token, File, Title);
|
Result = OPI_Slack.AddExternalFile(Token, File, Title);
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
Token = "xoxb-6965308400114-696804637...";
|
Token = "xoxb-6965308400114-696804637...";
|
||||||
Channel = "C06UFNUTKUL";
|
Channel = "C06UFNUTKUL";
|
||||||
User = "U06UABH3APP";
|
User = "U06UABH3APP";
|
||||||
Image = "https://github.com/Bayselonarrend/OpenIntegrations/raw/main/service/test_data/picture.jpg";
|
Image = "https://openyellow.neocities.org/test_data/picture.jpg";
|
||||||
Text = "Ephemeral message";
|
Text = "Ephemeral message";
|
||||||
|
|
||||||
Block = OPI_Slack.GenerateImageBlock(Image, "Image");
|
Block = OPI_Slack.GenerateImageBlock(Image, "Image");
|
||||||
|
@ -9,7 +9,7 @@
|
|||||||
// With attachments (picture block in the example)
|
// With attachments (picture block in the example)
|
||||||
|
|
||||||
Text = "Message with picture";
|
Text = "Message with picture";
|
||||||
Image = "https://github.com/Bayselonarrend/OpenIntegrations/raw/main/service/test_data/picture.jpg";
|
Image = "https://openyellow.neocities.org/test_data/picture.jpg";
|
||||||
BlockArray = New Array;
|
BlockArray = New Array;
|
||||||
|
|
||||||
Block = OPI_Slack.GenerateImageBlock(Image, "Image");
|
Block = OPI_Slack.GenerateImageBlock(Image, "Image");
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
Token = "xoxb-6965308400114-696804637...";
|
Token = "xoxb-6965308400114-696804637...";
|
||||||
Channel = "C06UFNUTKUL";
|
Channel = "C06UFNUTKUL";
|
||||||
File = "https://github.com/Bayselonarrend/OpenIntegrations/raw/main/service/test_data/document.docx"; // URL, Binary Data or Path to file
|
File = "https://openyellow.neocities.org/test_data/document.docx"; // URL, Binary Data or Path to file
|
||||||
|
|
||||||
FileName = "megadoc.docx";
|
FileName = "megadoc.docx";
|
||||||
Title = "NewFile";
|
Title = "NewFile";
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
FileID = "CQACAgIAAx0EcNsaZQACIzFm-WB2un7AYov-xNbc_geFgGTM_gACbmQAAi3jyUs9kgABMFstY_82BA";
|
FileID = "AgACAgIAAxkDAAIfmWb-MR8PQhrvZHiqLmG6UdiAAznzAALj5DEb1I7wSxB3bmqDIveAAQADAgADcwADNgQ";
|
||||||
Token = "6129457865:AAFyzNYOAFbu...";
|
Token = "6129457865:AAFyzNYOAFbu...";
|
||||||
|
|
||||||
Result = OPI_Telegram.DownloadFile(Token, FileID);
|
Result = OPI_Telegram.DownloadFile(Token, FileID);
|
||||||
|
@ -2,7 +2,7 @@
|
|||||||
ChatID = "461699897";
|
ChatID = "461699897";
|
||||||
ChannelID = "@testsichee";
|
ChannelID = "@testsichee";
|
||||||
Text = "Строковое значение";
|
Text = "Строковое значение";
|
||||||
Audio = "https://github.com/Bayselonarrend/OpenIntegrations/raw/main/service/test_data/song.mp3";
|
Audio = "https://openyellow.neocities.org/test_data/song.mp3";
|
||||||
|
|
||||||
AudioPath = GetTempFileName("mp3");
|
AudioPath = GetTempFileName("mp3");
|
||||||
CopyFile(Audio, AudioPath);
|
CopyFile(Audio, AudioPath);
|
||||||
|
@ -2,7 +2,7 @@
|
|||||||
ChatID = "461699897";
|
ChatID = "461699897";
|
||||||
ChannelID = "@testsichee";
|
ChannelID = "@testsichee";
|
||||||
Text = "Строковое значение";
|
Text = "Строковое значение";
|
||||||
Document = "https://github.com/Bayselonarrend/OpenIntegrations/raw/main/service/test_data/document.docx";
|
Document = "https://openyellow.neocities.org/test_data/document.docx";
|
||||||
|
|
||||||
DocumentPath = GetTempFileName("docx");
|
DocumentPath = GetTempFileName("docx");
|
||||||
CopyFile(Document, DocumentPath);
|
CopyFile(Document, DocumentPath);
|
||||||
|
@ -2,7 +2,7 @@
|
|||||||
ChatID = "461699897";
|
ChatID = "461699897";
|
||||||
ChannelID = "@testsichee";
|
ChannelID = "@testsichee";
|
||||||
Text = "Строковое значение";
|
Text = "Строковое значение";
|
||||||
GIF = "https://github.com/Bayselonarrend/OpenIntegrations/raw/main/service/test_data/animation.gif";
|
GIF = "https://openyellow.neocities.org/test_data/animation.gif";
|
||||||
|
|
||||||
GifPath = GetTempFileName("gif");
|
GifPath = GetTempFileName("gif");
|
||||||
CopyFile(GIF, GifPath);
|
CopyFile(GIF, GifPath);
|
||||||
|
@ -1,8 +1,8 @@
|
|||||||
Token = "6129457865:AAFyzNYOAFbu...";
|
Token = "6129457865:AAFyzNYOAFbu...";
|
||||||
ChatID = "461699897";
|
ChatID = "461699897";
|
||||||
Text = "Строковое значение";
|
Text = "Строковое значение";
|
||||||
Image = "https://github.com/Bayselonarrend/OpenIntegrations/raw/main/service/test_data/picture.jpg";
|
Image = "https://openyellow.neocities.org/test_data/picture.jpg";
|
||||||
Video = "https://github.com/Bayselonarrend/OpenIntegrations/raw/main/service/test_data/video.mp4";
|
Video = "https://openyellow.neocities.org/test_data/video.mp4";
|
||||||
|
|
||||||
ImagePath = GetTempFileName("png");
|
ImagePath = GetTempFileName("png");
|
||||||
CopyFile(Image, ImagePath);
|
CopyFile(Image, ImagePath);
|
||||||
|
@ -2,7 +2,7 @@
|
|||||||
ChatID = "461699897";
|
ChatID = "461699897";
|
||||||
ChannelID = "@testsichee";
|
ChannelID = "@testsichee";
|
||||||
Text = "Строковое значение";
|
Text = "Строковое значение";
|
||||||
Image = "https://github.com/Bayselonarrend/OpenIntegrations/raw/main/service/test_data/picture.jpg";
|
Image = "https://openyellow.neocities.org/test_data/picture.jpg";
|
||||||
|
|
||||||
ImagePath = GetTempFileName("png");
|
ImagePath = GetTempFileName("png");
|
||||||
CopyFile(Image, ImagePath);
|
CopyFile(Image, ImagePath);
|
||||||
|
@ -2,7 +2,7 @@
|
|||||||
ChatID = "461699897";
|
ChatID = "461699897";
|
||||||
ChannelID = "@testsichee";
|
ChannelID = "@testsichee";
|
||||||
Text = "Строковое значение";
|
Text = "Строковое значение";
|
||||||
Video = "https://github.com/Bayselonarrend/OpenIntegrations/raw/main/service/test_data/video.mp4";
|
Video = "https://openyellow.neocities.org/test_data/video.mp4";
|
||||||
|
|
||||||
VideoPath = GetTempFileName("mp4");
|
VideoPath = GetTempFileName("mp4");
|
||||||
CopyFile(Video, VideoPath);
|
CopyFile(Video, VideoPath);
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
Parameters = GetVKParameters();
|
Parameters = GetVKParameters();
|
||||||
|
|
||||||
Image1 = "https://github.com/Bayselonarrend/OpenIntegrations/raw/main/service/test_data/picture.jpg"; // URL, Binary or Path to file
|
Image1 = "https://openyellow.neocities.org/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
|
Image2 = "https://openyellow.neocities.org/test_data/picture2.jpg"; // URL, Binary or Path to file
|
||||||
Selection = "121";
|
Selection = "121";
|
||||||
|
|
||||||
ImageArray = New Array;
|
ImageArray = New Array;
|
||||||
|
@ -2,8 +2,8 @@
|
|||||||
Text = "Post from autotest";
|
Text = "Post from autotest";
|
||||||
URL = "https://github.com/Bayselonarrend/OpenIntegrations";
|
URL = "https://github.com/Bayselonarrend/OpenIntegrations";
|
||||||
|
|
||||||
Image = "https://github.com/Bayselonarrend/OpenIntegrations/raw/main/service/test_data/picture.jpg"; // URL, Path or Binary Data
|
Image = "https://openyellow.neocities.org/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
|
Video = "https://openyellow.neocities.org/test_data/video.mp4"; // URL, Path or Binary Data
|
||||||
|
|
||||||
TFN = GetTempFileName("png");
|
TFN = GetTempFileName("png");
|
||||||
CopyFile(Image, TFN);
|
CopyFile(Image, TFN);
|
||||||
|
@ -2,8 +2,8 @@
|
|||||||
Text = "Post from autotest";
|
Text = "Post from autotest";
|
||||||
URL = "https://github.com/Bayselonarrend/OpenIntegrations";
|
URL = "https://github.com/Bayselonarrend/OpenIntegrations";
|
||||||
|
|
||||||
Image = "https://github.com/Bayselonarrend/OpenIntegrations/raw/main/service/test_data/picture.jpg"; // URL, Path or Binary Data
|
Image = "https://openyellow.neocities.org/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
|
Image2 = "https://openyellow.neocities.org/test_data/picture2.jpg"; // URL, Path or Binary Data
|
||||||
|
|
||||||
TFN = GetTempFileName("png");
|
TFN = GetTempFileName("png");
|
||||||
CopyFile(Image2, TFN);
|
CopyFile(Image2, TFN);
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
Parameters = GetVKParameters();
|
Parameters = GetVKParameters();
|
||||||
|
|
||||||
Name = "TestCollection";
|
Name = "TestCollection";
|
||||||
Image = "https://github.com/Bayselonarrend/OpenIntegrations/raw/main/service/test_data/picture.jpg";
|
Image = "https://openyellow.neocities.org/test_data/picture.jpg";
|
||||||
Main = True;
|
Main = True;
|
||||||
Hidden = False;
|
Hidden = False;
|
||||||
|
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
Parameters = GetVKParameters();
|
Parameters = GetVKParameters();
|
||||||
|
|
||||||
Image1 = "https://github.com/Bayselonarrend/OpenIntegrations/raw/main/service/test_data/picture.jpg";
|
Image1 = "https://openyellow.neocities.org/test_data/picture.jpg";
|
||||||
Image2 = "https://github.com/Bayselonarrend/OpenIntegrations/raw/main/service/test_data/picture2.jpg";
|
Image2 = "https://openyellow.neocities.org/test_data/picture2.jpg";
|
||||||
PropVariant1 = "2450";
|
PropVariant1 = "2450";
|
||||||
PropVariant2 = "2451";
|
PropVariant2 = "2451";
|
||||||
|
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
Parameters = GetVKParameters();
|
Parameters = GetVKParameters();
|
||||||
URL = "https://github.com/Bayselonarrend/OpenIntegrations";
|
URL = "https://github.com/Bayselonarrend/OpenIntegrations";
|
||||||
|
|
||||||
Image = "https://github.com/Bayselonarrend/OpenIntegrations/raw/main/service/test_data/picture.jpg"; // URL, Path to file or Binary Data
|
Image = "https://openyellow.neocities.org/test_data/picture.jpg"; // URL, Path to file or Binary Data
|
||||||
TFN = GetTempFileName("png");
|
TFN = GetTempFileName("png");
|
||||||
CopyFile(Image, TFN);
|
CopyFile(Image, TFN);
|
||||||
Image = New BinaryData(TFN);
|
Image = New BinaryData(TFN);
|
||||||
|
@ -2,7 +2,7 @@
|
|||||||
ImageDescription = "AutoTestImage";
|
ImageDescription = "AutoTestImage";
|
||||||
AlbumID = "305905563";
|
AlbumID = "305905563";
|
||||||
|
|
||||||
Image = "https://github.com/Bayselonarrend/OpenIntegrations/raw/main/service/test_data/picture.jpg"; // URL, Path to file or Binary Data
|
Image = "https://openyellow.neocities.org/test_data/picture.jpg"; // URL, Path to file or Binary Data
|
||||||
TFN = GetTempFileName("png");
|
TFN = GetTempFileName("png");
|
||||||
CopyFile(Image, TFN);
|
CopyFile(Image, TFN);
|
||||||
|
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
Parameters = GetVKParameters();
|
Parameters = GetVKParameters();
|
||||||
|
|
||||||
Video = "https://github.com/Bayselonarrend/OpenIntegrations/raw/main/service/test_data/video.mp4";
|
Video = "https://openyellow.neocities.org/test_data/video.mp4";
|
||||||
Name = "NewVideo";
|
Name = "NewVideo";
|
||||||
Description = "Video description";
|
Description = "Video description";
|
||||||
|
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
Token = "001.3501506236.091...";
|
Token = "001.3501506236.091...";
|
||||||
ChatID = "AoLI0egLWBSLR1Ngn2w";
|
ChatID = "AoLI0egLWBSLR1Ngn2w";
|
||||||
|
|
||||||
File = "https://github.com/Bayselonarrend/OpenIntegrations/raw/main/service/test_data/spy2.png"; // URL
|
File = "https://openyellow.neocities.org/test_data/spy2.png"; // URL
|
||||||
FilePath = GetTempFileName("png"); // Path
|
FilePath = GetTempFileName("png"); // Path
|
||||||
|
|
||||||
CopyFile(File, FilePath);
|
CopyFile(File, FilePath);
|
||||||
|
@ -2,7 +2,7 @@
|
|||||||
ChatID = "AoLI0egLWBSLR1Ngn2w";
|
ChatID = "AoLI0egLWBSLR1Ngn2w";
|
||||||
Text = "File caption";
|
Text = "File caption";
|
||||||
|
|
||||||
File = "https://github.com/Bayselonarrend/OpenIntegrations/raw/main/service/test_data/document.docx"; // URL
|
File = "https://openyellow.neocities.org/test_data/document.docx"; // URL
|
||||||
FilePath = GetTempFileName("docx"); // Path
|
FilePath = GetTempFileName("docx"); // Path
|
||||||
|
|
||||||
CopyFile(File, FilePath);
|
CopyFile(File, FilePath);
|
||||||
|
@ -3,7 +3,7 @@
|
|||||||
ReplyID = "7419291601358293295";
|
ReplyID = "7419291601358293295";
|
||||||
Text = "File caption";
|
Text = "File caption";
|
||||||
|
|
||||||
File = "https://github.com/Bayselonarrend/OpenIntegrations/raw/main/service/test_data/song.m4a" ; // URL
|
File = "https://openyellow.neocities.org/test_data/song.m4a" ; // URL
|
||||||
FilePath = GetTempFileName("m4a"); // Path
|
FilePath = GetTempFileName("m4a"); // Path
|
||||||
|
|
||||||
CopyFile(File, FilePath);
|
CopyFile(File, FilePath);
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
Extension = "docx";
|
Extension = "docx";
|
||||||
URL = "https://github.com/Bayselonarrend/OpenIntegrations/raw/main/service/test_data/document.docx";
|
URL = "https://openyellow.neocities.org/test_data/document.docx";
|
||||||
|
|
||||||
UserID = "d3jxe61Z4W73nmNkjYGgZg==";
|
UserID = "d3jxe61Z4W73nmNkjYGgZg==";
|
||||||
Token = "523b5b25ed27e6ec-fdf013e4...";
|
Token = "523b5b25ed27e6ec-fdf013e4...";
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
Description = "TestMessage";
|
Description = "TestMessage";
|
||||||
URL = "https://github.com/Bayselonarrend/OpenIntegrations/raw/main/service/test_data/picture.jpg";
|
URL = "https://openyellow.neocities.org/test_data/picture.jpg";
|
||||||
|
|
||||||
UserID = "d3jxe61Z4W73nmNkjYGgZg==";
|
UserID = "d3jxe61Z4W73nmNkjYGgZg==";
|
||||||
Token = "523b5b25ed27e6ec-fdf013e4...";
|
Token = "523b5b25ed27e6ec-fdf013e4...";
|
||||||
|
@ -2,7 +2,7 @@
|
|||||||
Path2 = "/" + String(New UUID) + ".png";
|
Path2 = "/" + String(New UUID) + ".png";
|
||||||
|
|
||||||
Token = "y0_AgAAAABdylaOAAs0QgAAAAD5i-a...";
|
Token = "y0_AgAAAABdylaOAAs0QgAAAAD5i-a...";
|
||||||
Image = "https://github.com/Bayselonarrend/OpenIntegrations/raw/main/service/test_data/picture.jpg"; // URL
|
Image = "https://openyellow.neocities.org/test_data/picture.jpg"; // URL
|
||||||
|
|
||||||
TFN = GetTempFileName("png"); // Path
|
TFN = GetTempFileName("png"); // Path
|
||||||
CopyFile(Image, TFN);
|
CopyFile(Image, TFN);
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
Token = "y0_AgAAAABdylaOAAs0QgAAAAD5i-a...";
|
Token = "y0_AgAAAABdylaOAAs0QgAAAAD5i-a...";
|
||||||
Address = "https://github.com/Bayselonarrend/OpenIntegrations/raw/main/service/test_data/picture.jpg";
|
Address = "https://openyellow.neocities.org/test_data/picture.jpg";
|
||||||
Path = "/" + String(New UUID) + ".png";
|
Path = "/" + String(New UUID) + ".png";
|
||||||
|
|
||||||
Result = OPI_YandexDisk.UploadFileByURL(Token, Path, Address);
|
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...";
|
URL = "https://b24-ar17wx.bitrix24.by/rest/1/1o2...";
|
||||||
ChatID = "872";
|
ChatID = "872";
|
||||||
|
|
||||||
Image = "https://github.com/Bayselonarrend/OpenIntegrations/raw/main/service/test_data/picture2.jpg";
|
Image = "https://openyellow.neocities.org/test_data/picture2.jpg";
|
||||||
|
|
||||||
Result = OPI_Bitrix24.ChangeChatPicture(URL, ChatID, Image);
|
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"
|
```bsl title="Code example"
|
||||||
Image = "https://github.com/Bayselonarrend/OpenIntegrations/raw/main/service/test_data/picture.jpg";
|
Image = "https://openyellow.neocities.org/test_data/picture.jpg";
|
||||||
OPI_TypeConversion.GetBinaryData(Image);
|
OPI_TypeConversion.GetBinaryData(Image);
|
||||||
|
|
||||||
B64Image = GetBase64StringFromBinaryData(Image);
|
B64Image = GetBase64StringFromBinaryData(Image);
|
||||||
|
@ -34,5 +34,14 @@ sidebar_position: 21
|
|||||||
```
|
```
|
||||||
|
|
||||||
```json title="Result"
|
```json title="Result"
|
||||||
|
{
|
||||||
|
"TYPE": "<Chat type OPEN (Public) | CHAT (Private)>",
|
||||||
|
"TITLE": "<Chat title>",
|
||||||
|
"DESCRIPTION": "<Chat description>",
|
||||||
|
"COLOR": "<Chat color: RED, GREEN, MINT, LIGHT_BLUE, DARK_BLUE, PURPLE, AQUA, ...>",
|
||||||
|
"MESSAGE": "<First chat message>",
|
||||||
|
"USERS": "<Chat members array>",
|
||||||
|
"AVATAR": "<Base64 chat picture>",
|
||||||
|
"OWNER_ID": "<ID of chat owner. Current user by default>"
|
||||||
|
}
|
||||||
```
|
```
|
||||||
|
@ -34,5 +34,12 @@ sidebar_position: 9
|
|||||||
```
|
```
|
||||||
|
|
||||||
```json title="Result"
|
```json title="Result"
|
||||||
|
{
|
||||||
|
"AUTHOR_ID": "<comment author identifier>",
|
||||||
|
"AUTHOR_NAME": "<Users name (optional)>",
|
||||||
|
"AUTHOR_EMAIL": "<Users email (optional)>",
|
||||||
|
"USE_SMILES": "<(Y|N) - parse comments for emoticons or not>",
|
||||||
|
"POST_MESSAGE": "<Message text>",
|
||||||
|
"UF_FORUM_MESSAGE_DOC": "<Array of files from disk to attach>"
|
||||||
|
}
|
||||||
```
|
```
|
||||||
|
@ -33,8 +33,8 @@ Method at API documentation: [log.blogpost.add](https://dev.1c-bitrix.ru/rest_he
|
|||||||
```bsl title="Code example"
|
```bsl title="Code example"
|
||||||
Text = "Text of post";
|
Text = "Text of post";
|
||||||
Title = "Post title";
|
Title = "Post title";
|
||||||
Image1 = "https://github.com/Bayselonarrend/OpenIntegrations/raw/main/service/test_data/picture.jpg"; // URL, Path or Binary Data
|
Image1 = "https://openyellow.neocities.org/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
|
Image2 = "https://openyellow.neocities.org/test_data/picture2.jpg"; // URL, Path or Binary Data
|
||||||
|
|
||||||
Files = New Map;
|
Files = New Map;
|
||||||
Files.Insert("1.png", Image1);
|
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"
|
```bsl title="Code example"
|
||||||
Text = "New post text";
|
Text = "New post text";
|
||||||
Title = "New post title";
|
Title = "New post title";
|
||||||
Image1 = "https://github.com/Bayselonarrend/OpenIntegrations/raw/main/service/test_data/picture.jpg"; // URL, Path or Binary Data
|
Image1 = "https://openyellow.neocities.org/test_data/picture.jpg"; // URL, Path or Binary Data
|
||||||
PostID = "836";
|
PostID = "836";
|
||||||
|
|
||||||
Files = New Map;
|
Files = New Map;
|
||||||
|
@ -32,8 +32,8 @@ Method at API documentation: [disk.folder.uploadfile](https://dev.1c-bitrix.ru/r
|
|||||||
Filename2 = "Picture2.jpg";
|
Filename2 = "Picture2.jpg";
|
||||||
Name = "Picture1.jpg";
|
Name = "Picture1.jpg";
|
||||||
|
|
||||||
Image2 = "https://github.com/Bayselonarrend/OpenIntegrations/raw/main/service/test_data/picture.jpg"; // Local path, URL or Binary Data
|
Image2 = "https://openyellow.neocities.org/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
|
Image = "https://openyellow.neocities.org/test_data/picture2.jpg"; // Local path, URL or Binary Data
|
||||||
|
|
||||||
DestinationID = "10842";
|
DestinationID = "10842";
|
||||||
|
|
||||||
|
@ -33,8 +33,8 @@ Method at API documentation: [disk.storage.uploadfile](https://dev.1c-bitrix.ru/
|
|||||||
Filename2 = "Picture2.jpg";
|
Filename2 = "Picture2.jpg";
|
||||||
Name = "Picture1.jpg";
|
Name = "Picture1.jpg";
|
||||||
|
|
||||||
Image2 = "https://github.com/Bayselonarrend/OpenIntegrations/raw/main/service/test_data/picture.jpg"; // Local path, URL or Binary Data
|
Image2 = "https://openyellow.neocities.org/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
|
Image = "https://openyellow.neocities.org/test_data/picture2.jpg"; // Local path, URL or Binary Data
|
||||||
|
|
||||||
DestinationID = 3;
|
DestinationID = 3;
|
||||||
|
|
||||||
|
@ -27,7 +27,7 @@ Blocks at API documentation: [Link](https://dev.1c-bitrix.ru/learning/course/?CO
|
|||||||
|
|
||||||
```bsl title="Code example"
|
```bsl title="Code example"
|
||||||
Name = "Image";
|
Name = "Image";
|
||||||
URL = "https://github.com/Bayselonarrend/OpenIntegrations/raw/main/service/test_data/document.docx";
|
URL = "https://openyellow.neocities.org/test_data/document.docx";
|
||||||
|
|
||||||
Result = OPI_Bitrix24.GetFileBlock(Name, URL);
|
Result = OPI_Bitrix24.GetFileBlock(Name, URL);
|
||||||
```
|
```
|
||||||
@ -41,5 +41,10 @@ Blocks at API documentation: [Link](https://dev.1c-bitrix.ru/learning/course/?CO
|
|||||||
```
|
```
|
||||||
|
|
||||||
```json title="Result"
|
```json title="Result"
|
||||||
|
{
|
||||||
|
"FILE": {
|
||||||
|
"NAME": "Image",
|
||||||
|
"LINK": "https://github.com/Bayselonarrend/OpenIntegrations/raw/main/service/test_data/document.docx"
|
||||||
|
}
|
||||||
|
}
|
||||||
```
|
```
|
||||||
|
@ -27,7 +27,7 @@ Blocks at API documentation: [Link](https://dev.1c-bitrix.ru/learning/course/?CO
|
|||||||
|
|
||||||
```bsl title="Code example"
|
```bsl title="Code example"
|
||||||
Name = "Image";
|
Name = "Image";
|
||||||
URL = "https://github.com/Bayselonarrend/OpenIntegrations/raw/main/service/test_data/picture.jpg";
|
URL = "https://openyellow.neocities.org/test_data/picture.jpg";
|
||||||
|
|
||||||
Result = OPI_Bitrix24.GetPictureBlock(Name, URL);
|
Result = OPI_Bitrix24.GetPictureBlock(Name, URL);
|
||||||
```
|
```
|
||||||
@ -41,5 +41,10 @@ Blocks at API documentation: [Link](https://dev.1c-bitrix.ru/learning/course/?CO
|
|||||||
```
|
```
|
||||||
|
|
||||||
```json title="Result"
|
```json title="Result"
|
||||||
|
{
|
||||||
|
"IMAGE": {
|
||||||
|
"NAME": "Image",
|
||||||
|
"LINK": "https://github.com/Bayselonarrend/OpenIntegrations/raw/main/service/test_data/picture.jpg"
|
||||||
|
}
|
||||||
|
}
|
||||||
```
|
```
|
||||||
|
@ -31,7 +31,7 @@ Method at API documentation: [im.disk.file.commit](https://dev.1c-bitrix.ru/lear
|
|||||||
```bsl title="Code example"
|
```bsl title="Code example"
|
||||||
URL = "https://b24-ar17wx.bitrix24.by/rest/1/1o2...";
|
URL = "https://b24-ar17wx.bitrix24.by/rest/1/1o2...";
|
||||||
ChatID = "872";
|
ChatID = "872";
|
||||||
File = "https://github.com/Bayselonarrend/OpenIntegrations/raw/main/service/test_data/document.docx"; // Binary Data, URL or path to file
|
File = "https://openyellow.neocities.org/test_data/document.docx"; // Binary Data, URL or path to file
|
||||||
Description = "Very important file";
|
Description = "Very important file";
|
||||||
|
|
||||||
Directory = OPI_Bitrix24.GetChatFilesFolder(URL, ChatID);
|
Directory = OPI_Bitrix24.GetChatFilesFolder(URL, ChatID);
|
||||||
|
@ -34,5 +34,32 @@ sidebar_position: 27
|
|||||||
```
|
```
|
||||||
|
|
||||||
```json title="Result"
|
```json title="Result"
|
||||||
|
{
|
||||||
|
"ID": "<task identifier>",
|
||||||
|
"PARENT_ID": "<parent task identifier>",
|
||||||
|
"GROUP_ID": "<workgroup identifier>",
|
||||||
|
"CREATED_BY": "<producer>",
|
||||||
|
"STATUS_CHANGED_BY": "<the user who last changed the task status>",
|
||||||
|
"PRIORITY": "<priority>",
|
||||||
|
"FORUM_TOPIC_ID": "<forum topic identifier>",
|
||||||
|
"RESPONSIBLE_ID": "<performer>",
|
||||||
|
"TITLE": "<task name (can be searched using the template [%_])>",
|
||||||
|
"TAG": "<tag>",
|
||||||
|
"REAL_STATUS": "<task status>",
|
||||||
|
"MARK": "<mark>",
|
||||||
|
"SITE_ID": "<site identifier>",
|
||||||
|
"ADD_IN_REPORT": "<task in the report (Y|N)>",
|
||||||
|
"DATE_START": "<start date>",
|
||||||
|
"DEADLINE": "<deadline>",
|
||||||
|
"CREATED_DATE": "<date of creation>",
|
||||||
|
"CLOSED_DATE": "<completion date>",
|
||||||
|
"CHANGED_DATE": "<date of last modification>",
|
||||||
|
"ACCOMPLICE": "<co-executor identifier>",
|
||||||
|
"AUDITOR": "<auditor identifier>",
|
||||||
|
"DEPENDS_ON": "<previous task identifier>",
|
||||||
|
"ONLY_ROOT_TASKS": "<only tasks that are not subtasks (Y|N)>",
|
||||||
|
"STAGE_ID": "<stage>",
|
||||||
|
"UF_CRM_TASK": "<CRM elements>",
|
||||||
|
"STATUS": "<status for sorting. Similar to REAL_STATUS, but has three additional meta-statuses>"
|
||||||
|
}
|
||||||
```
|
```
|
||||||
|
@ -34,5 +34,11 @@ sidebar_position: 8
|
|||||||
```
|
```
|
||||||
|
|
||||||
```json title="Result"
|
```json title="Result"
|
||||||
|
{
|
||||||
|
"NAME": "<name>",
|
||||||
|
"LAST_NAME": "<surname>",
|
||||||
|
"WORK_POSITION": "<position>",
|
||||||
|
"UF_DEPARTMENT_NAME": "<department name>",
|
||||||
|
"USER_TYPE": "<type: employee, extranet, email>"
|
||||||
|
}
|
||||||
```
|
```
|
||||||
|
@ -26,7 +26,7 @@ sidebar_position: 5
|
|||||||
```bsl title="Code example"
|
```bsl title="Code example"
|
||||||
Path = "/New/url_doc.docx";
|
Path = "/New/url_doc.docx";
|
||||||
Token = "sl.B9sYGdZdLILSnqlGZCwLFCstq1B1GsgevbBkwi4UK_UlNyhGAoJ1fKoXMy3dQhkEb3e80HTL6g...";
|
Token = "sl.B9sYGdZdLILSnqlGZCwLFCstq1B1GsgevbBkwi4UK_UlNyhGAoJ1fKoXMy3dQhkEb3e80HTL6g...";
|
||||||
URL = "https://github.com/Bayselonarrend/OpenIntegrations/raw/main/service/test_data/document.docx";
|
URL = "https://openyellow.neocities.org/test_data/document.docx";
|
||||||
|
|
||||||
Result = OPI_Dropbox.UploadFileByURL(Token, URL, Path);
|
Result = OPI_Dropbox.UploadFileByURL(Token, URL, Path);
|
||||||
```
|
```
|
||||||
|
@ -27,7 +27,7 @@ sidebar_position: 4
|
|||||||
```bsl title="Code example"
|
```bsl title="Code example"
|
||||||
Path = "/New/pic.png";
|
Path = "/New/pic.png";
|
||||||
Token = "sl.B9sYGdZdLILSnqlGZCwLFCstq1B1GsgevbBkwi4UK_UlNyhGAoJ1fKoXMy3dQhkEb3e80HTL6g...";
|
Token = "sl.B9sYGdZdLILSnqlGZCwLFCstq1B1GsgevbBkwi4UK_UlNyhGAoJ1fKoXMy3dQhkEb3e80HTL6g...";
|
||||||
Image = "https://github.com/Bayselonarrend/OpenIntegrations/raw/main/service/test_data/picture.jpg";
|
Image = "https://openyellow.neocities.org/test_data/picture.jpg";
|
||||||
|
|
||||||
ImagePath = GetTempFileName("png");
|
ImagePath = GetTempFileName("png");
|
||||||
CopyFile(Image, ImagePath);
|
CopyFile(Image, ImagePath);
|
||||||
|
@ -38,5 +38,7 @@ sidebar_position: 5
|
|||||||
```
|
```
|
||||||
|
|
||||||
```json title="Result"
|
```json title="Result"
|
||||||
|
{
|
||||||
|
".tag": "complete"
|
||||||
|
}
|
||||||
```
|
```
|
||||||
|
@ -31,8 +31,8 @@ sidebar_position: 4
|
|||||||
Description = "TestEventDescription";
|
Description = "TestEventDescription";
|
||||||
Hour = 3600;
|
Hour = 3600;
|
||||||
|
|
||||||
Image1 = "https://github.com/Bayselonarrend/OpenIntegrations/raw/main/service/test_data/picture.jpg"; // URL, Binary or Path to file
|
Image1 = "https://openyellow.neocities.org/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
|
Image2 = "https://openyellow.neocities.org/test_data/picture2.jpg"; // URL, Binary or Path to file
|
||||||
Attachments = New Map;
|
Attachments = New Map;
|
||||||
|
|
||||||
Attachments.Insert("Image1", Image1);
|
Attachments.Insert("Image1", Image1);
|
||||||
|
@ -28,7 +28,7 @@ sidebar_position: 8
|
|||||||
Token = "ya29.a0AcM612xw6IRwwkQIOEhizd2pJ6LLI4UAhdhxmXDGEzYkcfUPrLYgDDwbsSi5iQdc78WPs_1_Qor5KipuV6mAIvr6z-AKzrBaMT4erIR5T...";
|
Token = "ya29.a0AcM612xw6IRwwkQIOEhizd2pJ6LLI4UAhdhxmXDGEzYkcfUPrLYgDDwbsSi5iQdc78WPs_1_Qor5KipuV6mAIvr6z-AKzrBaMT4erIR5T...";
|
||||||
NewName = "UpdatedFile.jpg";
|
NewName = "UpdatedFile.jpg";
|
||||||
Identifier = "1f-YrvMCEZ7r3JWlLGM39zn6dctvFjwCi";
|
Identifier = "1f-YrvMCEZ7r3JWlLGM39zn6dctvFjwCi";
|
||||||
File = "https://github.com/Bayselonarrend/OpenIntegrations/raw/main/service/test_data/picture2.jpg"; // URL, Binary Data or Path to file
|
File = "https://openyellow.neocities.org/test_data/picture2.jpg"; // URL, Binary Data or Path to file
|
||||||
|
|
||||||
Result = OPI_GoogleDrive.UpdateFile(Token, Identifier, File, NewName);
|
Result = OPI_GoogleDrive.UpdateFile(Token, Identifier, File, NewName);
|
||||||
```
|
```
|
||||||
|
@ -25,7 +25,7 @@ sidebar_position: 4
|
|||||||
|
|
||||||
```bsl title="Code example"
|
```bsl title="Code example"
|
||||||
Token = "ya29.a0AcM612xw6IRwwkQIOEhizd2pJ6LLI4UAhdhxmXDGEzYkcfUPrLYgDDwbsSi5iQdc78WPs_1_Qor5KipuV6mAIvr6z-AKzrBaMT4erIR5T...";
|
Token = "ya29.a0AcM612xw6IRwwkQIOEhizd2pJ6LLI4UAhdhxmXDGEzYkcfUPrLYgDDwbsSi5iQdc78WPs_1_Qor5KipuV6mAIvr6z-AKzrBaMT4erIR5T...";
|
||||||
Image = "https://github.com/Bayselonarrend/OpenIntegrations/raw/main/service/test_data/picture.jpg";
|
Image = "https://openyellow.neocities.org/test_data/picture.jpg";
|
||||||
Directory = "191iyaa6-2BCNRPOF0F8mQ0TuNWPNesdM";
|
Directory = "191iyaa6-2BCNRPOF0F8mQ0TuNWPNesdM";
|
||||||
|
|
||||||
Description = OPI_GoogleDrive.GetFileDescription();
|
Description = OPI_GoogleDrive.GetFileDescription();
|
||||||
|
@ -28,7 +28,7 @@ Neocities API docs: [neocities.org/api](https://neocities.org/api)
|
|||||||
|
|
||||||
```bsl title="Code example"
|
```bsl title="Code example"
|
||||||
Token = "7419cd51de4037f7...";
|
Token = "7419cd51de4037f7...";
|
||||||
Data = "https://github.com/Bayselonarrend/OpenIntegrations/raw/main/service/test_data/picture.jpg"; // URL, Path or Binary Data
|
Data = "https://openyellow.neocities.org/test_data/picture.jpg"; // URL, Path or Binary Data
|
||||||
Path = "testfolder/test_pic.png";
|
Path = "testfolder/test_pic.png";
|
||||||
|
|
||||||
Result = OPI_Neocities.UploadFile(Token, Path, Data);
|
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"
|
```bsl title="Code example"
|
||||||
Token = "7419cd51de4037f7...";
|
Token = "7419cd51de4037f7...";
|
||||||
|
|
||||||
Image1 = "https://github.com/Bayselonarrend/OpenIntegrations/raw/main/service/test_data/picture.jpg"; // URL, Path or Binary Data
|
Image1 = "https://openyellow.neocities.org/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
|
Image2 = "https://openyellow.neocities.org/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
|
GIF = "https://openyellow.neocities.org/test_data/animation.gif"; // URL, Path or Binary Data
|
||||||
|
|
||||||
FileMapping = New Map;
|
FileMapping = New Map;
|
||||||
FileMapping.Insert("test/pic1.png", Image1);
|
FileMapping.Insert("test/pic1.png", Image1);
|
||||||
|
@ -26,7 +26,7 @@ sidebar_position: 2
|
|||||||
```bsl title="Code example"
|
```bsl title="Code example"
|
||||||
Token = "secret_9RsfMrRMqZwqp0Zl0B...";
|
Token = "secret_9RsfMrRMqZwqp0Zl0B...";
|
||||||
Base = "11282aa7-fc4e-810b-ab77-cef5a2a3443e";
|
Base = "11282aa7-fc4e-810b-ab77-cef5a2a3443e";
|
||||||
Image_ = "https://github.com/Bayselonarrend/OpenIntegrations/raw/main/service/test_data/picture.jpg"; // URL, Binary Data or Path to file
|
Image_ = "https://openyellow.neocities.org/test_data/picture.jpg"; // URL, Binary Data or Path to file
|
||||||
|
|
||||||
Image = New Map;
|
Image = New Map;
|
||||||
Image.Insert("Logo", Image_);
|
Image.Insert("Logo", Image_);
|
||||||
|
@ -29,8 +29,8 @@ sidebar_position: 4
|
|||||||
```bsl title="Code example"
|
```bsl title="Code example"
|
||||||
Token = "secret_9RsfMrRMqZwqp0Zl0B...";
|
Token = "secret_9RsfMrRMqZwqp0Zl0B...";
|
||||||
Page = "11282aa7-fc4e-814c-990c-dd3c9c3c2c22";
|
Page = "11282aa7-fc4e-814c-990c-dd3c9c3c2c22";
|
||||||
Icon = "https://github.com/Bayselonarrend/OpenIntegrations/raw/main/service/test_data/picture.jpg";
|
Icon = "https://openyellow.neocities.org/test_data/picture.jpg";
|
||||||
Cover = "https://github.com/Bayselonarrend/OpenIntegrations/raw/main/service/test_data/picture2.jpg";
|
Cover = "https://openyellow.neocities.org/test_data/picture2.jpg";
|
||||||
Archive = False;
|
Archive = False;
|
||||||
|
|
||||||
Properties = New Map;
|
Properties = New Map;
|
||||||
|
@ -33,8 +33,8 @@ Methods of product structure formation: GetProductStructure(), AddProductVideo()
|
|||||||
```bsl title="Code example"
|
```bsl title="Code example"
|
||||||
ClientID = "2128753";
|
ClientID = "2128753";
|
||||||
APIKey = "7cc90d26-33e4-499b...";
|
APIKey = "7cc90d26-33e4-499b...";
|
||||||
Image1 = "https://github.com/Bayselonarrend/OpenIntegrations/raw/main/service/test_data/picture.jpg";
|
Image1 = "https://openyellow.neocities.org/test_data/picture.jpg";
|
||||||
Image2 = "https://github.com/Bayselonarrend/OpenIntegrations/raw/main/service/test_data/picture2.jpg";
|
Image2 = "https://openyellow.neocities.org/test_data/picture2.jpg";
|
||||||
Video = "https://rutube.ru/video/c6cc4d620b1d4338901770a44b3e82f4/";
|
Video = "https://rutube.ru/video/c6cc4d620b1d4338901770a44b3e82f4/";
|
||||||
|
|
||||||
ImageArray = New Array;
|
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...";
|
APIKey = "7cc90d26-33e4-499b...";
|
||||||
ProductID = "1202180384";
|
ProductID = "1202180384";
|
||||||
|
|
||||||
Image1 = "https://github.com/Bayselonarrend/OpenIntegrations/raw/main/service/test_data/picture.jpg";
|
Image1 = "https://openyellow.neocities.org/test_data/picture.jpg";
|
||||||
Image2 = "https://github.com/Bayselonarrend/OpenIntegrations/raw/main/service/test_data/picture2.jpg";
|
Image2 = "https://openyellow.neocities.org/test_data/picture2.jpg";
|
||||||
|
|
||||||
MarketingColor = "GREEN";
|
MarketingColor = "GREEN";
|
||||||
|
|
||||||
|
@ -26,7 +26,7 @@ sidebar_position: 3
|
|||||||
```bsl title="Code example"
|
```bsl title="Code example"
|
||||||
Token = "xoxb-6965308400114-696804637...";
|
Token = "xoxb-6965308400114-696804637...";
|
||||||
Title = "NewFile";
|
Title = "NewFile";
|
||||||
File = "https://github.com/Bayselonarrend/OpenIntegrations/raw/main/service/test_data/document.docx"; // URL, Binary Data or Path to file
|
File = "https://openyellow.neocities.org/test_data/document.docx"; // URL, Binary Data or Path to file
|
||||||
|
|
||||||
Result = OPI_Slack.AddExternalFile(Token, File, Title);
|
Result = OPI_Slack.AddExternalFile(Token, File, Title);
|
||||||
```
|
```
|
||||||
|
@ -28,7 +28,7 @@ sidebar_position: 2
|
|||||||
```bsl title="Code example"
|
```bsl title="Code example"
|
||||||
Token = "xoxb-6965308400114-696804637...";
|
Token = "xoxb-6965308400114-696804637...";
|
||||||
Channel = "C06UFNUTKUL";
|
Channel = "C06UFNUTKUL";
|
||||||
File = "https://github.com/Bayselonarrend/OpenIntegrations/raw/main/service/test_data/document.docx"; // URL, Binary Data or Path to file
|
File = "https://openyellow.neocities.org/test_data/document.docx"; // URL, Binary Data or Path to file
|
||||||
|
|
||||||
FileName = "megadoc.docx";
|
FileName = "megadoc.docx";
|
||||||
Title = "NewFile";
|
Title = "NewFile";
|
||||||
|
@ -29,7 +29,7 @@ Sends a message that arrives in the channel but is visible only to a specific us
|
|||||||
Token = "xoxb-6965308400114-696804637...";
|
Token = "xoxb-6965308400114-696804637...";
|
||||||
Channel = "C06UFNUTKUL";
|
Channel = "C06UFNUTKUL";
|
||||||
User = "U06UABH3APP";
|
User = "U06UABH3APP";
|
||||||
Image = "https://github.com/Bayselonarrend/OpenIntegrations/raw/main/service/test_data/picture.jpg";
|
Image = "https://openyellow.neocities.org/test_data/picture.jpg";
|
||||||
Text = "Ephemeral message";
|
Text = "Ephemeral message";
|
||||||
|
|
||||||
Block = OPI_Slack.GenerateImageBlock(Image, "Image");
|
Block = OPI_Slack.GenerateImageBlock(Image, "Image");
|
||||||
|
@ -37,7 +37,7 @@ sidebar_position: 1
|
|||||||
// With attachments (picture block in the example)
|
// With attachments (picture block in the example)
|
||||||
|
|
||||||
Text = "Message with picture";
|
Text = "Message with picture";
|
||||||
Image = "https://github.com/Bayselonarrend/OpenIntegrations/raw/main/service/test_data/picture.jpg";
|
Image = "https://openyellow.neocities.org/test_data/picture.jpg";
|
||||||
BlockArray = New Array;
|
BlockArray = New Array;
|
||||||
|
|
||||||
Block = OPI_Slack.GenerateImageBlock(Image, "Image");
|
Block = OPI_Slack.GenerateImageBlock(Image, "Image");
|
||||||
|
@ -23,7 +23,7 @@ sidebar_position: 5
|
|||||||
|
|
||||||
|
|
||||||
```bsl title="Code example"
|
```bsl title="Code example"
|
||||||
FileID = "CQACAgIAAx0EcNsaZQACIzFm-WB2un7AYov-xNbc_geFgGTM_gACbmQAAi3jyUs9kgABMFstY_82BA";
|
FileID = "AgACAgIAAxkDAAIfmWb-MR8PQhrvZHiqLmG6UdiAAznzAALj5DEb1I7wSxB3bmqDIveAAQADAgADcwADNgQ";
|
||||||
Token = "6129457865:AAFyzNYOAFbu...";
|
Token = "6129457865:AAFyzNYOAFbu...";
|
||||||
|
|
||||||
Result = OPI_Telegram.DownloadFile(Token, FileID);
|
Result = OPI_Telegram.DownloadFile(Token, FileID);
|
||||||
|
@ -31,7 +31,7 @@ sidebar_position: 4
|
|||||||
ChatID = "461699897";
|
ChatID = "461699897";
|
||||||
ChannelID = "@testsichee";
|
ChannelID = "@testsichee";
|
||||||
Text = "Строковое значение";
|
Text = "Строковое значение";
|
||||||
Audio = "https://github.com/Bayselonarrend/OpenIntegrations/raw/main/service/test_data/song.mp3";
|
Audio = "https://openyellow.neocities.org/test_data/song.mp3";
|
||||||
|
|
||||||
AudioPath = GetTempFileName("mp3");
|
AudioPath = GetTempFileName("mp3");
|
||||||
CopyFile(Audio, AudioPath);
|
CopyFile(Audio, AudioPath);
|
||||||
|
@ -32,7 +32,7 @@ sidebar_position: 5
|
|||||||
ChatID = "461699897";
|
ChatID = "461699897";
|
||||||
ChannelID = "@testsichee";
|
ChannelID = "@testsichee";
|
||||||
Text = "Строковое значение";
|
Text = "Строковое значение";
|
||||||
Document = "https://github.com/Bayselonarrend/OpenIntegrations/raw/main/service/test_data/document.docx";
|
Document = "https://openyellow.neocities.org/test_data/document.docx";
|
||||||
|
|
||||||
DocumentPath = GetTempFileName("docx");
|
DocumentPath = GetTempFileName("docx");
|
||||||
CopyFile(Document, DocumentPath);
|
CopyFile(Document, DocumentPath);
|
||||||
|
@ -31,7 +31,7 @@ sidebar_position: 6
|
|||||||
ChatID = "461699897";
|
ChatID = "461699897";
|
||||||
ChannelID = "@testsichee";
|
ChannelID = "@testsichee";
|
||||||
Text = "Строковое значение";
|
Text = "Строковое значение";
|
||||||
GIF = "https://github.com/Bayselonarrend/OpenIntegrations/raw/main/service/test_data/animation.gif";
|
GIF = "https://openyellow.neocities.org/test_data/animation.gif";
|
||||||
|
|
||||||
GifPath = GetTempFileName("gif");
|
GifPath = GetTempFileName("gif");
|
||||||
CopyFile(GIF, GifPath);
|
CopyFile(GIF, GifPath);
|
||||||
|
@ -33,8 +33,8 @@ Map: Key - File, Value - media type
|
|||||||
Token = "6129457865:AAFyzNYOAFbu...";
|
Token = "6129457865:AAFyzNYOAFbu...";
|
||||||
ChatID = "461699897";
|
ChatID = "461699897";
|
||||||
Text = "Строковое значение";
|
Text = "Строковое значение";
|
||||||
Image = "https://github.com/Bayselonarrend/OpenIntegrations/raw/main/service/test_data/picture.jpg";
|
Image = "https://openyellow.neocities.org/test_data/picture.jpg";
|
||||||
Video = "https://github.com/Bayselonarrend/OpenIntegrations/raw/main/service/test_data/video.mp4";
|
Video = "https://openyellow.neocities.org/test_data/video.mp4";
|
||||||
|
|
||||||
ImagePath = GetTempFileName("png");
|
ImagePath = GetTempFileName("png");
|
||||||
CopyFile(Image, ImagePath);
|
CopyFile(Image, ImagePath);
|
||||||
|
@ -31,7 +31,7 @@ sidebar_position: 3
|
|||||||
ChatID = "461699897";
|
ChatID = "461699897";
|
||||||
ChannelID = "@testsichee";
|
ChannelID = "@testsichee";
|
||||||
Text = "Строковое значение";
|
Text = "Строковое значение";
|
||||||
Video = "https://github.com/Bayselonarrend/OpenIntegrations/raw/main/service/test_data/video.mp4";
|
Video = "https://openyellow.neocities.org/test_data/video.mp4";
|
||||||
|
|
||||||
VideoPath = GetTempFileName("mp4");
|
VideoPath = GetTempFileName("mp4");
|
||||||
CopyFile(Video, VideoPath);
|
CopyFile(Video, VideoPath);
|
||||||
|
@ -30,8 +30,8 @@ sidebar_position: 2
|
|||||||
Text = "Post from autotest";
|
Text = "Post from autotest";
|
||||||
URL = "https://github.com/Bayselonarrend/OpenIntegrations";
|
URL = "https://github.com/Bayselonarrend/OpenIntegrations";
|
||||||
|
|
||||||
Image = "https://github.com/Bayselonarrend/OpenIntegrations/raw/main/service/test_data/picture.jpg"; // URL, Path or Binary Data
|
Image = "https://openyellow.neocities.org/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
|
Video = "https://openyellow.neocities.org/test_data/video.mp4"; // URL, Path or Binary Data
|
||||||
|
|
||||||
TFN = GetTempFileName("png");
|
TFN = GetTempFileName("png");
|
||||||
CopyFile(Image, TFN);
|
CopyFile(Image, TFN);
|
||||||
|
@ -30,8 +30,8 @@ sidebar_position: 1
|
|||||||
Text = "Post from autotest";
|
Text = "Post from autotest";
|
||||||
URL = "https://github.com/Bayselonarrend/OpenIntegrations";
|
URL = "https://github.com/Bayselonarrend/OpenIntegrations";
|
||||||
|
|
||||||
Image = "https://github.com/Bayselonarrend/OpenIntegrations/raw/main/service/test_data/picture.jpg"; // URL, Path or Binary Data
|
Image = "https://openyellow.neocities.org/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
|
Image2 = "https://openyellow.neocities.org/test_data/picture2.jpg"; // URL, Path or Binary Data
|
||||||
|
|
||||||
TFN = GetTempFileName("png");
|
TFN = GetTempFileName("png");
|
||||||
CopyFile(Image2, TFN);
|
CopyFile(Image2, TFN);
|
||||||
|
@ -27,7 +27,7 @@ sidebar_position: 7
|
|||||||
Parameters = GetVKParameters();
|
Parameters = GetVKParameters();
|
||||||
URL = "https://github.com/Bayselonarrend/OpenIntegrations";
|
URL = "https://github.com/Bayselonarrend/OpenIntegrations";
|
||||||
|
|
||||||
Image = "https://github.com/Bayselonarrend/OpenIntegrations/raw/main/service/test_data/picture.jpg"; // URL, Path to file or Binary Data
|
Image = "https://openyellow.neocities.org/test_data/picture.jpg"; // URL, Path to file or Binary Data
|
||||||
TFN = GetTempFileName("png");
|
TFN = GetTempFileName("png");
|
||||||
CopyFile(Image, TFN);
|
CopyFile(Image, TFN);
|
||||||
Image = New BinaryData(TFN);
|
Image = New BinaryData(TFN);
|
||||||
|
@ -28,7 +28,7 @@ sidebar_position: 10
|
|||||||
```bsl title="Code example"
|
```bsl title="Code example"
|
||||||
Parameters = GetVKParameters();
|
Parameters = GetVKParameters();
|
||||||
|
|
||||||
Video = "https://github.com/Bayselonarrend/OpenIntegrations/raw/main/service/test_data/video.mp4";
|
Video = "https://openyellow.neocities.org/test_data/video.mp4";
|
||||||
Name = "NewVideo";
|
Name = "NewVideo";
|
||||||
Description = "Video description";
|
Description = "Video description";
|
||||||
|
|
||||||
|
@ -26,8 +26,8 @@ sidebar_position: 4
|
|||||||
```bsl title="Code example"
|
```bsl title="Code example"
|
||||||
Parameters = GetVKParameters();
|
Parameters = GetVKParameters();
|
||||||
|
|
||||||
Image1 = "https://github.com/Bayselonarrend/OpenIntegrations/raw/main/service/test_data/picture.jpg"; // URL, Binary or Path to file
|
Image1 = "https://openyellow.neocities.org/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
|
Image2 = "https://openyellow.neocities.org/test_data/picture2.jpg"; // URL, Binary or Path to file
|
||||||
Selection = "121";
|
Selection = "121";
|
||||||
|
|
||||||
ImageArray = New Array;
|
ImageArray = New Array;
|
||||||
|
@ -29,7 +29,7 @@ sidebar_position: 3
|
|||||||
Parameters = GetVKParameters();
|
Parameters = GetVKParameters();
|
||||||
|
|
||||||
Name = "TestCollection";
|
Name = "TestCollection";
|
||||||
Image = "https://github.com/Bayselonarrend/OpenIntegrations/raw/main/service/test_data/picture.jpg";
|
Image = "https://openyellow.neocities.org/test_data/picture.jpg";
|
||||||
Main = True;
|
Main = True;
|
||||||
Hidden = False;
|
Hidden = False;
|
||||||
|
|
||||||
|
@ -30,7 +30,7 @@ Method at API documentation: [POST /chats/avatar/set](https://teams.vk.
|
|||||||
Token = "001.3501506236.091...";
|
Token = "001.3501506236.091...";
|
||||||
ChatID = "AoLI0egLWBSLR1Ngn2w";
|
ChatID = "AoLI0egLWBSLR1Ngn2w";
|
||||||
|
|
||||||
File = "https://github.com/Bayselonarrend/OpenIntegrations/raw/main/service/test_data/spy2.png"; // URL
|
File = "https://openyellow.neocities.org/test_data/spy2.png"; // URL
|
||||||
FilePath = GetTempFileName("png"); // Path
|
FilePath = GetTempFileName("png"); // Path
|
||||||
|
|
||||||
CopyFile(File, FilePath);
|
CopyFile(File, FilePath);
|
||||||
|
@ -34,7 +34,7 @@ Method at API documentation: [POST /messages/sendFile](https://teams.vk.com/bota
|
|||||||
ChatID = "AoLI0egLWBSLR1Ngn2w";
|
ChatID = "AoLI0egLWBSLR1Ngn2w";
|
||||||
Text = "File caption";
|
Text = "File caption";
|
||||||
|
|
||||||
File = "https://github.com/Bayselonarrend/OpenIntegrations/raw/main/service/test_data/document.docx"; // URL
|
File = "https://openyellow.neocities.org/test_data/document.docx"; // URL
|
||||||
FilePath = GetTempFileName("docx"); // Path
|
FilePath = GetTempFileName("docx"); // Path
|
||||||
|
|
||||||
CopyFile(File, FilePath);
|
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";
|
ReplyID = "7419291601358293295";
|
||||||
Text = "File caption";
|
Text = "File caption";
|
||||||
|
|
||||||
File = "https://github.com/Bayselonarrend/OpenIntegrations/raw/main/service/test_data/song.m4a" ; // URL
|
File = "https://openyellow.neocities.org/test_data/song.m4a" ; // URL
|
||||||
FilePath = GetTempFileName("m4a"); // Path
|
FilePath = GetTempFileName("m4a"); // Path
|
||||||
|
|
||||||
CopyFile(File, FilePath);
|
CopyFile(File, FilePath);
|
||||||
|
@ -28,7 +28,7 @@ sidebar_position: 3
|
|||||||
|
|
||||||
```bsl title="Code example"
|
```bsl title="Code example"
|
||||||
Extension = "docx";
|
Extension = "docx";
|
||||||
URL = "https://github.com/Bayselonarrend/OpenIntegrations/raw/main/service/test_data/document.docx";
|
URL = "https://openyellow.neocities.org/test_data/document.docx";
|
||||||
|
|
||||||
UserID = "d3jxe61Z4W73nmNkjYGgZg==";
|
UserID = "d3jxe61Z4W73nmNkjYGgZg==";
|
||||||
Token = "523b5b25ed27e6ec-fdf013e4...";
|
Token = "523b5b25ed27e6ec-fdf013e4...";
|
||||||
|
@ -27,7 +27,7 @@ sidebar_position: 2
|
|||||||
|
|
||||||
```bsl title="Code example"
|
```bsl title="Code example"
|
||||||
Description = "TestMessage";
|
Description = "TestMessage";
|
||||||
URL = "https://github.com/Bayselonarrend/OpenIntegrations/raw/main/service/test_data/picture.jpg";
|
URL = "https://openyellow.neocities.org/test_data/picture.jpg";
|
||||||
|
|
||||||
UserID = "d3jxe61Z4W73nmNkjYGgZg==";
|
UserID = "d3jxe61Z4W73nmNkjYGgZg==";
|
||||||
Token = "523b5b25ed27e6ec-fdf013e4...";
|
Token = "523b5b25ed27e6ec-fdf013e4...";
|
||||||
|
@ -25,7 +25,7 @@ sidebar_position: 11
|
|||||||
|
|
||||||
```bsl title="Code example"
|
```bsl title="Code example"
|
||||||
Token = "y0_AgAAAABdylaOAAs0QgAAAAD5i-a...";
|
Token = "y0_AgAAAABdylaOAAs0QgAAAAD5i-a...";
|
||||||
Address = "https://github.com/Bayselonarrend/OpenIntegrations/raw/main/service/test_data/picture.jpg";
|
Address = "https://openyellow.neocities.org/test_data/picture.jpg";
|
||||||
Path = "/" + String(New UUID) + ".png";
|
Path = "/" + String(New UUID) + ".png";
|
||||||
|
|
||||||
Result = OPI_YandexDisk.UploadFileByURL(Token, Path, Address);
|
Result = OPI_YandexDisk.UploadFileByURL(Token, Path, Address);
|
||||||
|
@ -29,7 +29,7 @@ sidebar_position: 10
|
|||||||
Path2 = "/" + String(New UUID) + ".png";
|
Path2 = "/" + String(New UUID) + ".png";
|
||||||
|
|
||||||
Token = "y0_AgAAAABdylaOAAs0QgAAAAD5i-a...";
|
Token = "y0_AgAAAABdylaOAAs0QgAAAAD5i-a...";
|
||||||
Image = "https://github.com/Bayselonarrend/OpenIntegrations/raw/main/service/test_data/picture.jpg"; // URL
|
Image = "https://openyellow.neocities.org/test_data/picture.jpg"; // URL
|
||||||
|
|
||||||
TFN = GetTempFileName("png"); // Path
|
TFN = GetTempFileName("png"); // Path
|
||||||
CopyFile(Image, TFN);
|
CopyFile(Image, TFN);
|
||||||
|
@ -1,8 +1,8 @@
|
|||||||
Наименование2 = "Картинка2.jpg";
|
Наименование2 = "Картинка2.jpg";
|
||||||
Наименование = "Картинка1.jpg";
|
Наименование = "Картинка1.jpg";
|
||||||
|
|
||||||
Картинка2 = "https://github.com/Bayselonarrend/OpenIntegrations/raw/main/service/test_data/picture.jpg"; // Локальный путь, URL или Двоичные данные
|
Картинка2 = "https://openyellow.neocities.org/test_data/picture.jpg"; // Локальный путь, URL или Двоичные данные
|
||||||
Картинка = "https://github.com/Bayselonarrend/OpenIntegrations/raw/main/service/test_data/picture2.jpg"; // Локальный путь, URL или Двоичные данные
|
Картинка = "https://openyellow.neocities.org/test_data/picture2.jpg"; // Локальный путь, URL или Двоичные данные
|
||||||
|
|
||||||
IDПриемника = "10842";
|
IDПриемника = "10842";
|
||||||
|
|
||||||
|
@ -1,8 +1,8 @@
|
|||||||
Наименование2 = "Картинка2.jpg";
|
Наименование2 = "Картинка2.jpg";
|
||||||
Наименование = "Картинка1.jpg";
|
Наименование = "Картинка1.jpg";
|
||||||
|
|
||||||
Картинка2 = "https://github.com/Bayselonarrend/OpenIntegrations/raw/main/service/test_data/picture.jpg"; // Локальный путь, URL или Двоичные данные
|
Картинка2 = "https://openyellow.neocities.org/test_data/picture.jpg"; // Локальный путь, URL или Двоичные данные
|
||||||
Картинка = "https://github.com/Bayselonarrend/OpenIntegrations/raw/main/service/test_data/picture2.jpg"; // Локальный путь, URL или Двоичные данные
|
Картинка = "https://openyellow.neocities.org/test_data/picture2.jpg"; // Локальный путь, URL или Двоичные данные
|
||||||
|
|
||||||
IDПриемника = 3;
|
IDПриемника = 3;
|
||||||
|
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
URL = "https://b24-ar17wx.bitrix24.by/rest/1/1o2...";
|
URL = "https://b24-ar17wx.bitrix24.by/rest/1/1o2...";
|
||||||
IDЧата = "872";
|
IDЧата = "872";
|
||||||
|
|
||||||
Картинка = "https://github.com/Bayselonarrend/OpenIntegrations/raw/main/service/test_data/picture2.jpg";
|
Картинка = "https://openyellow.neocities.org/test_data/picture2.jpg";
|
||||||
|
|
||||||
Результат = OPI_Bitrix24.ИзменитьКартинкуЧата(URL, IDЧата, Картинка);
|
Результат = OPI_Bitrix24.ИзменитьКартинкуЧата(URL, IDЧата, Картинка);
|
||||||
|
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
Текст = "Новый текст новости";
|
Текст = "Новый текст новости";
|
||||||
Заголовок = "Новый заголовок новости";
|
Заголовок = "Новый заголовок новости";
|
||||||
Картинка1 = "https://github.com/Bayselonarrend/OpenIntegrations/raw/main/service/test_data/picture.jpg"; // URL, Путь или Двоичные данные
|
Картинка1 = "https://openyellow.neocities.org/test_data/picture.jpg"; // URL, Путь или Двоичные данные
|
||||||
IDНовости = "836";
|
IDНовости = "836";
|
||||||
|
|
||||||
Файлы = Новый Соответствие;
|
Файлы = Новый Соответствие;
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
URL = "https://b24-ar17wx.bitrix24.by/rest/1/1o2...";
|
URL = "https://b24-ar17wx.bitrix24.by/rest/1/1o2...";
|
||||||
IDЧата = "872";
|
IDЧата = "872";
|
||||||
Файл = "https://github.com/Bayselonarrend/OpenIntegrations/raw/main/service/test_data/document.docx"; // Двоичные данные, URL или путь к файлу
|
Файл = "https://openyellow.neocities.org/test_data/document.docx"; // Двоичные данные, URL или путь к файлу
|
||||||
Описание = "Очень важный файл";
|
Описание = "Очень важный файл";
|
||||||
|
|
||||||
Каталог = OPI_Bitrix24.ПолучитьКаталогФайловЧата(URL, IDЧата);
|
Каталог = OPI_Bitrix24.ПолучитьКаталогФайловЧата(URL, IDЧата);
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
Наименование = "Картинка";
|
Наименование = "Картинка";
|
||||||
URL = "https://github.com/Bayselonarrend/OpenIntegrations/raw/main/service/test_data/picture.jpg";
|
URL = "https://openyellow.neocities.org/test_data/picture.jpg";
|
||||||
|
|
||||||
Результат = OPI_Bitrix24.ПолучитьБлокКартинки(Наименование, URL);
|
Результат = OPI_Bitrix24.ПолучитьБлокКартинки(Наименование, URL);
|
||||||
|
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