From 62eeeed8c0f84e851b568595fc34ece391d7cbe9 Mon Sep 17 00:00:00 2001 From: Anton Titovets Date: Tue, 13 Aug 2024 14:36:39 +0300 Subject: [PATCH] =?UTF-8?q?=D0=9C=D0=B5=D0=BB=D0=BA=D0=B8=D0=B5=20=D0=B4?= =?UTF-8?q?=D0=BE=D0=BF=D0=BE=D0=BB=D0=BD=D0=B5=D0=BD=D0=B8=D1=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../examples/Bitrix24/AddPostRecipients.txt | 12 +++++++++++ docs/en/examples/Bitrix24/MakeFolderCopy.txt | 20 +++++++++++++++++++ .../examples/Bitrix24/MarkFileAsDeleted.txt | 11 ++++++++++ .../examples/Bitrix24/MarkFolderAsDeleted.txt | 11 ++++++++++ .../examples/Bitrix24/UploadFileToFolder.txt | 18 +++++++++++++++++ 5 files changed, 72 insertions(+) create mode 100644 docs/en/examples/Bitrix24/AddPostRecipients.txt create mode 100644 docs/en/examples/Bitrix24/MakeFolderCopy.txt create mode 100644 docs/en/examples/Bitrix24/MarkFileAsDeleted.txt create mode 100644 docs/en/examples/Bitrix24/MarkFolderAsDeleted.txt create mode 100644 docs/en/examples/Bitrix24/UploadFileToFolder.txt diff --git a/docs/en/examples/Bitrix24/AddPostRecipients.txt b/docs/en/examples/Bitrix24/AddPostRecipients.txt new file mode 100644 index 000000000..e0180c4c5 --- /dev/null +++ b/docs/en/examples/Bitrix24/AddPostRecipients.txt @@ -0,0 +1,12 @@ + Visibility = "UA"; + PostID = FunctionParameters["Bitrix24_PostID"]; + URL = FunctionParameters["Bitrix24_URL"]; + + Result = OPI_Bitrix24.AddPostRecipients(URL, PostID, Visibility); + + OPI_TestDataRetrieval.WriteLog(Result, "AddPostRecipients (wh)", "Bitrix24"); + + URL = FunctionParameters["Bitrix24_Domain"]; + Token = FunctionParameters["Bitrix24_Token"]; + + Result = OPI_Bitrix24.AddPostRecipients(URL, PostID, Visibility, Token); diff --git a/docs/en/examples/Bitrix24/MakeFolderCopy.txt b/docs/en/examples/Bitrix24/MakeFolderCopy.txt new file mode 100644 index 000000000..28fce2c66 --- /dev/null +++ b/docs/en/examples/Bitrix24/MakeFolderCopy.txt @@ -0,0 +1,20 @@ + DestinationID = FunctionParameters["Bitrix24_HookSubfolderID"]; + FolderID = FunctionParameters["Bitrix24_SubfolderID"]; + + URL = FunctionParameters["Bitrix24_URL"]; + + Result = OPI_Bitrix24.MakeFolderCopy(URL, FolderID, DestinationID); + + OPI_TestDataRetrieval.WriteLog(Result, "MakeFolderCopy (wh)", "Bitrix24"); + + DestinationID = FunctionParameters["Bitrix24_SubfolderID"]; + FolderID = FunctionParameters["Bitrix24_HookSubfolderID"]; + + URL = FunctionParameters["Bitrix24_Domain"]; + Token = FunctionParameters["Bitrix24_Token"]; + + Result = OPI_Bitrix24.MakeFolderCopy(URL, FolderID, DestinationID, Token); + + OPI_TestDataRetrieval.WriteLog(Result, "MakeFolderCopy", "Bitrix24"); + + Check_BitrixObject(Result); diff --git a/docs/en/examples/Bitrix24/MarkFileAsDeleted.txt b/docs/en/examples/Bitrix24/MarkFileAsDeleted.txt new file mode 100644 index 000000000..9ca59bc1a --- /dev/null +++ b/docs/en/examples/Bitrix24/MarkFileAsDeleted.txt @@ -0,0 +1,11 @@ + URL = FunctionParameters["Bitrix24_URL"]; + FileID = FunctionParameters["Bitrix24_FileID"]; + + Result = OPI_Bitrix24.MarkFileAsDeleted(URL, FileID); + + OPI_TestDataRetrieval.WriteLog(Result, "MarkFileAsDeleted (wh)", "Bitrix24"); + + URL = FunctionParameters["Bitrix24_Domain"]; + Token = FunctionParameters["Bitrix24_Token"]; + + Result = OPI_Bitrix24.MarkFileAsDeleted(URL, FileID, Token); diff --git a/docs/en/examples/Bitrix24/MarkFolderAsDeleted.txt b/docs/en/examples/Bitrix24/MarkFolderAsDeleted.txt new file mode 100644 index 000000000..f91a9f179 --- /dev/null +++ b/docs/en/examples/Bitrix24/MarkFolderAsDeleted.txt @@ -0,0 +1,11 @@ + URL = FunctionParameters["Bitrix24_URL"]; + FolderID = FunctionParameters["Bitrix24_FolderID"]; + + Result = OPI_Bitrix24.MarkFolderAsDeleted(URL, FolderID); + + OPI_TestDataRetrieval.WriteLog(Result, "MarkFolderAsDeleted (wh)", "Bitrix24"); + + URL = FunctionParameters["Bitrix24_Domain"]; + Token = FunctionParameters["Bitrix24_Token"]; + + Result = OPI_Bitrix24.MarkFolderAsDeleted(URL, FolderID, Token); diff --git a/docs/en/examples/Bitrix24/UploadFileToFolder.txt b/docs/en/examples/Bitrix24/UploadFileToFolder.txt new file mode 100644 index 000000000..ad3e84ae0 --- /dev/null +++ b/docs/en/examples/Bitrix24/UploadFileToFolder.txt @@ -0,0 +1,18 @@ + Filename2 = "Picture2.jpg"; + Name = "Picture1.jpg"; + + Image2 = FunctionParameters["Picture"]; // Local path, URL or Binary Data + Image = FunctionParameters["Picture2"]; // Local path, URL or Binary Data + + DestinationID = FunctionParameters["Bitrix24_FolderID"]; + + URL = FunctionParameters["Bitrix24_URL"]; + + Result = OPI_Bitrix24.UploadFileToFolder(URL, Filename2, Image2, DestinationID); + + OPI_TestDataRetrieval.WriteLog(Result, "UploadFileToFolder (wh)", "Bitrix24"); + + URL = FunctionParameters["Bitrix24_Domain"]; + Token = FunctionParameters["Bitrix24_Token"]; + + Result = OPI_Bitrix24.UploadFileToFolder(URL, Name, Image, DestinationID, Token);