1
0
mirror of https://github.com/Bayselonarrend/OpenIntegrations.git synced 2026-05-02 20:52:28 +02:00
Files
OpenIntegrations/docs/en/examples/Bitrix24/CreatePersonalNotification.txt
T
Vitaly the Alpaca (bot) 4ef84f7816 Main build (Jenkins)
2026-01-25 10:18:54 +03:00

19 lines
805 B
Plaintext
Vendored

UserID = 1;
URL = "https://b24-ar17wx.bitrix24.by/rest/1/av5...";
Text = "Message text";
Image = "https://raw.githubusercontent.com/Bayselonarrend/OpenIntegrations/main/service/test_data/picture.jpg";
File = "https://github.com/Bayselonarrend/OpenIntegrations/raw/main/service/test_data/document.docx";
Attachments = New Array;
Attachments.Add(OPI_Bitrix24.GetPictureBlock("Image1" , Image));
Attachments.Add(OPI_Bitrix24.GetFileBlock("File1.docx" , File));
Result = OPI_Bitrix24.CreatePersonalNotification(URL, UserID, Text, , Attachments);
URL = "b24-ar17wx.bitrix24.by";
Token = "a5b00469006e9f06006b12e400000001000...";
Tag = "New";
UserID = 10;
Result = OPI_Bitrix24.CreatePersonalNotification(URL, UserID, Text, Tag, , Token);