You've already forked OpenIntegrations
mirror of
https://github.com/Bayselonarrend/OpenIntegrations.git
synced 2025-07-15 01:34:30 +02:00
Пересборка доков EN
This commit is contained in:
@ -28,18 +28,16 @@ Method at API documentation: [disk.folder.addsubfolder](https://dev.1c-bitrix.ru
|
||||
|
||||
|
||||
```bsl title="Code example"
|
||||
FolderID = FunctionParameters["Bitrix24_FolderID"];
|
||||
FolderID = "5016";
|
||||
Name = "New subfolder";
|
||||
Filename2 = "New subfolder 2";
|
||||
|
||||
URL = FunctionParameters["Bitrix24_URL"];
|
||||
URL = "https://b24-ar17wx.bitrix24.by/rest/1/f2ppp8uucc891111/";
|
||||
|
||||
Result = OPI_Bitrix24.CreateSubfolder(URL, FolderID, Filename2);
|
||||
|
||||
OPI_TestDataRetrieval.WriteLog(Result, "CreateSubfolder (wh)", "Bitrix24");
|
||||
|
||||
URL = FunctionParameters["Bitrix24_Domain"];
|
||||
Token = FunctionParameters["Bitrix24_Token"];
|
||||
URL = "b24-ar17wx.bitrix24.by";
|
||||
Token = "fe3fa966006e9f06006b12e400000001000...";
|
||||
|
||||
Result = OPI_Bitrix24.CreateSubfolder(URL, FolderID, Name, Token);
|
||||
```
|
||||
|
@ -27,16 +27,14 @@ Method at API documentation: [disk.folder.deletetree](https://dev.1c-bitrix.ru/r
|
||||
|
||||
|
||||
```bsl title="Code example"
|
||||
URL = FunctionParameters["Bitrix24_URL"];
|
||||
FolderID = FunctionParameters["Bitrix24_HookFolderID"];
|
||||
URL = "https://b24-ar17wx.bitrix24.by/rest/1/f2ppp8uucc891111/";
|
||||
FolderID = "5014";
|
||||
|
||||
Result = OPI_Bitrix24.DeleteFolder(URL, FolderID);
|
||||
|
||||
OPI_TestDataRetrieval.WriteLog(Result, "DeleteFolder (wh)", "Bitrix24");
|
||||
|
||||
URL = FunctionParameters["Bitrix24_Domain"];
|
||||
Token = FunctionParameters["Bitrix24_Token"];
|
||||
FolderID = FunctionParameters["Bitrix24_FolderID"];
|
||||
URL = "b24-ar17wx.bitrix24.by";
|
||||
Token = "fe3fa966006e9f06006b12e400000001000...";
|
||||
FolderID = "5016";
|
||||
|
||||
Result = OPI_Bitrix24.DeleteFolder(URL, FolderID, Token);
|
||||
```
|
||||
|
@ -27,15 +27,13 @@ Method at API documentation: [disk.folder.getExternalLink](https://dev.1c-bitrix
|
||||
|
||||
|
||||
```bsl title="Code example"
|
||||
URL = FunctionParameters["Bitrix24_URL"];
|
||||
FolderID = FunctionParameters["Bitrix24_FolderID"];
|
||||
URL = "https://b24-ar17wx.bitrix24.by/rest/1/f2ppp8uucc891111/";
|
||||
FolderID = "5016";
|
||||
|
||||
Result = OPI_Bitrix24.GetFolderExternalLink(URL, FolderID);
|
||||
|
||||
OPI_TestDataRetrieval.WriteLog(Result, "GetFolderExternalLink (wh)", "Bitrix24");
|
||||
|
||||
URL = FunctionParameters["Bitrix24_Domain"];
|
||||
Token = FunctionParameters["Bitrix24_Token"];
|
||||
URL = "b24-ar17wx.bitrix24.by";
|
||||
Token = "fe3fa966006e9f06006b12e400000001000...";
|
||||
|
||||
Result = OPI_Bitrix24.GetFolderExternalLink(URL, FolderID, Token);
|
||||
```
|
||||
|
@ -27,14 +27,12 @@ Method at API documentation: [disk.folder.getfields](https://dev.1c-bitrix.ru/re
|
||||
|
||||
|
||||
```bsl title="Code example"
|
||||
URL = FunctionParameters["Bitrix24_URL"];
|
||||
URL = "https://b24-ar17wx.bitrix24.by/rest/1/f2ppp8uucc891111/";
|
||||
|
||||
Result = OPI_Bitrix24.GetFolderFilterStructure(URL);
|
||||
|
||||
OPI_TestDataRetrieval.WriteLog(Result, "GetFolderFilterStructure (wh)", "Bitrix24");
|
||||
|
||||
URL = FunctionParameters["Bitrix24_Domain"];
|
||||
Token = FunctionParameters["Bitrix24_Token"];
|
||||
URL = "b24-ar17wx.bitrix24.by";
|
||||
Token = "fe3fa966006e9f06006b12e400000001000...";
|
||||
|
||||
Result = OPI_Bitrix24.GetFolderFilterStructure(URL, True, Token);
|
||||
```
|
||||
|
@ -27,15 +27,13 @@ Method at API documentation: [disk.folder.get](https://dev.1c-bitrix.ru/rest_hel
|
||||
|
||||
|
||||
```bsl title="Code example"
|
||||
URL = FunctionParameters["Bitrix24_URL"];
|
||||
FolderID = FunctionParameters["Bitrix24_FolderID"];
|
||||
URL = "https://b24-ar17wx.bitrix24.by/rest/1/f2ppp8uucc891111/";
|
||||
FolderID = "5016";
|
||||
|
||||
Result = OPI_Bitrix24.GetFolderInformation(URL, FolderID);
|
||||
|
||||
OPI_TestDataRetrieval.WriteLog(Result, "GetFolderInformation (wh)", "Bitrix24");
|
||||
|
||||
URL = FunctionParameters["Bitrix24_Domain"];
|
||||
Token = FunctionParameters["Bitrix24_Token"];
|
||||
URL = "b24-ar17wx.bitrix24.by";
|
||||
Token = "fe3fa966006e9f06006b12e400000001000...";
|
||||
|
||||
Result = OPI_Bitrix24.GetFolderInformation(URL, FolderID, Token);
|
||||
```
|
||||
|
@ -28,15 +28,13 @@ Method at API documentation: [disk.folder.getchildren](https://dev.1c-bitrix.ru/
|
||||
|
||||
|
||||
```bsl title="Code example"
|
||||
URL = FunctionParameters["Bitrix24_URL"];
|
||||
FolderID = FunctionParameters["Bitrix24_FolderID"];
|
||||
URL = "https://b24-ar17wx.bitrix24.by/rest/1/f2ppp8uucc891111/";
|
||||
FolderID = "5016";
|
||||
|
||||
Result = OPI_Bitrix24.GetFolderItems(URL, FolderID);
|
||||
|
||||
OPI_TestDataRetrieval.WriteLog(Result, "GetFolderItems (wh)", "Bitrix24");
|
||||
|
||||
URL = FunctionParameters["Bitrix24_Domain"];
|
||||
Token = FunctionParameters["Bitrix24_Token"];
|
||||
URL = "b24-ar17wx.bitrix24.by";
|
||||
Token = "fe3fa966006e9f06006b12e400000001000...";
|
||||
|
||||
Result = OPI_Bitrix24.GetFolderItems(URL, FolderID, , Token);
|
||||
```
|
||||
|
@ -28,25 +28,21 @@ Method at API documentation: [disk.folder.copyto](https://dev.1c-bitrix.ru/rest_
|
||||
|
||||
|
||||
```bsl title="Code example"
|
||||
DestinationID = FunctionParameters["Bitrix24_HookSubfolderID"];
|
||||
FolderID = FunctionParameters["Bitrix24_SubfolderID"];
|
||||
DestinationID = "5018";
|
||||
FolderID = "5020";
|
||||
|
||||
URL = FunctionParameters["Bitrix24_URL"];
|
||||
URL = "https://b24-ar17wx.bitrix24.by/rest/1/f2ppp8uucc891111/";
|
||||
|
||||
Result = OPI_Bitrix24.MakeFolderCopy(URL, FolderID, DestinationID);
|
||||
|
||||
OPI_TestDataRetrieval.WriteLog(Result, "MakeFolderCopy (wh)", "Bitrix24");
|
||||
DestinationID = "5020";
|
||||
FolderID = "5018";
|
||||
|
||||
DestinationID = FunctionParameters["Bitrix24_SubfolderID"];
|
||||
FolderID = FunctionParameters["Bitrix24_HookSubfolderID"];
|
||||
|
||||
URL = FunctionParameters["Bitrix24_Domain"];
|
||||
Token = FunctionParameters["Bitrix24_Token"];
|
||||
URL = "b24-ar17wx.bitrix24.by";
|
||||
Token = "fe3fa966006e9f06006b12e400000001000...";
|
||||
|
||||
Result = OPI_Bitrix24.MakeFolderCopy(URL, FolderID, DestinationID, Token);
|
||||
|
||||
OPI_TestDataRetrieval.WriteLog(Result, "MakeFolderCopy", "Bitrix24");
|
||||
|
||||
Check_BitrixObject(Result);
|
||||
```
|
||||
|
||||
|
@ -27,15 +27,13 @@ Method at API documentation: [disk.folder.markdeleted](https://dev.1c-bitrix.ru/
|
||||
|
||||
|
||||
```bsl title="Code example"
|
||||
URL = FunctionParameters["Bitrix24_URL"];
|
||||
FolderID = FunctionParameters["Bitrix24_FolderID"];
|
||||
URL = "https://b24-ar17wx.bitrix24.by/rest/1/f2ppp8uucc891111/";
|
||||
FolderID = "5016";
|
||||
|
||||
Result = OPI_Bitrix24.MarkFolderAsDeleted(URL, FolderID);
|
||||
|
||||
OPI_TestDataRetrieval.WriteLog(Result, "MarkFolderAsDeleted (wh)", "Bitrix24");
|
||||
|
||||
URL = FunctionParameters["Bitrix24_Domain"];
|
||||
Token = FunctionParameters["Bitrix24_Token"];
|
||||
URL = "b24-ar17wx.bitrix24.by";
|
||||
Token = "fe3fa966006e9f06006b12e400000001000...";
|
||||
|
||||
Result = OPI_Bitrix24.MarkFolderAsDeleted(URL, FolderID, Token);
|
||||
```
|
||||
|
@ -28,24 +28,20 @@ Method at API documentation: [disk.folder.moveto](https://dev.1c-bitrix.ru/rest_
|
||||
|
||||
|
||||
```bsl title="Code example"
|
||||
DestinationID = FunctionParameters["Bitrix24_HookfolderID"];
|
||||
FolderID = FunctionParameters["Bitrix24_SubfolderID"];
|
||||
DestinationID = "5014";
|
||||
FolderID = "5020";
|
||||
|
||||
URL = FunctionParameters["Bitrix24_URL"];
|
||||
URL = "https://b24-ar17wx.bitrix24.by/rest/1/f2ppp8uucc891111/";
|
||||
|
||||
Result = OPI_Bitrix24.MoveFolder(URL, FolderID, DestinationID);
|
||||
|
||||
OPI_TestDataRetrieval.WriteLog(Result, "MoveFolder (wh)", "Bitrix24");
|
||||
FolderID = "5018";
|
||||
|
||||
FolderID = FunctionParameters["Bitrix24_HookSubfolderID"];
|
||||
|
||||
URL = FunctionParameters["Bitrix24_Domain"];
|
||||
Token = FunctionParameters["Bitrix24_Token"];
|
||||
URL = "b24-ar17wx.bitrix24.by";
|
||||
Token = "fe3fa966006e9f06006b12e400000001000...";
|
||||
|
||||
Result = OPI_Bitrix24.MoveFolder(URL, FolderID, DestinationID, Token);
|
||||
|
||||
OPI_TestDataRetrieval.WriteLog(Result, "MoveFolder", "Bitrix24");
|
||||
|
||||
Check_BitrixObject(Result);
|
||||
```
|
||||
|
||||
|
@ -31,16 +31,14 @@ Method at API documentation: [disk.folder.rename](https://dev.1c-bitrix.ru/rest_
|
||||
Name = "New catalog";
|
||||
Filename2 = "New folder 2";
|
||||
|
||||
FolderID2 = FunctionParameters["Bitrix24_HookFolderID"];
|
||||
URL = FunctionParameters["Bitrix24_URL"];
|
||||
FolderID2 = "5014";
|
||||
URL = "https://b24-ar17wx.bitrix24.by/rest/1/f2ppp8uucc891111/";
|
||||
|
||||
Result = OPI_Bitrix24.RenameFolder(URL, FolderID2, Filename2);
|
||||
|
||||
OPI_TestDataRetrieval.WriteLog(Result, "RenameFolder (wh)", "Bitrix24");
|
||||
|
||||
FolderID = FunctionParameters["Bitrix24_FolderID"];
|
||||
URL = FunctionParameters["Bitrix24_Domain"];
|
||||
Token = FunctionParameters["Bitrix24_Token"];
|
||||
FolderID = "5016";
|
||||
URL = "b24-ar17wx.bitrix24.by";
|
||||
Token = "fe3fa966006e9f06006b12e400000001000...";
|
||||
|
||||
Result = OPI_Bitrix24.RenameFolder(URL, FolderID, Name, Token);
|
||||
```
|
||||
|
@ -27,15 +27,13 @@ Method at API documentation: [disk.folder.restore](https://dev.1c-bitrix.ru/rest
|
||||
|
||||
|
||||
```bsl title="Code example"
|
||||
URL = FunctionParameters["Bitrix24_URL"];
|
||||
FolderID = FunctionParameters["Bitrix24_FolderID"];
|
||||
URL = "https://b24-ar17wx.bitrix24.by/rest/1/f2ppp8uucc891111/";
|
||||
FolderID = "5016";
|
||||
|
||||
Result = OPI_Bitrix24.RestoreFolder(URL, FolderID);
|
||||
|
||||
OPI_TestDataRetrieval.WriteLog(Result, "RestoreFolder (wh)", "Bitrix24");
|
||||
|
||||
URL = FunctionParameters["Bitrix24_Domain"];
|
||||
Token = FunctionParameters["Bitrix24_Token"];
|
||||
URL = "b24-ar17wx.bitrix24.by";
|
||||
Token = "fe3fa966006e9f06006b12e400000001000...";
|
||||
|
||||
Result = OPI_Bitrix24.RestoreFolder(URL, FolderID, Token);
|
||||
```
|
||||
|
@ -29,8 +29,8 @@ Method at API documentation: [im.chat.user.add](https://dev.1c-bitrix.ru/learnin
|
||||
|
||||
|
||||
```bsl title="Code example"
|
||||
URL = FunctionParameters["Bitrix24_URL"];
|
||||
ChatID = FunctionParameters["Bitrix24_HookChatID"];
|
||||
URL = "https://b24-ar17wx.bitrix24.by/rest/1/f2ppp8uucc891111/";
|
||||
ChatID = "450";
|
||||
|
||||
UserIDs = New Array;
|
||||
UserIDs.Add(10);
|
||||
@ -38,11 +38,9 @@ Method at API documentation: [im.chat.user.add](https://dev.1c-bitrix.ru/learnin
|
||||
|
||||
Result = OPI_Bitrix24.AddUsersToChat(URL, ChatID, UserIDs);
|
||||
|
||||
OPI_TestDataRetrieval.WriteLog(Result, "AddUsersToChat (wh)", "Bitrix24");
|
||||
|
||||
URL = FunctionParameters["Bitrix24_Domain"];
|
||||
Token = FunctionParameters["Bitrix24_Token"];
|
||||
ChatID = FunctionParameters["Bitrix24_ChatID"];
|
||||
URL = "b24-ar17wx.bitrix24.by";
|
||||
Token = "fe3fa966006e9f06006b12e400000001000...";
|
||||
ChatID = "452";
|
||||
UserID = 10;
|
||||
|
||||
Result = OPI_Bitrix24.AddUsersToChat(URL, ChatID, UserID, True, Token);
|
||||
|
@ -30,18 +30,16 @@ Method at API documentation: [im.chat.updateTitle](https://dev.1c-bitrix.ru/lear
|
||||
|
||||
|
||||
```bsl title="Code example"
|
||||
URL = FunctionParameters["Bitrix24_URL"];
|
||||
ChatID = FunctionParameters["Bitrix24_HookChatID"];
|
||||
URL = "https://b24-ar17wx.bitrix24.by/rest/1/f2ppp8uucc891111/";
|
||||
ChatID = "450";
|
||||
|
||||
Color = "AZURE";
|
||||
|
||||
Result = OPI_Bitrix24.ChangeChatColor(URL, ChatID, Color);
|
||||
|
||||
OPI_TestDataRetrieval.WriteLog(Result, "ChangeChatColor (wh)", "Bitrix24");
|
||||
|
||||
URL = FunctionParameters["Bitrix24_Domain"];
|
||||
Token = FunctionParameters["Bitrix24_Token"];
|
||||
ChatID = FunctionParameters["Bitrix24_ChatID"];
|
||||
URL = "b24-ar17wx.bitrix24.by";
|
||||
Token = "fe3fa966006e9f06006b12e400000001000...";
|
||||
ChatID = "452";
|
||||
|
||||
Color = "PURPLE";
|
||||
|
||||
|
@ -28,18 +28,16 @@ Method at API documentation: [im.chat.setOwner](https://dev.1c-bitrix.ru/learnin
|
||||
|
||||
|
||||
```bsl title="Code example"
|
||||
URL = FunctionParameters["Bitrix24_URL"];
|
||||
ChatID = FunctionParameters["Bitrix24_HookChatID"];
|
||||
URL = "https://b24-ar17wx.bitrix24.by/rest/1/f2ppp8uucc891111/";
|
||||
ChatID = "450";
|
||||
|
||||
UserID = 10;
|
||||
|
||||
Result = OPI_Bitrix24.ChangeChatOwner(URL, ChatID, UserID);
|
||||
|
||||
OPI_TestDataRetrieval.WriteLog(Result, "ChangeChatOwner (wh)", "Bitrix24");
|
||||
|
||||
URL = FunctionParameters["Bitrix24_Domain"];
|
||||
Token = FunctionParameters["Bitrix24_Token"];
|
||||
ChatID = FunctionParameters["Bitrix24_ChatID"];
|
||||
URL = "b24-ar17wx.bitrix24.by";
|
||||
Token = "fe3fa966006e9f06006b12e400000001000...";
|
||||
ChatID = "452";
|
||||
|
||||
Result = OPI_Bitrix24.ChangeChatOwner(URL, ChatID, UserID, Token);
|
||||
```
|
||||
|
@ -28,18 +28,16 @@ Method at API documentation: [im.chat.updateAvatar](https://dev.1c-bitrix.ru/lea
|
||||
|
||||
|
||||
```bsl title="Code example"
|
||||
URL = FunctionParameters["Bitrix24_URL"];
|
||||
ChatID = FunctionParameters["Bitrix24_HookChatID"];
|
||||
URL = "https://b24-ar17wx.bitrix24.by/rest/1/f2ppp8uucc891111/";
|
||||
ChatID = "450";
|
||||
|
||||
Image = FunctionParameters["Picture2"];
|
||||
Image = "https://openintegrations.dev/test_data/picture2.jpg";
|
||||
|
||||
Result = OPI_Bitrix24.ChangeChatPicture(URL, ChatID, Image);
|
||||
|
||||
OPI_TestDataRetrieval.WriteLog(Result, "ChangeChatPicture (wh)", "Bitrix24");
|
||||
|
||||
URL = FunctionParameters["Bitrix24_Domain"];
|
||||
Token = FunctionParameters["Bitrix24_Token"];
|
||||
ChatID = FunctionParameters["Bitrix24_ChatID"];
|
||||
URL = "b24-ar17wx.bitrix24.by";
|
||||
Token = "fe3fa966006e9f06006b12e400000001000...";
|
||||
ChatID = "452";
|
||||
|
||||
Result = OPI_Bitrix24.ChangeChatPicture(URL, ChatID, Image, Token);
|
||||
```
|
||||
|
@ -28,18 +28,16 @@ Method at API documentation: [im.chat.updateTitle](https://dev.1c-bitrix.ru/lear
|
||||
|
||||
|
||||
```bsl title="Code example"
|
||||
URL = FunctionParameters["Bitrix24_URL"];
|
||||
ChatID = FunctionParameters["Bitrix24_HookChatID"];
|
||||
URL = "https://b24-ar17wx.bitrix24.by/rest/1/f2ppp8uucc891111/";
|
||||
ChatID = "450";
|
||||
|
||||
Title = "New chat title";
|
||||
|
||||
Result = OPI_Bitrix24.ChangeChatTitle(URL, ChatID, Title);
|
||||
|
||||
OPI_TestDataRetrieval.WriteLog(Result, "ChangeChatTitle (wh)", "Bitrix24");
|
||||
|
||||
URL = FunctionParameters["Bitrix24_Domain"];
|
||||
Token = FunctionParameters["Bitrix24_Token"];
|
||||
ChatID = FunctionParameters["Bitrix24_ChatID"];
|
||||
URL = "b24-ar17wx.bitrix24.by";
|
||||
Token = "fe3fa966006e9f06006b12e400000001000...";
|
||||
ChatID = "452";
|
||||
|
||||
Title = "Another title";
|
||||
|
||||
|
@ -27,7 +27,7 @@ Method at API documentation: [im.chat.add](https://dev.1c-bitrix.ru/learning/cou
|
||||
|
||||
|
||||
```bsl title="Code example"
|
||||
Image = FunctionParameters["Picture"];
|
||||
Image = "https://openintegrations.dev/test_data/picture.jpg";
|
||||
OPI_TypeConversion.GetBinaryData(Image);
|
||||
|
||||
B64Image = GetBase64StringFromBinaryData(Image);
|
||||
@ -46,14 +46,12 @@ Method at API documentation: [im.chat.add](https://dev.1c-bitrix.ru/learning/cou
|
||||
ChatStructure.Insert("AVATAR" , B64Image);
|
||||
ChatStructure.Insert("OWNER_ID" , 1);
|
||||
|
||||
URL = FunctionParameters["Bitrix24_URL"];
|
||||
URL = "https://b24-ar17wx.bitrix24.by/rest/1/f2ppp8uucc891111/";
|
||||
|
||||
Result = OPI_Bitrix24.CreateChat(URL, ChatStructure);
|
||||
|
||||
OPI_TestDataRetrieval.WriteLog(Result, "CreateChat (wh)", "Bitrix24");
|
||||
|
||||
URL = FunctionParameters["Bitrix24_Domain"];
|
||||
Token = FunctionParameters["Bitrix24_Token"];
|
||||
URL = "b24-ar17wx.bitrix24.by";
|
||||
Token = "fe3fa966006e9f06006b12e400000001000...";
|
||||
|
||||
ChatStructure = New Structure;
|
||||
ChatStructure.Insert("TYPE" , "CHAT");
|
||||
|
@ -28,18 +28,16 @@ Method at API documentation: [im.chat.user.delete](https://dev.1c-bitrix.ru/lear
|
||||
|
||||
|
||||
```bsl title="Code example"
|
||||
URL = FunctionParameters["Bitrix24_URL"];
|
||||
ChatID = FunctionParameters["Bitrix24_HookChatID"];
|
||||
URL = "https://b24-ar17wx.bitrix24.by/rest/1/f2ppp8uucc891111/";
|
||||
ChatID = "450";
|
||||
|
||||
UserID = 10;
|
||||
|
||||
Result = OPI_Bitrix24.DeleteUserFromChat(URL, ChatID, UserID);
|
||||
|
||||
OPI_TestDataRetrieval.WriteLog(Result, "DeleteUserFromChat (wh)", "Bitrix24");
|
||||
|
||||
URL = FunctionParameters["Bitrix24_Domain"];
|
||||
Token = FunctionParameters["Bitrix24_Token"];
|
||||
ChatID = FunctionParameters["Bitrix24_ChatID"];
|
||||
URL = "b24-ar17wx.bitrix24.by";
|
||||
Token = "fe3fa966006e9f06006b12e400000001000...";
|
||||
ChatID = "452";
|
||||
|
||||
Result = OPI_Bitrix24.DeleteUserFromChat(URL, ChatID, UserID, Token);
|
||||
```
|
||||
|
@ -27,16 +27,14 @@ Method at API documentation: [im.chat.mute](https://dev.1c-bitrix.ru/learning/co
|
||||
|
||||
|
||||
```bsl title="Code example"
|
||||
URL = FunctionParameters["Bitrix24_URL"];
|
||||
ChatID = FunctionParameters["Bitrix24_HookChatID"];
|
||||
URL = "https://b24-ar17wx.bitrix24.by/rest/1/f2ppp8uucc891111/";
|
||||
ChatID = "450";
|
||||
|
||||
Result = OPI_Bitrix24.DisableChatNotifications(URL, ChatID);
|
||||
|
||||
OPI_TestDataRetrieval.WriteLog(Result, "DisableChatNotifications (wh)", "Bitrix24");
|
||||
|
||||
URL = FunctionParameters["Bitrix24_Domain"];
|
||||
Token = FunctionParameters["Bitrix24_Token"];
|
||||
ChatID = FunctionParameters["Bitrix24_ChatID"];
|
||||
URL = "b24-ar17wx.bitrix24.by";
|
||||
Token = "fe3fa966006e9f06006b12e400000001000...";
|
||||
ChatID = "452";
|
||||
|
||||
Result = OPI_Bitrix24.DisableChatNotifications(URL, ChatID, Token);
|
||||
```
|
||||
|
@ -27,16 +27,14 @@ Method at API documentation: [im.chat.mute](https://dev.1c-bitrix.ru/learning/co
|
||||
|
||||
|
||||
```bsl title="Code example"
|
||||
URL = FunctionParameters["Bitrix24_URL"];
|
||||
ChatID = FunctionParameters["Bitrix24_HookChatID"];
|
||||
URL = "https://b24-ar17wx.bitrix24.by/rest/1/f2ppp8uucc891111/";
|
||||
ChatID = "450";
|
||||
|
||||
Result = OPI_Bitrix24.EnableChatNotifications(URL, ChatID);
|
||||
|
||||
OPI_TestDataRetrieval.WriteLog(Result, "EnableChatNotifications (wh)", "Bitrix24");
|
||||
|
||||
URL = FunctionParameters["Bitrix24_Domain"];
|
||||
Token = FunctionParameters["Bitrix24_Token"];
|
||||
ChatID = FunctionParameters["Bitrix24_ChatID"];
|
||||
URL = "b24-ar17wx.bitrix24.by";
|
||||
Token = "fe3fa966006e9f06006b12e400000001000...";
|
||||
ChatID = "452";
|
||||
|
||||
Result = OPI_Bitrix24.EnableChatNotifications(URL, ChatID, Token);
|
||||
```
|
||||
|
@ -27,16 +27,14 @@ Method at API documentation: [im.disk.folder.get](https://dev.1c-bitrix.ru/learn
|
||||
|
||||
|
||||
```bsl title="Code example"
|
||||
URL = FunctionParameters["Bitrix24_URL"];
|
||||
ChatID = FunctionParameters["Bitrix24_HookChatID"];
|
||||
URL = "https://b24-ar17wx.bitrix24.by/rest/1/f2ppp8uucc891111/";
|
||||
ChatID = "450";
|
||||
|
||||
Result = OPI_Bitrix24.GetChatFilesFolder(URL, ChatID);
|
||||
|
||||
OPI_TestDataRetrieval.WriteLog(Result, "GetChatFilesFolder)", "Bitrix24");
|
||||
|
||||
URL = FunctionParameters["Bitrix24_Domain"];
|
||||
Token = FunctionParameters["Bitrix24_Token"];
|
||||
ChatID = FunctionParameters["Bitrix24_ChatID"];
|
||||
URL = "b24-ar17wx.bitrix24.by";
|
||||
Token = "fe3fa966006e9f06006b12e400000001000...";
|
||||
ChatID = "452";
|
||||
|
||||
Result = OPI_Bitrix24.GetChatFilesFolder(URL, ChatID, Token);
|
||||
```
|
||||
|
@ -27,15 +27,13 @@ Method at API documentation: [im.dialog.users.list](https://dev.1c-bitrix.ru/lea
|
||||
|
||||
|
||||
```bsl title="Code example"
|
||||
URL = FunctionParameters["Bitrix24_URL"];
|
||||
ChatID = "chat" + FunctionParameters["Bitrix24_HookChatID"];
|
||||
URL = "https://b24-ar17wx.bitrix24.by/rest/1/f2ppp8uucc891111/";
|
||||
ChatID = "chat" + "450";
|
||||
|
||||
Result = OPI_Bitrix24.GetChatMembersList(URL, ChatID);
|
||||
|
||||
OPI_TestDataRetrieval.WriteLog(Result, "GetChatMembersList)", "Bitrix24");
|
||||
|
||||
URL = FunctionParameters["Bitrix24_Domain"];
|
||||
Token = FunctionParameters["Bitrix24_Token"];
|
||||
URL = "b24-ar17wx.bitrix24.by";
|
||||
Token = "fe3fa966006e9f06006b12e400000001000...";
|
||||
UserID = 10;
|
||||
|
||||
Result = OPI_Bitrix24.GetChatMembersList(URL, UserID, Token);
|
||||
|
@ -29,15 +29,13 @@ Method at API documentation: [im.dialog.messages.get](https://dev.1c-bitrix.ru/l
|
||||
|
||||
|
||||
```bsl title="Code example"
|
||||
URL = FunctionParameters["Bitrix24_URL"];
|
||||
URL = "https://b24-ar17wx.bitrix24.by/rest/1/f2ppp8uucc891111/";
|
||||
ChatID = "chat4";
|
||||
|
||||
Result = OPI_Bitrix24.GetChatMessagesList(URL, ChatID);
|
||||
|
||||
OPI_TestDataRetrieval.WriteLog(Result, "GetChatMessagesList (wh)", "Bitrix24");
|
||||
|
||||
URL = FunctionParameters["Bitrix24_Domain"];
|
||||
Token = FunctionParameters["Bitrix24_Token"];
|
||||
URL = "b24-ar17wx.bitrix24.by";
|
||||
Token = "fe3fa966006e9f06006b12e400000001000...";
|
||||
UserID = 10;
|
||||
|
||||
Result = OPI_Bitrix24.GetChatMessagesList(URL, UserID, , 0, Token);
|
||||
|
@ -27,16 +27,14 @@ Method at API documentation: [im.chat.user.list](https://dev.1c-bitrix.ru/learni
|
||||
|
||||
|
||||
```bsl title="Code example"
|
||||
URL = FunctionParameters["Bitrix24_URL"];
|
||||
ChatID = FunctionParameters["Bitrix24_HookChatID"];
|
||||
URL = "https://b24-ar17wx.bitrix24.by/rest/1/f2ppp8uucc891111/";
|
||||
ChatID = "450";
|
||||
|
||||
Result = OPI_Bitrix24.GetChatUsers(URL, ChatID);
|
||||
|
||||
OPI_TestDataRetrieval.WriteLog(Result, "GetChatUsers (wh)", "Bitrix24");
|
||||
|
||||
URL = FunctionParameters["Bitrix24_Domain"];
|
||||
Token = FunctionParameters["Bitrix24_Token"];
|
||||
ChatID = FunctionParameters["Bitrix24_ChatID"];
|
||||
URL = "b24-ar17wx.bitrix24.by";
|
||||
Token = "fe3fa966006e9f06006b12e400000001000...";
|
||||
ChatID = "452";
|
||||
|
||||
Result = OPI_Bitrix24.GetChatUsers(URL, ChatID, Token);
|
||||
```
|
||||
|
@ -27,15 +27,13 @@ Method at API documentation: [im.dialog.get](https://dev.1c-bitrix.ru/learning/c
|
||||
|
||||
|
||||
```bsl title="Code example"
|
||||
URL = FunctionParameters["Bitrix24_URL"];
|
||||
ChatID = "chat" + FunctionParameters["Bitrix24_HookChatID"];
|
||||
URL = "https://b24-ar17wx.bitrix24.by/rest/1/f2ppp8uucc891111/";
|
||||
ChatID = "chat" + "450";
|
||||
|
||||
Result = OPI_Bitrix24.GetDialog(URL, ChatID);
|
||||
|
||||
OPI_TestDataRetrieval.WriteLog(Result, "GetDialog (wh)", "Bitrix24");
|
||||
|
||||
URL = FunctionParameters["Bitrix24_Domain"];
|
||||
Token = FunctionParameters["Bitrix24_Token"];
|
||||
URL = "b24-ar17wx.bitrix24.by";
|
||||
Token = "fe3fa966006e9f06006b12e400000001000...";
|
||||
UserID = 10;
|
||||
|
||||
Result = OPI_Bitrix24.GetDialog(URL, UserID, Token);
|
||||
|
@ -26,14 +26,12 @@ Method at API documentation: [im.user.status.get](https://dev.1c-bitrix.ru/learn
|
||||
|
||||
|
||||
```bsl title="Code example"
|
||||
URL = FunctionParameters["Bitrix24_URL"];
|
||||
URL = "https://b24-ar17wx.bitrix24.by/rest/1/f2ppp8uucc891111/";
|
||||
|
||||
Result = OPI_Bitrix24.GetUserStatus(URL);
|
||||
|
||||
OPI_TestDataRetrieval.WriteLog(Result, "GetUserStatus (wh)", "Bitrix24");
|
||||
|
||||
URL = FunctionParameters["Bitrix24_Domain"];
|
||||
Token = FunctionParameters["Bitrix24_Token"];
|
||||
URL = "b24-ar17wx.bitrix24.by";
|
||||
Token = "fe3fa966006e9f06006b12e400000001000...";
|
||||
|
||||
Result = OPI_Bitrix24.GetUserStatus(URL, Token);
|
||||
```
|
||||
|
@ -27,7 +27,7 @@ Method at API documentation: [im.user.list.get ](https://dev.1c-bitrix.ru/learni
|
||||
|
||||
|
||||
```bsl title="Code example"
|
||||
URL = FunctionParameters["Bitrix24_URL"];
|
||||
URL = "https://b24-ar17wx.bitrix24.by/rest/1/f2ppp8uucc891111/";
|
||||
ArrayOfUsers = New Array;
|
||||
|
||||
ArrayOfUsers.Add(1);
|
||||
@ -35,10 +35,8 @@ Method at API documentation: [im.user.list.get ](https://dev.1c-bitrix.ru/learni
|
||||
|
||||
Result = OPI_Bitrix24.GetUsers(URL, ArrayOfUsers);
|
||||
|
||||
OPI_TestDataRetrieval.WriteLog(Result, "GetUsers (wh)", "Bitrix24");
|
||||
|
||||
URL = FunctionParameters["Bitrix24_Domain"];
|
||||
Token = FunctionParameters["Bitrix24_Token"];
|
||||
URL = "b24-ar17wx.bitrix24.by";
|
||||
Token = "fe3fa966006e9f06006b12e400000001000...";
|
||||
UserIDs = 10;
|
||||
|
||||
Result = OPI_Bitrix24.GetUsers(URL, UserIDs, Token);
|
||||
|
@ -27,16 +27,14 @@ Method at API documentation: [im.chat.leave](https://dev.1c-bitrix.ru/learning/c
|
||||
|
||||
|
||||
```bsl title="Code example"
|
||||
URL = FunctionParameters["Bitrix24_URL"];
|
||||
ChatID = FunctionParameters["Bitrix24_HookChatID"];
|
||||
URL = "https://b24-ar17wx.bitrix24.by/rest/1/f2ppp8uucc891111/";
|
||||
ChatID = "450";
|
||||
|
||||
Result = OPI_Bitrix24.LeaveChat(URL, ChatID);
|
||||
|
||||
OPI_TestDataRetrieval.WriteLog(Result, "LeaveChat (wh)", "Bitrix24");
|
||||
|
||||
URL = FunctionParameters["Bitrix24_Domain"];
|
||||
Token = FunctionParameters["Bitrix24_Token"];
|
||||
ChatID = FunctionParameters["Bitrix24_ChatID"];
|
||||
URL = "b24-ar17wx.bitrix24.by";
|
||||
Token = "fe3fa966006e9f06006b12e400000001000...";
|
||||
ChatID = "452";
|
||||
|
||||
Result = OPI_Bitrix24.LeaveChat(URL, ChatID, Token);
|
||||
```
|
||||
|
@ -26,14 +26,12 @@ Method at API documentation: [im.dialog.read.all](https://dev.1c-bitrix.ru/learn
|
||||
|
||||
|
||||
```bsl title="Code example"
|
||||
URL = FunctionParameters["Bitrix24_URL"];
|
||||
URL = "https://b24-ar17wx.bitrix24.by/rest/1/f2ppp8uucc891111/";
|
||||
|
||||
Result = OPI_Bitrix24.ReadAll(URL);
|
||||
|
||||
OPI_TestDataRetrieval.WriteLog(Result, "ReadAll (wh)", "Bitrix24");
|
||||
|
||||
URL = FunctionParameters["Bitrix24_Domain"];
|
||||
Token = FunctionParameters["Bitrix24_Token"];
|
||||
URL = "b24-ar17wx.bitrix24.by";
|
||||
Token = "fe3fa966006e9f06006b12e400000001000...";
|
||||
|
||||
Result = OPI_Bitrix24.ReadAll(URL, Token);
|
||||
```
|
||||
|
@ -27,15 +27,13 @@ Method at API documentation: [im.dialog.writing](https://dev.1c-bitrix.ru/learni
|
||||
|
||||
|
||||
```bsl title="Code example"
|
||||
URL = FunctionParameters["Bitrix24_URL"];
|
||||
ChatID = "chat" + FunctionParameters["Bitrix24_HookChatID"];
|
||||
URL = "https://b24-ar17wx.bitrix24.by/rest/1/f2ppp8uucc891111/";
|
||||
ChatID = "chat" + "450";
|
||||
|
||||
Result = OPI_Bitrix24.SendWritingNotification(URL, ChatID);
|
||||
|
||||
OPI_TestDataRetrieval.WriteLog(Result, "SendWritingNotification (wh)", "Bitrix24");
|
||||
|
||||
URL = FunctionParameters["Bitrix24_Domain"];
|
||||
Token = FunctionParameters["Bitrix24_Token"];
|
||||
URL = "b24-ar17wx.bitrix24.by";
|
||||
Token = "fe3fa966006e9f06006b12e400000001000...";
|
||||
UserID = 10;
|
||||
|
||||
Result = OPI_Bitrix24.SendWritingNotification(URL, UserID, Token);
|
||||
|
@ -27,15 +27,13 @@ Method at API documentation: [im.user.status.set](https://dev.1c-bitrix.ru/learn
|
||||
|
||||
|
||||
```bsl title="Code example"
|
||||
URL = FunctionParameters["Bitrix24_URL"];
|
||||
URL = "https://b24-ar17wx.bitrix24.by/rest/1/f2ppp8uucc891111/";
|
||||
Status = "dnd";
|
||||
|
||||
Result = OPI_Bitrix24.SetUserStatus(URL, Status);
|
||||
|
||||
OPI_TestDataRetrieval.WriteLog(Result, "SetUserStatus (wh)", "Bitrix24");
|
||||
|
||||
URL = FunctionParameters["Bitrix24_Domain"];
|
||||
Token = FunctionParameters["Bitrix24_Token"];
|
||||
URL = "b24-ar17wx.bitrix24.by";
|
||||
Token = "fe3fa966006e9f06006b12e400000001000...";
|
||||
Status = "away";
|
||||
|
||||
Result = OPI_Bitrix24.SetUserStatus(URL, Status, Token);
|
||||
|
@ -28,17 +28,15 @@ Method at API documentation: [task.commentitem.add](https://dev.1c-bitrix.ru/res
|
||||
|
||||
|
||||
```bsl title="Code example"
|
||||
URL = FunctionParameters["Bitrix24_URL"];
|
||||
TaskID = FunctionParameters["Bitrix24_CommentsTaskID"];
|
||||
URL = "https://b24-ar17wx.bitrix24.by/rest/1/f2ppp8uucc891111/";
|
||||
TaskID = "1082";
|
||||
|
||||
Text = "Task impossible, let's split up";
|
||||
|
||||
Result = OPI_Bitrix24.AddTaskComment(URL, TaskID, Text);
|
||||
|
||||
OPI_TestDataRetrieval.WriteLog(Result, "AddTaskComment (wh)", "Bitrix24");
|
||||
|
||||
URL = FunctionParameters["Bitrix24_Domain"];
|
||||
Token = FunctionParameters["Bitrix24_Token"];
|
||||
URL = "b24-ar17wx.bitrix24.by";
|
||||
Token = "fe3fa966006e9f06006b12e400000001000...";
|
||||
|
||||
Text = "Task uninpossible, don't split up";
|
||||
|
||||
|
@ -27,16 +27,14 @@ Method at API documentation: [tasks.task.result.addFromComment](https://dev.1c-b
|
||||
|
||||
|
||||
```bsl title="Code example"
|
||||
URL = FunctionParameters["Bitrix24_URL"];
|
||||
CommentID = FunctionParameters["Bitrix24_HookCommentID"];
|
||||
URL = "https://b24-ar17wx.bitrix24.by/rest/1/f2ppp8uucc891111/";
|
||||
CommentID = "2932";
|
||||
|
||||
Result = OPI_Bitrix24.CreateResultFromComment(URL, CommentID);
|
||||
|
||||
OPI_TestDataRetrieval.WriteLog(Result, "CreateResultFromComment (wh)", "Bitrix24");
|
||||
|
||||
URL = FunctionParameters["Bitrix24_Domain"];
|
||||
Token = FunctionParameters["Bitrix24_Token"];
|
||||
CommentID = FunctionParameters["Bitrix24_CommentID"];
|
||||
URL = "b24-ar17wx.bitrix24.by";
|
||||
Token = "fe3fa966006e9f06006b12e400000001000...";
|
||||
CommentID = "2936";
|
||||
|
||||
Result = OPI_Bitrix24.CreateResultFromComment(URL, CommentID, Token);
|
||||
```
|
||||
|
@ -27,16 +27,14 @@ Method at API documentation: [tasks.task.result.deleteFromComment](https://dev.1
|
||||
|
||||
|
||||
```bsl title="Code example"
|
||||
URL = FunctionParameters["Bitrix24_URL"];
|
||||
CommentID = FunctionParameters["Bitrix24_HookCommentID"];
|
||||
URL = "https://b24-ar17wx.bitrix24.by/rest/1/f2ppp8uucc891111/";
|
||||
CommentID = "2932";
|
||||
|
||||
Result = OPI_Bitrix24.DeleteResultFromComment(URL, CommentID);
|
||||
|
||||
OPI_TestDataRetrieval.WriteLog(Result, "Delete result from comment)", "Bitrix24");
|
||||
|
||||
URL = FunctionParameters["Bitrix24_Domain"];
|
||||
Token = FunctionParameters["Bitrix24_Token"];
|
||||
CommentID = FunctionParameters["Bitrix24_CommentID"];
|
||||
URL = "b24-ar17wx.bitrix24.by";
|
||||
Token = "fe3fa966006e9f06006b12e400000001000...";
|
||||
CommentID = "2936";
|
||||
|
||||
Result = OPI_Bitrix24.DeleteResultFromComment(URL, CommentID, Token);
|
||||
```
|
||||
|
@ -28,17 +28,15 @@ Method at API documentation: [task.commentitem.delete](https://dev.1c-bitrix.ru/
|
||||
|
||||
|
||||
```bsl title="Code example"
|
||||
URL = FunctionParameters["Bitrix24_URL"];
|
||||
TaskID = FunctionParameters["Bitrix24_CommentsTaskID"];
|
||||
CommentID = FunctionParameters["Bitrix24_HookCommentID"];
|
||||
URL = "https://b24-ar17wx.bitrix24.by/rest/1/f2ppp8uucc891111/";
|
||||
TaskID = "1082";
|
||||
CommentID = "2932";
|
||||
|
||||
Result = OPI_Bitrix24.DeleteTaskComment(URL, TaskID, CommentID);
|
||||
|
||||
OPI_TestDataRetrieval.WriteLog(Result, "DeleteTaskComment (wh)", "Bitrix24");
|
||||
|
||||
URL = FunctionParameters["Bitrix24_Domain"];
|
||||
Token = FunctionParameters["Bitrix24_Token"];
|
||||
CommentID = FunctionParameters["Bitrix24_CommentID"];
|
||||
URL = "b24-ar17wx.bitrix24.by";
|
||||
Token = "fe3fa966006e9f06006b12e400000001000...";
|
||||
CommentID = "2936";
|
||||
|
||||
Result = OPI_Bitrix24.DeleteTaskComment(URL, TaskID, CommentID, Token);
|
||||
```
|
||||
|
@ -27,15 +27,13 @@ Method at API documentation: [tasks.task.result.list](https://dev.1c-bitrix.ru/r
|
||||
|
||||
|
||||
```bsl title="Code example"
|
||||
URL = FunctionParameters["Bitrix24_URL"];
|
||||
TaskID = FunctionParameters["Bitrix24_CommentsTaskID"];
|
||||
URL = "https://b24-ar17wx.bitrix24.by/rest/1/f2ppp8uucc891111/";
|
||||
TaskID = "1082";
|
||||
|
||||
Result = OPI_Bitrix24.GetResultsList(URL, TaskID);
|
||||
|
||||
OPI_TestDataRetrieval.WriteLog(Result, "GetResultsList (wh)", "Bitrix24");
|
||||
|
||||
URL = FunctionParameters["Bitrix24_Domain"];
|
||||
Token = FunctionParameters["Bitrix24_Token"];
|
||||
URL = "b24-ar17wx.bitrix24.by";
|
||||
Token = "fe3fa966006e9f06006b12e400000001000...";
|
||||
|
||||
Result = OPI_Bitrix24.GetResultsList(URL, TaskID, Token);
|
||||
```
|
||||
|
@ -28,17 +28,15 @@ Method at API documentation: [task.commentitem.get](https://dev.1c-bitrix.ru/res
|
||||
|
||||
|
||||
```bsl title="Code example"
|
||||
URL = FunctionParameters["Bitrix24_URL"];
|
||||
CommentID = FunctionParameters["Bitrix24_HookCommentID"];
|
||||
TaskID = FunctionParameters["Bitrix24_CommentsTaskID"];
|
||||
URL = "https://b24-ar17wx.bitrix24.by/rest/1/f2ppp8uucc891111/";
|
||||
CommentID = "2932";
|
||||
TaskID = "1082";
|
||||
|
||||
Result = OPI_Bitrix24.GetTaskComment(URL, TaskID, CommentID);
|
||||
|
||||
OPI_TestDataRetrieval.WriteLog(Result, "GetTaskComment (wh)", "Bitrix24");
|
||||
|
||||
URL = FunctionParameters["Bitrix24_Domain"];
|
||||
Token = FunctionParameters["Bitrix24_Token"];
|
||||
CommentID = FunctionParameters["Bitrix24_CommentID"];
|
||||
URL = "b24-ar17wx.bitrix24.by";
|
||||
Token = "fe3fa966006e9f06006b12e400000001000...";
|
||||
CommentID = "2936";
|
||||
|
||||
Result = OPI_Bitrix24.GetTaskComment(URL, TaskID, CommentID, Token);
|
||||
```
|
||||
|
@ -27,15 +27,13 @@ Method at API documentation: [task.commentitem.getlist](https://dev.1c-bitrix.ru
|
||||
|
||||
|
||||
```bsl title="Code example"
|
||||
URL = FunctionParameters["Bitrix24_URL"];
|
||||
TaskID = FunctionParameters["Bitrix24_CommentsTaskID"];
|
||||
URL = "https://b24-ar17wx.bitrix24.by/rest/1/f2ppp8uucc891111/";
|
||||
TaskID = "1082";
|
||||
|
||||
Result = OPI_Bitrix24.GetTaskCommentsList(URL, TaskID);
|
||||
|
||||
OPI_TestDataRetrieval.WriteLog(Result, "GetTaskCommentsList (wh)", "Bitrix24");
|
||||
|
||||
URL = FunctionParameters["Bitrix24_Domain"];
|
||||
Token = FunctionParameters["Bitrix24_Token"];
|
||||
URL = "b24-ar17wx.bitrix24.by";
|
||||
Token = "fe3fa966006e9f06006b12e400000001000...";
|
||||
|
||||
Result = OPI_Bitrix24.GetTaskCommentsList(URL, TaskID, Token);
|
||||
```
|
||||
|
@ -29,19 +29,17 @@ Method at API documentation: [task.commentitem.update](https://dev.1c-bitrix.ru/
|
||||
|
||||
|
||||
```bsl title="Code example"
|
||||
URL = FunctionParameters["Bitrix24_URL"];
|
||||
TaskID = FunctionParameters["Bitrix24_CommentsTaskID"];
|
||||
CommentID = FunctionParameters["Bitrix24_HookCommentID"];
|
||||
URL = "https://b24-ar17wx.bitrix24.by/rest/1/f2ppp8uucc891111/";
|
||||
TaskID = "1082";
|
||||
CommentID = "2932";
|
||||
|
||||
Text = "The task has been changed, do not split up";
|
||||
|
||||
Result = OPI_Bitrix24.UpdateTaskComment(URL, TaskID, CommentID, Text);
|
||||
|
||||
OPI_TestDataRetrieval.WriteLog(Result, "UpdateTaskComment (wh)", "Bitrix24");
|
||||
|
||||
URL = FunctionParameters["Bitrix24_Domain"];
|
||||
Token = FunctionParameters["Bitrix24_Token"];
|
||||
CommentID = FunctionParameters["Bitrix24_CommentID"];
|
||||
URL = "b24-ar17wx.bitrix24.by";
|
||||
Token = "fe3fa966006e9f06006b12e400000001000...";
|
||||
CommentID = "2936";
|
||||
|
||||
Text = "The task has been changed, let's split up";
|
||||
|
||||
|
@ -31,15 +31,15 @@ Method at API documentation: [task.item.userfield.add](https://dev.1c-bitrix.ru/
|
||||
|
||||
|
||||
```bsl title="Code example"
|
||||
URL = FunctionParameters["Bitrix24_URL"];
|
||||
URL = "https://b24-ar17wx.bitrix24.by/rest/1/f2ppp8uucc891111/";
|
||||
|
||||
Type = "date";
|
||||
Name = "BIRTHDAY_FIELD";
|
||||
|
||||
Result = OPI_Bitrix24.AddCustomTaskField(URL, Type, Name);
|
||||
|
||||
URL = FunctionParameters["Bitrix24_Domain"];
|
||||
Token = FunctionParameters["Bitrix24_Token"];
|
||||
URL = "b24-ar17wx.bitrix24.by";
|
||||
Token = "fe3fa966006e9f06006b12e400000001000...";
|
||||
|
||||
Type = "string";
|
||||
Name = "TEXT_FIELD";
|
||||
|
@ -27,14 +27,14 @@ Method at API documentation: [task.item.userfield.delete](https://dev.1c-bitrix.
|
||||
|
||||
|
||||
```bsl title="Code example"
|
||||
URL = FunctionParameters["Bitrix24_URL"];
|
||||
FieldID = FunctionParameters["Bitrix24_HookTaskFieldID"];
|
||||
URL = "https://b24-ar17wx.bitrix24.by/rest/1/f2ppp8uucc891111/";
|
||||
FieldID = "255";
|
||||
|
||||
Result = OPI_Bitrix24.DeleteCustomTaskField(URL, FieldID);
|
||||
|
||||
URL = FunctionParameters["Bitrix24_Domain"];
|
||||
Token = FunctionParameters["Bitrix24_Token"];
|
||||
FieldID = FunctionParameters["Bitrix24_TaskFieldID"];
|
||||
URL = "b24-ar17wx.bitrix24.by";
|
||||
Token = "fe3fa966006e9f06006b12e400000001000...";
|
||||
FieldID = "257";
|
||||
|
||||
Result = OPI_Bitrix24.DeleteCustomTaskField(URL, FieldID, );
|
||||
```
|
||||
|
@ -27,14 +27,14 @@ Method at API documentation: [task.item.userfield.get](https://dev.1c-bitrix.ru/
|
||||
|
||||
|
||||
```bsl title="Code example"
|
||||
URL = FunctionParameters["Bitrix24_URL"];
|
||||
FieldID = FunctionParameters["Bitrix24_HookTaskFieldID"];
|
||||
URL = "https://b24-ar17wx.bitrix24.by/rest/1/f2ppp8uucc891111/";
|
||||
FieldID = "255";
|
||||
|
||||
Result = OPI_Bitrix24.GetCustomTaskField(URL, FieldID);
|
||||
|
||||
URL = FunctionParameters["Bitrix24_Domain"];
|
||||
Token = FunctionParameters["Bitrix24_Token"];
|
||||
FieldID = FunctionParameters["Bitrix24_TaskFieldID"];
|
||||
URL = "b24-ar17wx.bitrix24.by";
|
||||
Token = "fe3fa966006e9f06006b12e400000001000...";
|
||||
FieldID = "257";
|
||||
|
||||
Result = OPI_Bitrix24.GetCustomTaskField(URL, FieldID, );
|
||||
```
|
||||
|
@ -26,12 +26,12 @@ Method at API documentation: [task.item.userfield.getlist](https://dev.1c-bitrix
|
||||
|
||||
|
||||
```bsl title="Code example"
|
||||
URL = FunctionParameters["Bitrix24_URL"];
|
||||
URL = "https://b24-ar17wx.bitrix24.by/rest/1/f2ppp8uucc891111/";
|
||||
|
||||
Result = OPI_Bitrix24.GetCustomTaskFieldsList(URL);
|
||||
|
||||
URL = FunctionParameters["Bitrix24_Domain"];
|
||||
Token = FunctionParameters["Bitrix24_Token"];
|
||||
URL = "b24-ar17wx.bitrix24.by";
|
||||
Token = "fe3fa966006e9f06006b12e400000001000...";
|
||||
|
||||
Result = OPI_Bitrix24.GetCustomTaskFieldsList(URL);
|
||||
```
|
||||
|
@ -30,17 +30,17 @@ Method at API documentation: [task.item.userfield.update](https://dev.1c-bitrix.
|
||||
|
||||
|
||||
```bsl title="Code example"
|
||||
URL = FunctionParameters["Bitrix24_URL"];
|
||||
URL = "https://b24-ar17wx.bitrix24.by/rest/1/f2ppp8uucc891111/";
|
||||
|
||||
FieldID = FunctionParameters["Bitrix24_HookTaskFieldID"];
|
||||
FieldID = "255";
|
||||
Title = "New title";
|
||||
|
||||
Result = OPI_Bitrix24.UpdateCustomTaskField(URL, FieldID, , Title);
|
||||
|
||||
URL = FunctionParameters["Bitrix24_Domain"];
|
||||
Token = FunctionParameters["Bitrix24_Token"];
|
||||
URL = "b24-ar17wx.bitrix24.by";
|
||||
Token = "fe3fa966006e9f06006b12e400000001000...";
|
||||
|
||||
FieldID = FunctionParameters["Bitrix24_TaskFieldID"];
|
||||
FieldID = "257";
|
||||
ExternalID = "NEW_TEXT_FIELD";
|
||||
Signature = New Structure("en,ru", "Updated field", "Izmenennoe pole");
|
||||
|
||||
|
@ -29,20 +29,18 @@ Method at API documentation: [department.add](https://dev.1c-bitrix.ru/rest_help
|
||||
|
||||
|
||||
```bsl title="Code example"
|
||||
URL = FunctionParameters["Bitrix24_URL"];
|
||||
URL = "https://b24-ar17wx.bitrix24.by/rest/1/f2ppp8uucc891111/";
|
||||
|
||||
Name = "Main department";
|
||||
ParentID = 1;
|
||||
|
||||
Result = OPI_Bitrix24.CreateDepartment(URL, Name, ParentID);
|
||||
|
||||
OPI_TestDataRetrieval.WriteLog(Result, "CreateDepartment (wh)", "Bitrix24");
|
||||
|
||||
URL = FunctionParameters["Bitrix24_Domain"];
|
||||
Token = FunctionParameters["Bitrix24_Token"];
|
||||
URL = "b24-ar17wx.bitrix24.by";
|
||||
Token = "fe3fa966006e9f06006b12e400000001000...";
|
||||
|
||||
Name = "Subordinate department";
|
||||
ParentID = FunctionParameters["Bitrix24_HookDepID"];
|
||||
ParentID = "68";
|
||||
HeadID = 1;
|
||||
|
||||
Result = OPI_Bitrix24.CreateDepartment(URL, Name, ParentID, HeadID, Token);
|
||||
|
@ -27,16 +27,14 @@ Method at API documentation: [department.delete](https://dev.1c-bitrix.ru/rest_h
|
||||
|
||||
|
||||
```bsl title="Code example"
|
||||
URL = FunctionParameters["Bitrix24_URL"];
|
||||
DepartmentID = FunctionParameters["Bitrix24_DepID"];
|
||||
URL = "https://b24-ar17wx.bitrix24.by/rest/1/f2ppp8uucc891111/";
|
||||
DepartmentID = "70";
|
||||
|
||||
Result = OPI_Bitrix24.DeleteDepartment(URL, DepartmentID);
|
||||
|
||||
OPI_TestDataRetrieval.WriteLog(Result, "DeleteDepartment (wh)", "Bitrix24");
|
||||
|
||||
URL = FunctionParameters["Bitrix24_Domain"];
|
||||
Token = FunctionParameters["Bitrix24_Token"];
|
||||
DepartmentID = FunctionParameters["Bitrix24_HookDepID"];
|
||||
URL = "b24-ar17wx.bitrix24.by";
|
||||
Token = "fe3fa966006e9f06006b12e400000001000...";
|
||||
DepartmentID = "68";
|
||||
|
||||
Result = OPI_Bitrix24.DeleteDepartment(URL, DepartmentID, Token);
|
||||
```
|
||||
|
@ -30,15 +30,13 @@ Method at API documentation: [department.get](https://dev.1c-bitrix.ru/rest_help
|
||||
|
||||
|
||||
```bsl title="Code example"
|
||||
URL = FunctionParameters["Bitrix24_URL"];
|
||||
DepartmentID = FunctionParameters["Bitrix24_DepID"];
|
||||
URL = "https://b24-ar17wx.bitrix24.by/rest/1/f2ppp8uucc891111/";
|
||||
DepartmentID = "70";
|
||||
|
||||
Result = OPI_Bitrix24.GetDepartments(URL, DepartmentID);
|
||||
|
||||
OPI_TestDataRetrieval.WriteLog(Result, "GetDepartments (wh)", "Bitrix24");
|
||||
|
||||
URL = FunctionParameters["Bitrix24_Domain"];
|
||||
Token = FunctionParameters["Bitrix24_Token"];
|
||||
URL = "b24-ar17wx.bitrix24.by";
|
||||
Token = "fe3fa966006e9f06006b12e400000001000...";
|
||||
HeadID = 1;
|
||||
|
||||
Result = OPI_Bitrix24.GetDepartments(URL, , , , HeadID, Token);
|
||||
|
@ -30,19 +30,17 @@ Method at API documentation: [department.update](https://dev.1c-bitrix.ru/rest_h
|
||||
|
||||
|
||||
```bsl title="Code example"
|
||||
URL = FunctionParameters["Bitrix24_URL"];
|
||||
URL = "https://b24-ar17wx.bitrix24.by/rest/1/f2ppp8uucc891111/";
|
||||
|
||||
DepartmentID = FunctionParameters["Bitrix24_HookDepID"];
|
||||
DepartmentID = "68";
|
||||
ParentID = 7;
|
||||
|
||||
Result = OPI_Bitrix24.UpdateDepartment(URL, DepartmentID, , ParentID);
|
||||
|
||||
OPI_TestDataRetrieval.WriteLog(Result, "UpdateDepartment (wh)", "Bitrix24");
|
||||
URL = "b24-ar17wx.bitrix24.by";
|
||||
Token = "fe3fa966006e9f06006b12e400000001000...";
|
||||
|
||||
URL = FunctionParameters["Bitrix24_Domain"];
|
||||
Token = FunctionParameters["Bitrix24_Token"];
|
||||
|
||||
DepartmentID = FunctionParameters["Bitrix24_DepID"];
|
||||
DepartmentID = "70";
|
||||
Name = "New department";
|
||||
ParentID = 1;
|
||||
HeadID = 10;
|
||||
|
@ -29,16 +29,14 @@ Method at API documentation: [log.blogcomment.add](https://dev.1c-bitrix.ru/rest
|
||||
|
||||
```bsl title="Code example"
|
||||
Text = "Comment for post";
|
||||
PostID = FunctionParameters["Bitrix24_PostID"];
|
||||
URL = FunctionParameters["Bitrix24_URL"];
|
||||
PostID = "440";
|
||||
URL = "https://b24-ar17wx.bitrix24.by/rest/1/f2ppp8uucc891111/";
|
||||
|
||||
Result = OPI_Bitrix24.AddPostComment(URL, PostID, Text);
|
||||
|
||||
OPI_TestDataRetrieval.WriteLog(Result, "AddPostComment (wh)", "Bitrix24");
|
||||
|
||||
Text = "Another comment";
|
||||
URL = FunctionParameters["Bitrix24_Domain"];
|
||||
Token = FunctionParameters["Bitrix24_Token"];
|
||||
URL = "b24-ar17wx.bitrix24.by";
|
||||
Token = "fe3fa966006e9f06006b12e400000001000...";
|
||||
|
||||
Result = OPI_Bitrix24.AddPostComment(URL, PostID, Text, Token);
|
||||
```
|
||||
|
@ -29,15 +29,13 @@ Method at API documentation: [log.blogpost.share](https://dev.1c-bitrix.ru/rest_
|
||||
|
||||
```bsl title="Code example"
|
||||
Visibility = "UA";
|
||||
PostID = FunctionParameters["Bitrix24_PostID"];
|
||||
URL = FunctionParameters["Bitrix24_URL"];
|
||||
PostID = "440";
|
||||
URL = "https://b24-ar17wx.bitrix24.by/rest/1/f2ppp8uucc891111/";
|
||||
|
||||
Result = OPI_Bitrix24.AddPostRecipients(URL, PostID, Visibility);
|
||||
|
||||
OPI_TestDataRetrieval.WriteLog(Result, "AddPostRecipients (wh)", "Bitrix24");
|
||||
|
||||
URL = FunctionParameters["Bitrix24_Domain"];
|
||||
Token = FunctionParameters["Bitrix24_Token"];
|
||||
URL = "b24-ar17wx.bitrix24.by";
|
||||
Token = "fe3fa966006e9f06006b12e400000001000...";
|
||||
|
||||
Result = OPI_Bitrix24.AddPostRecipients(URL, PostID, Visibility, Token);
|
||||
```
|
||||
|
@ -33,21 +33,19 @@ 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 = FunctionParameters["Picture"]; // URL, Path or Binary Data
|
||||
Image2 = FunctionParameters["Picture2"]; // URL, Path or Binary Data
|
||||
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
|
||||
|
||||
Files = New Map;
|
||||
Files.Insert("1.png", Image1);
|
||||
Files.Insert("2.png", Image2);
|
||||
|
||||
URL = FunctionParameters["Bitrix24_URL"];
|
||||
URL = "https://b24-ar17wx.bitrix24.by/rest/1/f2ppp8uucc891111/";
|
||||
|
||||
Result = OPI_Bitrix24.CreatePost(URL, Text, , Files, Title, True);
|
||||
|
||||
OPI_TestDataRetrieval.WriteLog(Result, "CreatePost (wh)", "Bitrix24");
|
||||
|
||||
URL = FunctionParameters["Bitrix24_Domain"];
|
||||
Token = FunctionParameters["Bitrix24_Token"];
|
||||
URL = "b24-ar17wx.bitrix24.by";
|
||||
Token = "fe3fa966006e9f06006b12e400000001000...";
|
||||
|
||||
Result = OPI_Bitrix24.CreatePost(URL, Text, , Files, Title, , Token);
|
||||
```
|
||||
|
@ -27,16 +27,14 @@ Method at API documentation: [log.blogpost.delete](https://dev.1c-bitrix.ru/rest
|
||||
|
||||
|
||||
```bsl title="Code example"
|
||||
PostID = FunctionParameters["Bitrix24_HookPostID"];
|
||||
URL = FunctionParameters["Bitrix24_URL"];
|
||||
PostID = "438";
|
||||
URL = "https://b24-ar17wx.bitrix24.by/rest/1/f2ppp8uucc891111/";
|
||||
|
||||
Result = OPI_Bitrix24.DeletePost(URL, PostID);
|
||||
|
||||
OPI_TestDataRetrieval.WriteLog(Result, "DeletePost (wh)", "Bitrix24");
|
||||
|
||||
PostID = FunctionParameters["Bitrix24_PostID"];
|
||||
URL = FunctionParameters["Bitrix24_Domain"];
|
||||
Token = FunctionParameters["Bitrix24_Token"];
|
||||
PostID = "440";
|
||||
URL = "b24-ar17wx.bitrix24.by";
|
||||
Token = "fe3fa966006e9f06006b12e400000001000...";
|
||||
|
||||
Result = OPI_Bitrix24.DeletePost(URL, PostID, Token);
|
||||
```
|
||||
|
@ -27,15 +27,13 @@ Method at API documentation: [log.blogpost.getusers.important](https://dev.1c-bi
|
||||
|
||||
|
||||
```bsl title="Code example"
|
||||
PostID = FunctionParameters["Bitrix24_HookPostID"];
|
||||
URL = FunctionParameters["Bitrix24_URL"];
|
||||
PostID = "438";
|
||||
URL = "https://b24-ar17wx.bitrix24.by/rest/1/f2ppp8uucc891111/";
|
||||
|
||||
Result = OPI_Bitrix24.GetImportantPostViewers(URL, PostID);
|
||||
|
||||
OPI_TestDataRetrieval.WriteLog(Result, "GetImportantPostViewers (wh)", "Bitrix24");
|
||||
|
||||
URL = FunctionParameters["Bitrix24_Domain"];
|
||||
Token = FunctionParameters["Bitrix24_Token"];
|
||||
URL = "b24-ar17wx.bitrix24.by";
|
||||
Token = "fe3fa966006e9f06006b12e400000001000...";
|
||||
|
||||
Result = OPI_Bitrix24.GetImportantPostViewers(URL, PostID, Token);
|
||||
```
|
||||
|
@ -28,15 +28,13 @@ Method at API documentation: [log.blogpost.get](https://dev.1c-bitrix.ru/rest_he
|
||||
|
||||
|
||||
```bsl title="Code example"
|
||||
PostID = FunctionParameters["Bitrix24_PostID"];
|
||||
URL = FunctionParameters["Bitrix24_URL"];
|
||||
PostID = "440";
|
||||
URL = "https://b24-ar17wx.bitrix24.by/rest/1/f2ppp8uucc891111/";
|
||||
|
||||
Result = OPI_Bitrix24.GetPosts(URL, PostID);
|
||||
|
||||
OPI_TestDataRetrieval.WriteLog(Result, "GetPosts (wh)", "Bitrix24");
|
||||
|
||||
URL = FunctionParameters["Bitrix24_Domain"];
|
||||
Token = FunctionParameters["Bitrix24_Token"];
|
||||
URL = "b24-ar17wx.bitrix24.by";
|
||||
Token = "fe3fa966006e9f06006b12e400000001000...";
|
||||
|
||||
Result = OPI_Bitrix24.GetPosts(URL, PostID, , Token);
|
||||
```
|
||||
|
@ -33,21 +33,19 @@ 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 = FunctionParameters["Picture"]; // URL, Path or Binary Data
|
||||
PostID = FunctionParameters["Bitrix24_PostID"];
|
||||
Image1 = "https://openintegrations.dev/test_data/picture.jpg"; // URL, Path or Binary Data
|
||||
PostID = "440";
|
||||
|
||||
Files = New Map;
|
||||
Files.Insert("1.png", Image1);
|
||||
|
||||
URL = FunctionParameters["Bitrix24_URL"];
|
||||
URL = "https://b24-ar17wx.bitrix24.by/rest/1/f2ppp8uucc891111/";
|
||||
|
||||
Result = OPI_Bitrix24.UpdatePost(URL, PostID, Text, , Files, Title);
|
||||
|
||||
OPI_TestDataRetrieval.WriteLog(Result, "UpdatePost (wh)", "Bitrix24");
|
||||
|
||||
URL = FunctionParameters["Bitrix24_Domain"];
|
||||
Token = FunctionParameters["Bitrix24_Token"];
|
||||
PostID = FunctionParameters["Bitrix24_HookPostID"];
|
||||
URL = "b24-ar17wx.bitrix24.by";
|
||||
Token = "fe3fa966006e9f06006b12e400000001000...";
|
||||
PostID = "438";
|
||||
|
||||
Result = OPI_Bitrix24.UpdatePost(URL, PostID, Text, , Files, Title, Token);
|
||||
```
|
||||
|
@ -27,16 +27,14 @@ Method at API documentation: [disk.file.delete](https://dev.1c-bitrix.ru/rest_he
|
||||
|
||||
|
||||
```bsl title="Code example"
|
||||
URL = FunctionParameters["Bitrix24_URL"];
|
||||
FileID = FunctionParameters["Bitrix24_HookFileID"];
|
||||
URL = "https://b24-ar17wx.bitrix24.by/rest/1/f2ppp8uucc891111/";
|
||||
FileID = "5008";
|
||||
|
||||
Result = OPI_Bitrix24.DeleteFile(URL, FileID);
|
||||
|
||||
OPI_TestDataRetrieval.WriteLog(Result, "DeleteFile (wh)", "Bitrix24");
|
||||
|
||||
URL = FunctionParameters["Bitrix24_Domain"];
|
||||
Token = FunctionParameters["Bitrix24_Token"];
|
||||
FileID = FunctionParameters["Bitrix24_FileID"];
|
||||
URL = "b24-ar17wx.bitrix24.by";
|
||||
Token = "fe3fa966006e9f06006b12e400000001000...";
|
||||
FileID = "5010";
|
||||
|
||||
Result = OPI_Bitrix24.DeleteFile(URL, FileID, Token);
|
||||
```
|
||||
|
@ -27,15 +27,13 @@ Method at API documentation: [disk.file.getExternalLink](https://dev.1c-bitrix.r
|
||||
|
||||
|
||||
```bsl title="Code example"
|
||||
URL = FunctionParameters["Bitrix24_URL"];
|
||||
FileID = FunctionParameters["Bitrix24_FileID"];
|
||||
URL = "https://b24-ar17wx.bitrix24.by/rest/1/f2ppp8uucc891111/";
|
||||
FileID = "5010";
|
||||
|
||||
Result = OPI_Bitrix24.GetFileExternalLink(URL, FileID);
|
||||
|
||||
OPI_TestDataRetrieval.WriteLog(Result, "GetFileExternalLink (wh)", "Bitrix24");
|
||||
|
||||
URL = FunctionParameters["Bitrix24_Domain"];
|
||||
Token = FunctionParameters["Bitrix24_Token"];
|
||||
URL = "b24-ar17wx.bitrix24.by";
|
||||
Token = "fe3fa966006e9f06006b12e400000001000...";
|
||||
|
||||
Result = OPI_Bitrix24.GetFileExternalLink(URL, FileID, Token);
|
||||
```
|
||||
|
@ -27,15 +27,13 @@ Method at API documentation: [disk.file.get](https://dev.1c-bitrix.ru/rest_help/
|
||||
|
||||
|
||||
```bsl title="Code example"
|
||||
URL = FunctionParameters["Bitrix24_URL"];
|
||||
FileID = FunctionParameters["Bitrix24_FileID"];
|
||||
URL = "https://b24-ar17wx.bitrix24.by/rest/1/f2ppp8uucc891111/";
|
||||
FileID = "5010";
|
||||
|
||||
Result = OPI_Bitrix24.GetFileInformation(URL, FileID);
|
||||
|
||||
OPI_TestDataRetrieval.WriteLog(Result, "GetFileInformation (wh)", "Bitrix24");
|
||||
|
||||
URL = FunctionParameters["Bitrix24_Domain"];
|
||||
Token = FunctionParameters["Bitrix24_Token"];
|
||||
URL = "b24-ar17wx.bitrix24.by";
|
||||
Token = "fe3fa966006e9f06006b12e400000001000...";
|
||||
|
||||
Result = OPI_Bitrix24.GetFileInformation(URL, FileID, Token);
|
||||
```
|
||||
|
@ -28,24 +28,20 @@ Method at API documentation: [disk.file.copyto](https://dev.1c-bitrix.ru/rest_he
|
||||
|
||||
|
||||
```bsl title="Code example"
|
||||
FolderID = FunctionParameters["Bitrix24_HookFolderID"];
|
||||
FileID = FunctionParameters["Bitrix24_FileID"];
|
||||
FolderID = "5014";
|
||||
FileID = "5010";
|
||||
|
||||
URL = FunctionParameters["Bitrix24_URL"];
|
||||
URL = "https://b24-ar17wx.bitrix24.by/rest/1/f2ppp8uucc891111/";
|
||||
|
||||
Result = OPI_Bitrix24.MakeCopyFile(URL, FileID, FolderID);
|
||||
|
||||
OPI_TestDataRetrieval.WriteLog(Result, "MakeCopyFile (wh)", "Bitrix24");
|
||||
FolderID = "5016";
|
||||
|
||||
FolderID = FunctionParameters["Bitrix24_FolderID"];
|
||||
|
||||
URL = FunctionParameters["Bitrix24_Domain"];
|
||||
Token = FunctionParameters["Bitrix24_Token"];
|
||||
URL = "b24-ar17wx.bitrix24.by";
|
||||
Token = "fe3fa966006e9f06006b12e400000001000...";
|
||||
|
||||
Result = OPI_Bitrix24.MakeCopyFile(URL, FileID, FolderID, Token);
|
||||
|
||||
OPI_TestDataRetrieval.WriteLog(Result, "MakeCopyFile", "Bitrix24");
|
||||
|
||||
Check_BitrixObject(Result);
|
||||
```
|
||||
|
||||
|
@ -27,15 +27,13 @@ Method at API documentation: [disk.file.markdeleted](https://dev.1c-bitrix.ru/re
|
||||
|
||||
|
||||
```bsl title="Code example"
|
||||
URL = FunctionParameters["Bitrix24_URL"];
|
||||
FileID = FunctionParameters["Bitrix24_FileID"];
|
||||
URL = "https://b24-ar17wx.bitrix24.by/rest/1/f2ppp8uucc891111/";
|
||||
FileID = "5010";
|
||||
|
||||
Result = OPI_Bitrix24.MarkFileAsDeleted(URL, FileID);
|
||||
|
||||
OPI_TestDataRetrieval.WriteLog(Result, "MarkFileAsDeleted (wh)", "Bitrix24");
|
||||
|
||||
URL = FunctionParameters["Bitrix24_Domain"];
|
||||
Token = FunctionParameters["Bitrix24_Token"];
|
||||
URL = "b24-ar17wx.bitrix24.by";
|
||||
Token = "fe3fa966006e9f06006b12e400000001000...";
|
||||
|
||||
Result = OPI_Bitrix24.MarkFileAsDeleted(URL, FileID, Token);
|
||||
```
|
||||
|
@ -28,24 +28,20 @@ Method at API documentation: [disk.file.moveto](https://dev.1c-bitrix.ru/rest_he
|
||||
|
||||
|
||||
```bsl title="Code example"
|
||||
FolderID = FunctionParameters["Bitrix24_HookSubFolderID"];
|
||||
FileID = FunctionParameters["Bitrix24_FileID"];
|
||||
FolderID = "5018";
|
||||
FileID = "5010";
|
||||
|
||||
URL = FunctionParameters["Bitrix24_URL"];
|
||||
URL = "https://b24-ar17wx.bitrix24.by/rest/1/f2ppp8uucc891111/";
|
||||
|
||||
Result = OPI_Bitrix24.MoveFileToFolder(URL, FileID, FolderID);
|
||||
|
||||
OPI_TestDataRetrieval.WriteLog(Result, "MoveFileToFolder (wh)", "Bitrix24");
|
||||
FolderID = "5020";
|
||||
|
||||
FolderID = FunctionParameters["Bitrix24_SubFolderID"];
|
||||
|
||||
URL = FunctionParameters["Bitrix24_Domain"];
|
||||
Token = FunctionParameters["Bitrix24_Token"];
|
||||
URL = "b24-ar17wx.bitrix24.by";
|
||||
Token = "fe3fa966006e9f06006b12e400000001000...";
|
||||
|
||||
Result = OPI_Bitrix24.MoveFileToFolder(URL, FileID, FolderID, Token);
|
||||
|
||||
OPI_TestDataRetrieval.WriteLog(Result, "MoveFileToFolder", "Bitrix24");
|
||||
|
||||
Check_BitrixObject(Result);
|
||||
```
|
||||
|
||||
|
@ -31,16 +31,14 @@ Method at API documentation: [disk.file.rename](https://dev.1c-bitrix.ru/rest_he
|
||||
Name = "New file name.jpg";
|
||||
Filename2 = "New file name 2.jpg";
|
||||
|
||||
FileID2 = FunctionParameters["Bitrix24_HookFileID"];
|
||||
URL = FunctionParameters["Bitrix24_URL"];
|
||||
FileID2 = "5008";
|
||||
URL = "https://b24-ar17wx.bitrix24.by/rest/1/f2ppp8uucc891111/";
|
||||
|
||||
Result = OPI_Bitrix24.RenameFile(URL, FileID2, Filename2);
|
||||
|
||||
OPI_TestDataRetrieval.WriteLog(Result, "RenameFile (wh)", "Bitrix24");
|
||||
|
||||
FileID = FunctionParameters["Bitrix24_FileID"];
|
||||
URL = FunctionParameters["Bitrix24_Domain"];
|
||||
Token = FunctionParameters["Bitrix24_Token"];
|
||||
FileID = "5010";
|
||||
URL = "b24-ar17wx.bitrix24.by";
|
||||
Token = "fe3fa966006e9f06006b12e400000001000...";
|
||||
|
||||
Result = OPI_Bitrix24.RenameFile(URL, FileID, Name, Token);
|
||||
```
|
||||
|
@ -27,15 +27,13 @@ Method at API documentation: [disk.file.restore](https://dev.1c-bitrix.ru/rest_h
|
||||
|
||||
|
||||
```bsl title="Code example"
|
||||
URL = FunctionParameters["Bitrix24_URL"];
|
||||
FileID = FunctionParameters["Bitrix24_FileID"];
|
||||
URL = "https://b24-ar17wx.bitrix24.by/rest/1/f2ppp8uucc891111/";
|
||||
FileID = "5010";
|
||||
|
||||
Result = OPI_Bitrix24.RestoreFile(URL, FileID);
|
||||
|
||||
OPI_TestDataRetrieval.WriteLog(Result, "RestoreFile (wh)", "Bitrix24");
|
||||
|
||||
URL = FunctionParameters["Bitrix24_Domain"];
|
||||
Token = FunctionParameters["Bitrix24_Token"];
|
||||
URL = "b24-ar17wx.bitrix24.by";
|
||||
Token = "fe3fa966006e9f06006b12e400000001000...";
|
||||
|
||||
Result = OPI_Bitrix24.RestoreFile(URL, FileID, Token);
|
||||
```
|
||||
|
@ -32,19 +32,17 @@ Method at API documentation: [disk.folder.uploadfile](https://dev.1c-bitrix.ru/r
|
||||
Filename2 = "Picture2.jpg";
|
||||
Name = "Picture1.jpg";
|
||||
|
||||
Image2 = FunctionParameters["Picture"]; // Local path, URL or Binary Data
|
||||
Image = FunctionParameters["Picture2"]; // Local path, URL or Binary Data
|
||||
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
|
||||
|
||||
DestinationID = FunctionParameters["Bitrix24_FolderID"];
|
||||
DestinationID = "5016";
|
||||
|
||||
URL = FunctionParameters["Bitrix24_URL"];
|
||||
URL = "https://b24-ar17wx.bitrix24.by/rest/1/f2ppp8uucc891111/";
|
||||
|
||||
Result = OPI_Bitrix24.UploadFileToFolder(URL, Filename2, Image2, DestinationID);
|
||||
|
||||
OPI_TestDataRetrieval.WriteLog(Result, "UploadFileToFolder (wh)", "Bitrix24");
|
||||
|
||||
URL = FunctionParameters["Bitrix24_Domain"];
|
||||
Token = FunctionParameters["Bitrix24_Token"];
|
||||
URL = "b24-ar17wx.bitrix24.by";
|
||||
Token = "fe3fa966006e9f06006b12e400000001000...";
|
||||
|
||||
Result = OPI_Bitrix24.UploadFileToFolder(URL, Name, Image, DestinationID, Token);
|
||||
```
|
||||
|
@ -33,19 +33,17 @@ Method at API documentation: [disk.storage.uploadfile](https://dev.1c-bitrix.ru/
|
||||
Filename2 = "Picture2.jpg";
|
||||
Name = "Picture1.jpg";
|
||||
|
||||
Image2 = FunctionParameters["Picture"]; // Local path, URL or Binary Data
|
||||
Image = FunctionParameters["Picture2"]; // Local path, URL or Binary Data
|
||||
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
|
||||
|
||||
DestinationID = 3;
|
||||
|
||||
URL = FunctionParameters["Bitrix24_URL"];
|
||||
URL = "https://b24-ar17wx.bitrix24.by/rest/1/f2ppp8uucc891111/";
|
||||
|
||||
Result = OPI_Bitrix24.UploadFileToStorage(URL, Filename2, Image2, DestinationID);
|
||||
|
||||
OPI_TestDataRetrieval.WriteLog(Result, "UploadFileToStorage (wh)", "Bitrix24");
|
||||
|
||||
URL = FunctionParameters["Bitrix24_Domain"];
|
||||
Token = FunctionParameters["Bitrix24_Token"];
|
||||
URL = "b24-ar17wx.bitrix24.by";
|
||||
Token = "fe3fa966006e9f06006b12e400000001000...";
|
||||
|
||||
Result = OPI_Bitrix24.UploadFileToStorage(URL, Name, Image, DestinationID, , Token);
|
||||
```
|
||||
|
@ -34,19 +34,17 @@ Method at API documentation: [task.stages.add](https://dev.1c-bitrix.ru/rest_hel
|
||||
Name = "New stage";
|
||||
Color = "0026FF";
|
||||
|
||||
URL = FunctionParameters["Bitrix24_URL"];
|
||||
URL = "https://b24-ar17wx.bitrix24.by/rest/1/f2ppp8uucc891111/";
|
||||
|
||||
Result = OPI_Bitrix24.AddKanbanStage(URL, Name, Color, 6);
|
||||
|
||||
OPI_TestDataRetrieval.WriteLog(Result, "AddKanbanStage (wh)", "Bitrix24");
|
||||
|
||||
PrevStageID = Result["result"];
|
||||
|
||||
Name = "New stage 2";
|
||||
Color = "0026FF";
|
||||
|
||||
URL = FunctionParameters["Bitrix24_Domain"];
|
||||
Token = FunctionParameters["Bitrix24_Token"];
|
||||
URL = "b24-ar17wx.bitrix24.by";
|
||||
Token = "fe3fa966006e9f06006b12e400000001000...";
|
||||
|
||||
Result = OPI_Bitrix24.AddKanbanStage(URL, Name, Color, PrevStageID, , True, Token);
|
||||
```
|
||||
|
@ -28,18 +28,16 @@ Method at API documentation: [task.stages.delete](https://dev.1c-bitrix.ru/rest_
|
||||
|
||||
|
||||
```bsl title="Code example"
|
||||
StageID = FunctionParameters["Bitrix24_HookStageID"];
|
||||
StageID = "318";
|
||||
|
||||
URL = FunctionParameters["Bitrix24_URL"];
|
||||
URL = "https://b24-ar17wx.bitrix24.by/rest/1/f2ppp8uucc891111/";
|
||||
|
||||
Result = OPI_Bitrix24.DeleteKanbanStage(URL, StageID, True);
|
||||
|
||||
OPI_TestDataRetrieval.WriteLog(Result, "DeleteKanbanStage (wh)", "Bitrix24");
|
||||
StageID = "320";
|
||||
|
||||
StageID = FunctionParameters["Bitrix24_StageID"];
|
||||
|
||||
URL = FunctionParameters["Bitrix24_Domain"];
|
||||
Token = FunctionParameters["Bitrix24_Token"];
|
||||
URL = "b24-ar17wx.bitrix24.by";
|
||||
Token = "fe3fa966006e9f06006b12e400000001000...";
|
||||
|
||||
Result = OPI_Bitrix24.DeleteKanbanStage(URL, StageID, , Token);
|
||||
```
|
||||
|
@ -28,14 +28,12 @@ Method at API documentation: [task.stages.get](https://dev.1c-bitrix.ru/rest_hel
|
||||
|
||||
|
||||
```bsl title="Code example"
|
||||
URL = FunctionParameters["Bitrix24_URL"];
|
||||
URL = "https://b24-ar17wx.bitrix24.by/rest/1/f2ppp8uucc891111/";
|
||||
|
||||
Result = OPI_Bitrix24.GetKanbanStages(URL, , True);
|
||||
|
||||
OPI_TestDataRetrieval.WriteLog(Result, "GetKanbanStages (wh)", "Bitrix24");
|
||||
|
||||
URL = FunctionParameters["Bitrix24_Domain"];
|
||||
Token = FunctionParameters["Bitrix24_Token"];
|
||||
URL = "b24-ar17wx.bitrix24.by";
|
||||
Token = "fe3fa966006e9f06006b12e400000001000...";
|
||||
|
||||
Result = OPI_Bitrix24.GetKanbanStages(URL, , , Token);
|
||||
```
|
||||
|
@ -30,19 +30,17 @@ Method at API documentation: [task.stages.movetask](https://dev.1c-bitrix.ru/res
|
||||
|
||||
|
||||
```bsl title="Code example"
|
||||
TaskID = FunctionParameters["Bitrix24_KanbanTaskID"];
|
||||
StageID = FunctionParameters["Bitrix24_HookStageID"];
|
||||
TaskID = "1086";
|
||||
StageID = "318";
|
||||
|
||||
URL = FunctionParameters["Bitrix24_URL"];
|
||||
URL = "https://b24-ar17wx.bitrix24.by/rest/1/f2ppp8uucc891111/";
|
||||
|
||||
Result = OPI_Bitrix24.MoveTaskToKanbanStage(URL, TaskID, StageID);
|
||||
|
||||
OPI_TestDataRetrieval.WriteLog(Result, "MoveTaskToKanbanStage (wh)", "Bitrix24");
|
||||
StageID = "320";
|
||||
|
||||
StageID = FunctionParameters["Bitrix24_StageID"];
|
||||
|
||||
URL = FunctionParameters["Bitrix24_Domain"];
|
||||
Token = FunctionParameters["Bitrix24_Token"];
|
||||
URL = "b24-ar17wx.bitrix24.by";
|
||||
Token = "fe3fa966006e9f06006b12e400000001000...";
|
||||
|
||||
Result = OPI_Bitrix24.MoveTaskToKanbanStage(URL, TaskID, StageID, , , Token);
|
||||
```
|
||||
|
@ -33,20 +33,18 @@ Method at API documentation: [task.stages.update](https://dev.1c-bitrix.ru/rest_
|
||||
```bsl title="Code example"
|
||||
Name = "New stage name";
|
||||
Color = "000000";
|
||||
StageID = FunctionParameters["Bitrix24_HookStageID"];
|
||||
StageID = "318";
|
||||
|
||||
URL = FunctionParameters["Bitrix24_URL"];
|
||||
URL = "https://b24-ar17wx.bitrix24.by/rest/1/f2ppp8uucc891111/";
|
||||
|
||||
Result = OPI_Bitrix24.UpdateKanbansStage(URL, Name, StageID, Color);
|
||||
|
||||
OPI_TestDataRetrieval.WriteLog(Result, "UpdateKanbansStage (wh)", "Bitrix24");
|
||||
|
||||
Name = "New stage name 2";
|
||||
Color = "000000";
|
||||
StageID = FunctionParameters["Bitrix24_StageID"];
|
||||
StageID = "320";
|
||||
|
||||
URL = FunctionParameters["Bitrix24_Domain"];
|
||||
Token = FunctionParameters["Bitrix24_Token"];
|
||||
URL = "b24-ar17wx.bitrix24.by";
|
||||
Token = "fe3fa966006e9f06006b12e400000001000...";
|
||||
|
||||
Result = OPI_Bitrix24.UpdateKanbansStage(URL, Name, StageID, Color, 6, True, Token);
|
||||
```
|
||||
|
@ -27,16 +27,14 @@ Method at API documentation: [im.message.delete](https://dev.1c-bitrix.ru/learni
|
||||
|
||||
|
||||
```bsl title="Code example"
|
||||
URL = FunctionParameters["Bitrix24_URL"];
|
||||
MessageID = FunctionParameters["Bitrix24_ChatMessageID"];
|
||||
URL = "https://b24-ar17wx.bitrix24.by/rest/1/f2ppp8uucc891111/";
|
||||
MessageID = "8682";
|
||||
|
||||
Result = OPI_Bitrix24.DeleteMessage(URL, MessageID);
|
||||
|
||||
OPI_TestDataRetrieval.WriteLog(Result, "DeleteMessage (wh)", "Bitrix24");
|
||||
|
||||
URL = FunctionParameters["Bitrix24_Domain"];
|
||||
Token = FunctionParameters["Bitrix24_Token"];
|
||||
MessageID = FunctionParameters["Bitrix24_UserMessageID"];
|
||||
URL = "b24-ar17wx.bitrix24.by";
|
||||
Token = "fe3fa966006e9f06006b12e400000001000...";
|
||||
MessageID = "8684";
|
||||
|
||||
Result = OPI_Bitrix24.DeleteMessage(URL, MessageID, Token);
|
||||
```
|
||||
|
@ -29,18 +29,16 @@ Method at API documentation: [im.message.update](https://dev.1c-bitrix.ru/learni
|
||||
|
||||
|
||||
```bsl title="Code example"
|
||||
URL = FunctionParameters["Bitrix24_URL"];
|
||||
MessageID = FunctionParameters["Bitrix24_ChatMessageID"];
|
||||
URL = "https://b24-ar17wx.bitrix24.by/rest/1/f2ppp8uucc891111/";
|
||||
MessageID = "8682";
|
||||
|
||||
Text = "New message text";
|
||||
|
||||
Result = OPI_Bitrix24.EditMessage(URL, MessageID, Text);
|
||||
|
||||
OPI_TestDataRetrieval.WriteLog(Result, "EditMessage (wh)", "Bitrix24");
|
||||
|
||||
URL = FunctionParameters["Bitrix24_Domain"];
|
||||
Token = FunctionParameters["Bitrix24_Token"];
|
||||
MessageID = FunctionParameters["Bitrix24_UserMessageID"];
|
||||
URL = "b24-ar17wx.bitrix24.by";
|
||||
Token = "fe3fa966006e9f06006b12e400000001000...";
|
||||
MessageID = "8684";
|
||||
|
||||
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";
|
||||
|
@ -28,18 +28,16 @@ Method at API documentation: [im.dialog.read](https://dev.1c-bitrix.ru/learning/
|
||||
|
||||
|
||||
```bsl title="Code example"
|
||||
URL = FunctionParameters["Bitrix24_URL"];
|
||||
ChatID = "chat" + FunctionParameters["Bitrix24_HookChatID"];
|
||||
MessageID = FunctionParameters["Bitrix24_ChatMessageID"];
|
||||
URL = "https://b24-ar17wx.bitrix24.by/rest/1/f2ppp8uucc891111/";
|
||||
ChatID = "chat" + "450";
|
||||
MessageID = "8682";
|
||||
|
||||
Result = OPI_Bitrix24.MarkMessageAsReaded(URL, ChatID, MessageID);
|
||||
|
||||
OPI_TestDataRetrieval.WriteLog(Result, "MarkMessageAsReaded (wh)", "Bitrix24");
|
||||
|
||||
URL = FunctionParameters["Bitrix24_Domain"];
|
||||
Token = FunctionParameters["Bitrix24_Token"];
|
||||
URL = "b24-ar17wx.bitrix24.by";
|
||||
Token = "fe3fa966006e9f06006b12e400000001000...";
|
||||
UserID = 10;
|
||||
MessageID = FunctionParameters["Bitrix24_UserMessageID"];
|
||||
MessageID = "8684";
|
||||
|
||||
Result = OPI_Bitrix24.MarkMessageAsReaded(URL, UserID, MessageID, Token);
|
||||
```
|
||||
|
@ -28,18 +28,16 @@ Method at API documentation: [im.dialog.unread](https://dev.1c-bitrix.ru/learnin
|
||||
|
||||
|
||||
```bsl title="Code example"
|
||||
URL = FunctionParameters["Bitrix24_URL"];
|
||||
ChatID = "chat" + FunctionParameters["Bitrix24_HookChatID"];
|
||||
MessageID = FunctionParameters["Bitrix24_ChatMessageID"];
|
||||
URL = "https://b24-ar17wx.bitrix24.by/rest/1/f2ppp8uucc891111/";
|
||||
ChatID = "chat" + "450";
|
||||
MessageID = "8682";
|
||||
|
||||
Result = OPI_Bitrix24.MarkMessageAsUnreaded(URL, ChatID, MessageID);
|
||||
|
||||
OPI_TestDataRetrieval.WriteLog(Result, "MarkMessageAsUnreaded)", "Bitrix24");
|
||||
|
||||
URL = FunctionParameters["Bitrix24_Domain"];
|
||||
Token = FunctionParameters["Bitrix24_Token"];
|
||||
URL = "b24-ar17wx.bitrix24.by";
|
||||
Token = "fe3fa966006e9f06006b12e400000001000...";
|
||||
UserID = 10;
|
||||
MessageID = FunctionParameters["Bitrix24_UserMessageID"];
|
||||
MessageID = "8684";
|
||||
|
||||
Result = OPI_Bitrix24.MarkMessageAsUnreaded(URL, UserID, MessageID, Token);
|
||||
```
|
||||
|
@ -29,9 +29,9 @@ Method at API documentation: [im.disk.file.commit](https://dev.1c-bitrix.ru/lear
|
||||
|
||||
|
||||
```bsl title="Code example"
|
||||
URL = FunctionParameters["Bitrix24_URL"];
|
||||
ChatID = FunctionParameters["Bitrix24_HookChatID"];
|
||||
File = FunctionParameters["Document"]; // Binary Data, URL or path to file
|
||||
URL = "https://b24-ar17wx.bitrix24.by/rest/1/f2ppp8uucc891111/";
|
||||
ChatID = "450";
|
||||
File = "https://openintegrations.dev/test_data/document.docx"; // Binary Data, URL or path to file
|
||||
Description = "Very important file";
|
||||
|
||||
Directory = OPI_Bitrix24.GetChatFilesFolder(URL, ChatID);
|
||||
@ -42,11 +42,9 @@ Method at API documentation: [im.disk.file.commit](https://dev.1c-bitrix.ru/lear
|
||||
|
||||
Result = OPI_Bitrix24.SendFile(URL, ChatID, FileID, Description);
|
||||
|
||||
OPI_TestDataRetrieval.WriteLog(Result, "SendFile)", "Bitrix24");
|
||||
|
||||
URL = FunctionParameters["Bitrix24_Domain"];
|
||||
Token = FunctionParameters["Bitrix24_Token"];
|
||||
ChatID = FunctionParameters["Bitrix24_ChatID"];
|
||||
URL = "b24-ar17wx.bitrix24.by";
|
||||
Token = "fe3fa966006e9f06006b12e400000001000...";
|
||||
ChatID = "452";
|
||||
|
||||
Directory = OPI_Bitrix24.GetChatFilesFolder(URL, ChatID, Token);
|
||||
FolderID = Directory["result"]["ID"];
|
||||
|
@ -29,8 +29,8 @@ Method at API documentation: [im.message.add](https://dev.1c-bitrix.ru/learning/
|
||||
|
||||
|
||||
```bsl title="Code example"
|
||||
URL = FunctionParameters["Bitrix24_URL"];
|
||||
ChatID = "chat" + FunctionParameters["Bitrix24_HookChatID"];
|
||||
URL = "https://b24-ar17wx.bitrix24.by/rest/1/f2ppp8uucc891111/";
|
||||
ChatID = "chat" + "450";
|
||||
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";
|
||||
@ -41,10 +41,8 @@ Method at API documentation: [im.message.add](https://dev.1c-bitrix.ru/learning/
|
||||
|
||||
Result = OPI_Bitrix24.SendMessage(URL, ChatID, Text, Attachments);
|
||||
|
||||
OPI_TestDataRetrieval.WriteLog(Result, "SendMessage)", "Bitrix24");
|
||||
|
||||
URL = FunctionParameters["Bitrix24_Domain"];
|
||||
Token = FunctionParameters["Bitrix24_Token"];
|
||||
URL = "b24-ar17wx.bitrix24.by";
|
||||
Token = "fe3fa966006e9f06006b12e400000001000...";
|
||||
UserID = 10;
|
||||
|
||||
Result = OPI_Bitrix24.SendMessage(URL, UserID, Text, , Token);
|
||||
|
@ -27,16 +27,14 @@ Method at API documentation: [im.message.like](https://dev.1c-bitrix.ru/learning
|
||||
|
||||
|
||||
```bsl title="Code example"
|
||||
URL = FunctionParameters["Bitrix24_URL"];
|
||||
MessageID = FunctionParameters["Bitrix24_ChatMessageID"];
|
||||
URL = "https://b24-ar17wx.bitrix24.by/rest/1/f2ppp8uucc891111/";
|
||||
MessageID = "8682";
|
||||
|
||||
Result = OPI_Bitrix24.SetMessageReaction(URL, MessageID);
|
||||
|
||||
OPI_TestDataRetrieval.WriteLog(Result, "SetMessageReaction (wh)", "Bitrix24");
|
||||
|
||||
URL = FunctionParameters["Bitrix24_Domain"];
|
||||
Token = FunctionParameters["Bitrix24_Token"];
|
||||
MessageID = FunctionParameters["Bitrix24_UserMessageID"];
|
||||
URL = "b24-ar17wx.bitrix24.by";
|
||||
Token = "fe3fa966006e9f06006b12e400000001000...";
|
||||
MessageID = "8684";
|
||||
|
||||
Result = OPI_Bitrix24.SetMessageReaction(URL, MessageID, Token);
|
||||
```
|
||||
|
@ -32,7 +32,7 @@ Method at API documentation: [im.notify.personal.add](https://dev.1c-bitrix.ru/l
|
||||
```bsl title="Code example"
|
||||
UserID = 1;
|
||||
|
||||
URL = FunctionParameters["Bitrix24_URL"];
|
||||
URL = "https://b24-ar17wx.bitrix24.by/rest/1/f2ppp8uucc891111/";
|
||||
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";
|
||||
@ -43,10 +43,8 @@ Method at API documentation: [im.notify.personal.add](https://dev.1c-bitrix.ru/l
|
||||
|
||||
Result = OPI_Bitrix24.CreatePersonalNotification(URL, UserID, Text, ,Attachments);
|
||||
|
||||
OPI_TestDataRetrieval.WriteLog(Result, "CreatePersonalNotification)", "Bitrix24");
|
||||
|
||||
URL = FunctionParameters["Bitrix24_Domain"];
|
||||
Token = FunctionParameters["Bitrix24_Token"];
|
||||
URL = "b24-ar17wx.bitrix24.by";
|
||||
Token = "fe3fa966006e9f06006b12e400000001000...";
|
||||
Tag = "New";
|
||||
UserID = 10;
|
||||
|
||||
|
@ -32,7 +32,7 @@ Method at API documentation: [im.notify.system.add](https://dev.1c-bitrix.ru/lea
|
||||
```bsl title="Code example"
|
||||
UserID = 1;
|
||||
|
||||
URL = FunctionParameters["Bitrix24_URL"];
|
||||
URL = "https://b24-ar17wx.bitrix24.by/rest/1/f2ppp8uucc891111/";
|
||||
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";
|
||||
@ -43,10 +43,8 @@ Method at API documentation: [im.notify.system.add](https://dev.1c-bitrix.ru/lea
|
||||
|
||||
Result = OPI_Bitrix24.CreateSystemNotification(URL, UserID, Text, ,Attachments);
|
||||
|
||||
OPI_TestDataRetrieval.WriteLog(Result, "CreateSystemNotification (wh)", "Bitrix24");
|
||||
|
||||
URL = FunctionParameters["Bitrix24_Domain"];
|
||||
Token = FunctionParameters["Bitrix24_Token"];
|
||||
URL = "b24-ar17wx.bitrix24.by";
|
||||
Token = "fe3fa966006e9f06006b12e400000001000...";
|
||||
Tag = "New";
|
||||
UserID = 10;
|
||||
|
||||
|
@ -27,16 +27,14 @@ Method at API documentation: [im.notify.delete](https://dev.1c-bitrix.ru/learnin
|
||||
|
||||
|
||||
```bsl title="Code example"
|
||||
URL = FunctionParameters["Bitrix24_URL"];
|
||||
NotificationID = FunctionParameters["Bitrix24_PersoalHookNotifyID"];
|
||||
URL = "https://b24-ar17wx.bitrix24.by/rest/1/f2ppp8uucc891111/";
|
||||
NotificationID = "8690";
|
||||
|
||||
Result = OPI_Bitrix24.DeleteNotification(URL, NotificationID);
|
||||
|
||||
OPI_TestDataRetrieval.WriteLog(Result, "DeleteNotification", "Bitrix24");
|
||||
|
||||
URL = FunctionParameters["Bitrix24_Domain"];
|
||||
Token = FunctionParameters["Bitrix24_Token"];
|
||||
NotificationID = FunctionParameters["Bitrix24_PersoalNotifyID"];
|
||||
URL = "b24-ar17wx.bitrix24.by";
|
||||
Token = "fe3fa966006e9f06006b12e400000001000...";
|
||||
NotificationID = "8692";
|
||||
|
||||
Result = OPI_Bitrix24.DeleteNotification(URL, NotificationID, Token);
|
||||
```
|
||||
|
@ -23,8 +23,8 @@ sidebar_position: 1
|
||||
|
||||
|
||||
```bsl title="Code example"
|
||||
Domain = FunctionParameters["Bitrix24_Domain"];
|
||||
ClientID = FunctionParameters["Bitrix24_ClientID"];
|
||||
Domain = "b24-ar17wx.bitrix24.by";
|
||||
ClientID = "local.6667fc928a50a9.70414732";
|
||||
|
||||
Result = OPI_Bitrix24.GetAppAuthLink(Domain, ClientID);
|
||||
```
|
||||
|
@ -24,9 +24,9 @@ sidebar_position: 2
|
||||
|
||||
|
||||
```bsl title="Code example"
|
||||
ClientID = FunctionParameters["Bitrix24_ClientID"];
|
||||
ClientSecret = FunctionParameters["Bitrix24_ClientSecret"];
|
||||
Code = FunctionParameters["Bitrix24_Code"];
|
||||
ClientID = "local.6667fc928a50a9.70414732";
|
||||
ClientSecret = "ZeKyeYIgy2NsHZqsIHY6GfG1V...";
|
||||
Code = "2b096866006e9f06006b12e400000001000007fc1bc681f7ed7f13f2d449980628008c";
|
||||
|
||||
Result = OPI_Bitrix24.GetToken(ClientID, ClientSecret, Code);
|
||||
```
|
||||
|
@ -24,9 +24,9 @@ sidebar_position: 3
|
||||
|
||||
|
||||
```bsl title="Code example"
|
||||
ClientID = FunctionParameters["Bitrix24_ClientID"];
|
||||
ClientSecret = FunctionParameters["Bitrix24_ClientSecret"];
|
||||
Refresh = FunctionParameters["Bitrix24_Refresh"];
|
||||
ClientID = "local.6667fc928a50a9.70414732";
|
||||
ClientSecret = "ZeKyeYIgy2NsHZqsIHY6GfG1V...";
|
||||
Refresh = "eebed066006e9f06006b12e400000001000...";
|
||||
|
||||
Result = OPI_Bitrix24.RefreshToken(ClientID, ClientSecret, Refresh);
|
||||
```
|
||||
|
@ -26,14 +26,12 @@ Method at API documentation: [server_time](https://dev.1c-bitrix.ru/rest_help/ge
|
||||
|
||||
|
||||
```bsl title="Code example"
|
||||
URL = FunctionParameters["Bitrix24_URL"];
|
||||
URL = "https://b24-ar17wx.bitrix24.by/rest/1/f2ppp8uucc891111/";
|
||||
|
||||
Result = OPI_Bitrix24.ServerTime(URL);
|
||||
|
||||
OPI_TestDataRetrieval.WriteLog(Result, "ServerTime (wh)", "Bitrix24");
|
||||
|
||||
URL = FunctionParameters["Bitrix24_Domain"];
|
||||
Token = FunctionParameters["Bitrix24_Token"];
|
||||
URL = "b24-ar17wx.bitrix24.by";
|
||||
Token = "fe3fa966006e9f06006b12e400000001000...";
|
||||
|
||||
Result = OPI_Bitrix24.ServerTime(URL, Token);
|
||||
```
|
||||
|
@ -32,14 +32,12 @@ Method at API documentation: [disk.storage.addfolder](https://dev.1c-bitrix.ru/r
|
||||
Name = "New catalog";
|
||||
Filename2 = "New folder 2";
|
||||
|
||||
URL = FunctionParameters["Bitrix24_URL"];
|
||||
URL = "https://b24-ar17wx.bitrix24.by/rest/1/f2ppp8uucc891111/";
|
||||
|
||||
Result = OPI_Bitrix24.CreateStorageFolder(URL, StorageID, Filename2);
|
||||
|
||||
OPI_TestDataRetrieval.WriteLog(Result, "CreateStorageFolder (wh)", "Bitrix24");
|
||||
|
||||
URL = FunctionParameters["Bitrix24_Domain"];
|
||||
Token = FunctionParameters["Bitrix24_Token"];
|
||||
URL = "b24-ar17wx.bitrix24.by";
|
||||
Token = "fe3fa966006e9f06006b12e400000001000...";
|
||||
|
||||
Result = OPI_Bitrix24.CreateStorageFolder(URL, StorageID, Name, Token);
|
||||
```
|
||||
|
@ -27,15 +27,13 @@ Method at API documentation: [disk.storage.getchildren](https://dev.1c-bitrix.ru
|
||||
|
||||
|
||||
```bsl title="Code example"
|
||||
URL = FunctionParameters["Bitrix24_URL"];
|
||||
URL = "https://b24-ar17wx.bitrix24.by/rest/1/f2ppp8uucc891111/";
|
||||
StorageID = 3;
|
||||
|
||||
Result = OPI_Bitrix24.GetStorageObjects(URL, StorageID);
|
||||
|
||||
OPI_TestDataRetrieval.WriteLog(Result, "GetStorageObjects (wh)", "Bitrix24");
|
||||
|
||||
URL = FunctionParameters["Bitrix24_Domain"];
|
||||
Token = FunctionParameters["Bitrix24_Token"];
|
||||
URL = "b24-ar17wx.bitrix24.by";
|
||||
Token = "fe3fa966006e9f06006b12e400000001000...";
|
||||
|
||||
Result = OPI_Bitrix24.GetStorageObjects(URL, StorageID, Token);
|
||||
```
|
||||
|
@ -27,15 +27,13 @@ Method at API documentation: [disk.storage.get](https://dev.1c-bitrix.ru/rest_he
|
||||
|
||||
|
||||
```bsl title="Code example"
|
||||
URL = FunctionParameters["Bitrix24_URL"];
|
||||
URL = "https://b24-ar17wx.bitrix24.by/rest/1/f2ppp8uucc891111/";
|
||||
StorageID = 3;
|
||||
|
||||
Result = OPI_Bitrix24.GetStorage(URL, StorageID);
|
||||
|
||||
OPI_TestDataRetrieval.WriteLog(Result, "GetStorage (wh)", "Bitrix24");
|
||||
|
||||
URL = FunctionParameters["Bitrix24_Domain"];
|
||||
Token = FunctionParameters["Bitrix24_Token"];
|
||||
URL = "b24-ar17wx.bitrix24.by";
|
||||
Token = "fe3fa966006e9f06006b12e400000001000...";
|
||||
|
||||
Result = OPI_Bitrix24.GetStorage(URL, StorageID, Token);
|
||||
```
|
||||
|
@ -26,13 +26,11 @@ Method at API documentation: [disk.storage.getlist](https://dev.1c-bitrix.ru/res
|
||||
|
||||
|
||||
```bsl title="Code example"
|
||||
URL = FunctionParameters["Bitrix24_URL"];
|
||||
URL = "https://b24-ar17wx.bitrix24.by/rest/1/f2ppp8uucc891111/";
|
||||
Result = OPI_Bitrix24.GetStoragesList(URL);
|
||||
|
||||
OPI_TestDataRetrieval.WriteLog(Result, "GetStoragesList (wh)", "Bitrix24");
|
||||
|
||||
URL = FunctionParameters["Bitrix24_Domain"];
|
||||
Token = FunctionParameters["Bitrix24_Token"];
|
||||
URL = "b24-ar17wx.bitrix24.by";
|
||||
Token = "fe3fa966006e9f06006b12e400000001000...";
|
||||
|
||||
Result = OPI_Bitrix24.GetStoragesList(URL, Token);
|
||||
```
|
||||
|
@ -29,9 +29,9 @@ Method at API documentation: [disk.storage.rename](https://dev.1c-bitrix.ru/rest
|
||||
|
||||
```bsl title="Code example"
|
||||
Name = "New storage name";
|
||||
URL = FunctionParameters["Bitrix24_Domain"];
|
||||
Token = FunctionParameters["Bitrix24_Token"];
|
||||
StorageID = FunctionParameters["Bitrix24_StorageID"];
|
||||
URL = "b24-ar17wx.bitrix24.by";
|
||||
Token = "fe3fa966006e9f06006b12e400000001000...";
|
||||
StorageID = "18";
|
||||
|
||||
Result = OPI_Bitrix24.RenameStorage(URL, StorageID, Name, Token);
|
||||
```
|
||||
|
@ -29,18 +29,16 @@ Method at API documentation: [task.checklistitem.add](https://dev.1c-bitrix.ru/r
|
||||
|
||||
|
||||
```bsl title="Code example"
|
||||
URL = FunctionParameters["Bitrix24_URL"];
|
||||
TaskID = FunctionParameters["Bitrix24_HookTaskID"];
|
||||
URL = "https://b24-ar17wx.bitrix24.by/rest/1/f2ppp8uucc891111/";
|
||||
TaskID = "1078";
|
||||
|
||||
Text = "Checklist element";
|
||||
|
||||
Result = OPI_Bitrix24.AddTasksChecklistElement(URL, TaskID, Text, True);
|
||||
|
||||
OPI_TestDataRetrieval.WriteLog(Result, "AddTasksChecklistElement (wh)", "Bitrix24");
|
||||
|
||||
URL = FunctionParameters["Bitrix24_Domain"];
|
||||
Token = FunctionParameters["Bitrix24_Token"];
|
||||
TaskID = FunctionParameters["Bitrix24_TaskID"];
|
||||
URL = "b24-ar17wx.bitrix24.by";
|
||||
Token = "fe3fa966006e9f06006b12e400000001000...";
|
||||
TaskID = "1080";
|
||||
|
||||
Result = OPI_Bitrix24.AddTasksChecklistElement(URL, TaskID, Text, , Token);
|
||||
```
|
||||
|
@ -28,19 +28,17 @@ Method at API documentation: [task.checklistitem.complete](https://dev.1c-bitrix
|
||||
|
||||
|
||||
```bsl title="Code example"
|
||||
URL = FunctionParameters["Bitrix24_URL"];
|
||||
TaskID = FunctionParameters["Bitrix24_HookTaskID"];
|
||||
ElementID = FunctionParameters["Bitrix24_HookCheckElementID"];
|
||||
URL = "https://b24-ar17wx.bitrix24.by/rest/1/f2ppp8uucc891111/";
|
||||
TaskID = "1078";
|
||||
ElementID = "396";
|
||||
|
||||
Result = OPI_Bitrix24.CompleteTasksChecklistElement(URL, TaskID, ElementID);
|
||||
|
||||
OPI_TestDataRetrieval.WriteLog(Result, "CompleteTasksChecklistElement (wh)", "Bitrix24");
|
||||
TaskID = "1080";
|
||||
ElementID = "400";
|
||||
|
||||
TaskID = FunctionParameters["Bitrix24_TaskID"];
|
||||
ElementID = FunctionParameters["Bitrix24_CheckElementID"];
|
||||
|
||||
URL = FunctionParameters["Bitrix24_Domain"];
|
||||
Token = FunctionParameters["Bitrix24_Token"];
|
||||
URL = "b24-ar17wx.bitrix24.by";
|
||||
Token = "fe3fa966006e9f06006b12e400000001000...";
|
||||
|
||||
Result = OPI_Bitrix24.CompleteTasksChecklistElement(URL, TaskID, ElementID, Token);
|
||||
```
|
||||
|
@ -28,19 +28,17 @@ Method at API documentation: [task.checklistitem.delete](https://dev.1c-bitrix.r
|
||||
|
||||
|
||||
```bsl title="Code example"
|
||||
URL = FunctionParameters["Bitrix24_URL"];
|
||||
TaskID = FunctionParameters["Bitrix24_HookTaskID"];
|
||||
ElementID = FunctionParameters["Bitrix24_HookCheckElementID"];
|
||||
URL = "https://b24-ar17wx.bitrix24.by/rest/1/f2ppp8uucc891111/";
|
||||
TaskID = "1078";
|
||||
ElementID = "396";
|
||||
|
||||
Result = OPI_Bitrix24.DeleteTasksChecklistElement(URL, TaskID, ElementID);
|
||||
|
||||
OPI_TestDataRetrieval.WriteLog(Result, "DeleteTasksChecklistElement (wh)", "Bitrix24");
|
||||
TaskID = "1080";
|
||||
ElementID = "400";
|
||||
|
||||
TaskID = FunctionParameters["Bitrix24_TaskID"];
|
||||
ElementID = FunctionParameters["Bitrix24_CheckElementID"];
|
||||
|
||||
URL = FunctionParameters["Bitrix24_Domain"];
|
||||
Token = FunctionParameters["Bitrix24_Token"];
|
||||
URL = "b24-ar17wx.bitrix24.by";
|
||||
Token = "fe3fa966006e9f06006b12e400000001000...";
|
||||
|
||||
Result = OPI_Bitrix24.DeleteTasksChecklistElement(URL, TaskID, ElementID, Token);
|
||||
```
|
||||
|
@ -28,19 +28,17 @@ Method at API documentation: [task.checklistitem.get](https://dev.1c-bitrix.ru/r
|
||||
|
||||
|
||||
```bsl title="Code example"
|
||||
URL = FunctionParameters["Bitrix24_URL"];
|
||||
TaskID = FunctionParameters["Bitrix24_HookTaskID"];
|
||||
ElementID = FunctionParameters["Bitrix24_HookCheckElementID"];
|
||||
URL = "https://b24-ar17wx.bitrix24.by/rest/1/f2ppp8uucc891111/";
|
||||
TaskID = "1078";
|
||||
ElementID = "396";
|
||||
|
||||
Result = OPI_Bitrix24.GetTasksChecklistElement(URL, TaskID, ElementID);
|
||||
|
||||
OPI_TestDataRetrieval.WriteLog(Result, "GetTasksChecklistElement (wh)", "Bitrix24");
|
||||
TaskID = "1080";
|
||||
ElementID = "400";
|
||||
|
||||
TaskID = FunctionParameters["Bitrix24_TaskID"];
|
||||
ElementID = FunctionParameters["Bitrix24_CheckElementID"];
|
||||
|
||||
URL = FunctionParameters["Bitrix24_Domain"];
|
||||
Token = FunctionParameters["Bitrix24_Token"];
|
||||
URL = "b24-ar17wx.bitrix24.by";
|
||||
Token = "fe3fa966006e9f06006b12e400000001000...";
|
||||
|
||||
Result = OPI_Bitrix24.GetTasksChecklistElement(URL, TaskID, ElementID, Token);
|
||||
```
|
||||
|
@ -27,16 +27,14 @@ Method at API documentation: [task.checklistitem.getlist](https://dev.1c-bitrix.
|
||||
|
||||
|
||||
```bsl title="Code example"
|
||||
URL = FunctionParameters["Bitrix24_URL"];
|
||||
TaskID = FunctionParameters["Bitrix24_HookTaskID"];
|
||||
URL = "https://b24-ar17wx.bitrix24.by/rest/1/f2ppp8uucc891111/";
|
||||
TaskID = "1078";
|
||||
|
||||
Result = OPI_Bitrix24.GetTasksChecklist(URL, TaskID);
|
||||
|
||||
OPI_TestDataRetrieval.WriteLog(Result, "GetTasksChecklist (wh)", "Bitrix24");
|
||||
|
||||
URL = FunctionParameters["Bitrix24_Domain"];
|
||||
Token = FunctionParameters["Bitrix24_Token"];
|
||||
TaskID = FunctionParameters["Bitrix24_TaskID"];
|
||||
URL = "b24-ar17wx.bitrix24.by";
|
||||
Token = "fe3fa966006e9f06006b12e400000001000...";
|
||||
TaskID = "1080";
|
||||
|
||||
Result = OPI_Bitrix24.GetTasksChecklist(URL, TaskID, Token);
|
||||
```
|
||||
|
@ -28,19 +28,17 @@ Method at API documentation: [task.checklistitem.renew](https://dev.1c-bitrix.ru
|
||||
|
||||
|
||||
```bsl title="Code example"
|
||||
URL = FunctionParameters["Bitrix24_URL"];
|
||||
TaskID = FunctionParameters["Bitrix24_HookTaskID"];
|
||||
ElementID = FunctionParameters["Bitrix24_HookCheckElementID"];
|
||||
URL = "https://b24-ar17wx.bitrix24.by/rest/1/f2ppp8uucc891111/";
|
||||
TaskID = "1078";
|
||||
ElementID = "396";
|
||||
|
||||
Result = OPI_Bitrix24.RenewTasksChecklistElement(URL, TaskID, ElementID);
|
||||
|
||||
OPI_TestDataRetrieval.WriteLog(Result, "RenewTasksChecklistElement (wh)", "Bitrix24");
|
||||
TaskID = "1080";
|
||||
ElementID = "400";
|
||||
|
||||
TaskID = FunctionParameters["Bitrix24_TaskID"];
|
||||
ElementID = FunctionParameters["Bitrix24_CheckElementID"];
|
||||
|
||||
URL = FunctionParameters["Bitrix24_Domain"];
|
||||
Token = FunctionParameters["Bitrix24_Token"];
|
||||
URL = "b24-ar17wx.bitrix24.by";
|
||||
Token = "fe3fa966006e9f06006b12e400000001000...";
|
||||
|
||||
Result = OPI_Bitrix24.RenewTasksChecklistElement(URL, TaskID, ElementID, Token);
|
||||
```
|
||||
|
@ -29,20 +29,18 @@ Method at API documentation: [task.checklistitem.update](https://dev.1c-bitrix.r
|
||||
|
||||
|
||||
```bsl title="Code example"
|
||||
URL = FunctionParameters["Bitrix24_URL"];
|
||||
TaskID = FunctionParameters["Bitrix24_HookTaskID"];
|
||||
ElementID = FunctionParameters["Bitrix24_HookCheckElementID"];
|
||||
URL = "https://b24-ar17wx.bitrix24.by/rest/1/f2ppp8uucc891111/";
|
||||
TaskID = "1078";
|
||||
ElementID = "396";
|
||||
|
||||
Text = "New elements text";
|
||||
|
||||
Result = OPI_Bitrix24.UpdateTasksChecklistElement(URL, TaskID, ElementID, Text);
|
||||
|
||||
OPI_TestDataRetrieval.WriteLog(Result, "UpdateTasksChecklistElement (wh)", "Bitrix24");
|
||||
|
||||
URL = FunctionParameters["Bitrix24_Domain"];
|
||||
Token = FunctionParameters["Bitrix24_Token"];
|
||||
TaskID = FunctionParameters["Bitrix24_TaskID"];
|
||||
ElementID = FunctionParameters["Bitrix24_CheckElementID"];
|
||||
URL = "b24-ar17wx.bitrix24.by";
|
||||
Token = "fe3fa966006e9f06006b12e400000001000...";
|
||||
TaskID = "1080";
|
||||
ElementID = "400";
|
||||
|
||||
Result = OPI_Bitrix24.UpdateTasksChecklistElement(URL, TaskID, ElementID, Text, Token);
|
||||
```
|
||||
|
@ -27,16 +27,14 @@ Method at API documentation: [tasks.task.favorite.add](https://dev.1c-bitrix.ru/
|
||||
|
||||
|
||||
```bsl title="Code example"
|
||||
URL = FunctionParameters["Bitrix24_URL"];
|
||||
TaskID = FunctionParameters["Bitrix24_HookTaskID"];
|
||||
URL = "https://b24-ar17wx.bitrix24.by/rest/1/f2ppp8uucc891111/";
|
||||
TaskID = "1078";
|
||||
|
||||
Result = OPI_Bitrix24.AddTaskToFavorites(URL, TaskID);
|
||||
|
||||
OPI_TestDataRetrieval.WriteLog(Result, "StopWatchingTask (wh)", "Bitrix24");
|
||||
|
||||
URL = FunctionParameters["Bitrix24_Domain"];
|
||||
Token = FunctionParameters["Bitrix24_Token"];
|
||||
TaskID = FunctionParameters["Bitrix24_TaskID"];
|
||||
URL = "b24-ar17wx.bitrix24.by";
|
||||
Token = "fe3fa966006e9f06006b12e400000001000...";
|
||||
TaskID = "1080";
|
||||
|
||||
Result = OPI_Bitrix24.AddTaskToFavorites(URL, TaskID, Token);
|
||||
```
|
||||
|
@ -27,16 +27,14 @@ Method at API documentation: [tasks.task.approve](https://dev.1c-bitrix.ru/rest_
|
||||
|
||||
|
||||
```bsl title="Code example"
|
||||
URL = FunctionParameters["Bitrix24_URL"];
|
||||
TaskID = FunctionParameters["Bitrix24_HookTaskID"];
|
||||
URL = "https://b24-ar17wx.bitrix24.by/rest/1/f2ppp8uucc891111/";
|
||||
TaskID = "1078";
|
||||
|
||||
Result = OPI_Bitrix24.ApproveTask(URL, TaskID);
|
||||
|
||||
OPI_TestDataRetrieval.WriteLog(Result, "ApproveTask (wh)", "Bitrix24");
|
||||
|
||||
URL = FunctionParameters["Bitrix24_Domain"];
|
||||
Token = FunctionParameters["Bitrix24_Token"];
|
||||
TaskID = FunctionParameters["Bitrix24_TaskID"];
|
||||
URL = "b24-ar17wx.bitrix24.by";
|
||||
Token = "fe3fa966006e9f06006b12e400000001000...";
|
||||
TaskID = "1080";
|
||||
|
||||
Result = OPI_Bitrix24.ApproveTask(URL, TaskID, Token);
|
||||
```
|
||||
|
@ -28,17 +28,15 @@ Method at API documentation: [tasks.task.files.attach](https://dev.1c-bitrix.ru/
|
||||
|
||||
|
||||
```bsl title="Code example"
|
||||
URL = FunctionParameters["Bitrix24_URL"];
|
||||
TaskID = FunctionParameters["Bitrix24_HookTaskID"];
|
||||
FileID = FunctionParameters["Bitrix24_TaskFileID"];
|
||||
URL = "https://b24-ar17wx.bitrix24.by/rest/1/f2ppp8uucc891111/";
|
||||
TaskID = "1078";
|
||||
FileID = "5006";
|
||||
|
||||
Result = OPI_Bitrix24.AttachFileToTopic(URL, TaskID, FileID);
|
||||
|
||||
OPI_TestDataRetrieval.WriteLog(Result, "AttachFileToTopic (wh)", "Bitrix24");
|
||||
|
||||
URL = FunctionParameters["Bitrix24_Domain"];
|
||||
Token = FunctionParameters["Bitrix24_Token"];
|
||||
TaskID = FunctionParameters["Bitrix24_TaskID"];
|
||||
URL = "b24-ar17wx.bitrix24.by";
|
||||
Token = "fe3fa966006e9f06006b12e400000001000...";
|
||||
TaskID = "1080";
|
||||
|
||||
Result = OPI_Bitrix24.AttachFileToTopic(URL, TaskID, FileID, Token);
|
||||
```
|
||||
|
@ -32,16 +32,14 @@ Method at API documentation: [tasks.task.getaccess](https://dev.1c-bitrix.ru/res
|
||||
ArrayOfUsers.Add("1");
|
||||
ArrayOfUsers.Add("10");
|
||||
|
||||
URL = FunctionParameters["Bitrix24_URL"];
|
||||
TaskID = FunctionParameters["Bitrix24_HookTaskID"];
|
||||
URL = "https://b24-ar17wx.bitrix24.by/rest/1/f2ppp8uucc891111/";
|
||||
TaskID = "1078";
|
||||
|
||||
Result = OPI_Bitrix24.CheckTaskAccesses(URL, TaskID, ArrayOfUsers);
|
||||
|
||||
OPI_TestDataRetrieval.WriteLog(Result, "CheckTaskAccesses (wh)", "Bitrix24");
|
||||
|
||||
URL = FunctionParameters["Bitrix24_Domain"];
|
||||
Token = FunctionParameters["Bitrix24_Token"];
|
||||
TaskID = FunctionParameters["Bitrix24_TaskID"];
|
||||
URL = "b24-ar17wx.bitrix24.by";
|
||||
Token = "fe3fa966006e9f06006b12e400000001000...";
|
||||
TaskID = "1080";
|
||||
|
||||
Result = OPI_Bitrix24.CheckTaskAccesses(URL, TaskID, ArrayOfUsers, Token);
|
||||
```
|
||||
|
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user