You've already forked OpenIntegrations
mirror of
https://github.com/Bayselonarrend/OpenIntegrations.git
synced 2025-07-15 01:34:30 +02:00
Main build (Jenkins)
This commit is contained in:
@ -31,7 +31,7 @@ Method at API documentation: [im.chat.updateAvatar](https://dev.1c-bitrix.ru/lea
|
||||
URL = "https://b24-ar17wx.bitrix24.by/rest/1/1o2...";
|
||||
ChatID = "872";
|
||||
|
||||
Image = "https://github.com/Bayselonarrend/OpenIntegrations/raw/main/service/test_data/picture2.jpg";
|
||||
Image = "https://openyellow.neocities.org/test_data/picture2.jpg";
|
||||
|
||||
Result = OPI_Bitrix24.ChangeChatPicture(URL, ChatID, Image);
|
||||
|
||||
|
@ -27,7 +27,7 @@ Method at API documentation: [im.chat.add](https://dev.1c-bitrix.ru/learning/cou
|
||||
|
||||
|
||||
```bsl title="Code example"
|
||||
Image = "https://github.com/Bayselonarrend/OpenIntegrations/raw/main/service/test_data/picture.jpg";
|
||||
Image = "https://openyellow.neocities.org/test_data/picture.jpg";
|
||||
OPI_TypeConversion.GetBinaryData(Image);
|
||||
|
||||
B64Image = GetBase64StringFromBinaryData(Image);
|
||||
|
@ -34,5 +34,14 @@ sidebar_position: 21
|
||||
```
|
||||
|
||||
```json title="Result"
|
||||
|
||||
{
|
||||
"TYPE": "<Chat type OPEN (Public) | CHAT (Private)>",
|
||||
"TITLE": "<Chat title>",
|
||||
"DESCRIPTION": "<Chat description>",
|
||||
"COLOR": "<Chat color: RED, GREEN, MINT, LIGHT_BLUE, DARK_BLUE, PURPLE, AQUA, ...>",
|
||||
"MESSAGE": "<First chat message>",
|
||||
"USERS": "<Chat members array>",
|
||||
"AVATAR": "<Base64 chat picture>",
|
||||
"OWNER_ID": "<ID of chat owner. Current user by default>"
|
||||
}
|
||||
```
|
||||
|
@ -34,5 +34,12 @@ sidebar_position: 9
|
||||
```
|
||||
|
||||
```json title="Result"
|
||||
|
||||
{
|
||||
"AUTHOR_ID": "<comment author identifier>",
|
||||
"AUTHOR_NAME": "<Users name (optional)>",
|
||||
"AUTHOR_EMAIL": "<Users email (optional)>",
|
||||
"USE_SMILES": "<(Y|N) - parse comments for emoticons or not>",
|
||||
"POST_MESSAGE": "<Message text>",
|
||||
"UF_FORUM_MESSAGE_DOC": "<Array of files from disk to attach>"
|
||||
}
|
||||
```
|
||||
|
@ -33,8 +33,8 @@ Method at API documentation: [log.blogpost.add](https://dev.1c-bitrix.ru/rest_he
|
||||
```bsl title="Code example"
|
||||
Text = "Text of post";
|
||||
Title = "Post title";
|
||||
Image1 = "https://github.com/Bayselonarrend/OpenIntegrations/raw/main/service/test_data/picture.jpg"; // URL, Path or Binary Data
|
||||
Image2 = "https://github.com/Bayselonarrend/OpenIntegrations/raw/main/service/test_data/picture2.jpg"; // URL, Path or Binary Data
|
||||
Image1 = "https://openyellow.neocities.org/test_data/picture.jpg"; // URL, Path or Binary Data
|
||||
Image2 = "https://openyellow.neocities.org/test_data/picture2.jpg"; // URL, Path or Binary Data
|
||||
|
||||
Files = New Map;
|
||||
Files.Insert("1.png", Image1);
|
||||
|
@ -33,7 +33,7 @@ Method at API documentation: [log.blogpost.update](https://dev.1c-bitrix.ru/rest
|
||||
```bsl title="Code example"
|
||||
Text = "New post text";
|
||||
Title = "New post title";
|
||||
Image1 = "https://github.com/Bayselonarrend/OpenIntegrations/raw/main/service/test_data/picture.jpg"; // URL, Path or Binary Data
|
||||
Image1 = "https://openyellow.neocities.org/test_data/picture.jpg"; // URL, Path or Binary Data
|
||||
PostID = "836";
|
||||
|
||||
Files = New Map;
|
||||
|
@ -32,8 +32,8 @@ Method at API documentation: [disk.folder.uploadfile](https://dev.1c-bitrix.ru/r
|
||||
Filename2 = "Picture2.jpg";
|
||||
Name = "Picture1.jpg";
|
||||
|
||||
Image2 = "https://github.com/Bayselonarrend/OpenIntegrations/raw/main/service/test_data/picture.jpg"; // Local path, URL or Binary Data
|
||||
Image = "https://github.com/Bayselonarrend/OpenIntegrations/raw/main/service/test_data/picture2.jpg"; // Local path, URL or Binary Data
|
||||
Image2 = "https://openyellow.neocities.org/test_data/picture.jpg"; // Local path, URL or Binary Data
|
||||
Image = "https://openyellow.neocities.org/test_data/picture2.jpg"; // Local path, URL or Binary Data
|
||||
|
||||
DestinationID = "10842";
|
||||
|
||||
|
@ -33,8 +33,8 @@ Method at API documentation: [disk.storage.uploadfile](https://dev.1c-bitrix.ru/
|
||||
Filename2 = "Picture2.jpg";
|
||||
Name = "Picture1.jpg";
|
||||
|
||||
Image2 = "https://github.com/Bayselonarrend/OpenIntegrations/raw/main/service/test_data/picture.jpg"; // Local path, URL or Binary Data
|
||||
Image = "https://github.com/Bayselonarrend/OpenIntegrations/raw/main/service/test_data/picture2.jpg"; // Local path, URL or Binary Data
|
||||
Image2 = "https://openyellow.neocities.org/test_data/picture.jpg"; // Local path, URL or Binary Data
|
||||
Image = "https://openyellow.neocities.org/test_data/picture2.jpg"; // Local path, URL or Binary Data
|
||||
|
||||
DestinationID = 3;
|
||||
|
||||
|
@ -27,7 +27,7 @@ Blocks at API documentation: [Link](https://dev.1c-bitrix.ru/learning/course/?CO
|
||||
|
||||
```bsl title="Code example"
|
||||
Name = "Image";
|
||||
URL = "https://github.com/Bayselonarrend/OpenIntegrations/raw/main/service/test_data/document.docx";
|
||||
URL = "https://openyellow.neocities.org/test_data/document.docx";
|
||||
|
||||
Result = OPI_Bitrix24.GetFileBlock(Name, URL);
|
||||
```
|
||||
@ -41,5 +41,10 @@ Blocks at API documentation: [Link](https://dev.1c-bitrix.ru/learning/course/?CO
|
||||
```
|
||||
|
||||
```json title="Result"
|
||||
|
||||
{
|
||||
"FILE": {
|
||||
"NAME": "Image",
|
||||
"LINK": "https://github.com/Bayselonarrend/OpenIntegrations/raw/main/service/test_data/document.docx"
|
||||
}
|
||||
}
|
||||
```
|
||||
|
@ -27,7 +27,7 @@ Blocks at API documentation: [Link](https://dev.1c-bitrix.ru/learning/course/?CO
|
||||
|
||||
```bsl title="Code example"
|
||||
Name = "Image";
|
||||
URL = "https://github.com/Bayselonarrend/OpenIntegrations/raw/main/service/test_data/picture.jpg";
|
||||
URL = "https://openyellow.neocities.org/test_data/picture.jpg";
|
||||
|
||||
Result = OPI_Bitrix24.GetPictureBlock(Name, URL);
|
||||
```
|
||||
@ -41,5 +41,10 @@ Blocks at API documentation: [Link](https://dev.1c-bitrix.ru/learning/course/?CO
|
||||
```
|
||||
|
||||
```json title="Result"
|
||||
|
||||
{
|
||||
"IMAGE": {
|
||||
"NAME": "Image",
|
||||
"LINK": "https://github.com/Bayselonarrend/OpenIntegrations/raw/main/service/test_data/picture.jpg"
|
||||
}
|
||||
}
|
||||
```
|
||||
|
@ -31,7 +31,7 @@ Method at API documentation: [im.disk.file.commit](https://dev.1c-bitrix.ru/lear
|
||||
```bsl title="Code example"
|
||||
URL = "https://b24-ar17wx.bitrix24.by/rest/1/1o2...";
|
||||
ChatID = "872";
|
||||
File = "https://github.com/Bayselonarrend/OpenIntegrations/raw/main/service/test_data/document.docx"; // Binary Data, URL or path to file
|
||||
File = "https://openyellow.neocities.org/test_data/document.docx"; // Binary Data, URL or path to file
|
||||
Description = "Very important file";
|
||||
|
||||
Directory = OPI_Bitrix24.GetChatFilesFolder(URL, ChatID);
|
||||
|
@ -34,5 +34,32 @@ sidebar_position: 27
|
||||
```
|
||||
|
||||
```json title="Result"
|
||||
|
||||
{
|
||||
"ID": "<task identifier>",
|
||||
"PARENT_ID": "<parent task identifier>",
|
||||
"GROUP_ID": "<workgroup identifier>",
|
||||
"CREATED_BY": "<producer>",
|
||||
"STATUS_CHANGED_BY": "<the user who last changed the task status>",
|
||||
"PRIORITY": "<priority>",
|
||||
"FORUM_TOPIC_ID": "<forum topic identifier>",
|
||||
"RESPONSIBLE_ID": "<performer>",
|
||||
"TITLE": "<task name (can be searched using the template [%_])>",
|
||||
"TAG": "<tag>",
|
||||
"REAL_STATUS": "<task status>",
|
||||
"MARK": "<mark>",
|
||||
"SITE_ID": "<site identifier>",
|
||||
"ADD_IN_REPORT": "<task in the report (Y|N)>",
|
||||
"DATE_START": "<start date>",
|
||||
"DEADLINE": "<deadline>",
|
||||
"CREATED_DATE": "<date of creation>",
|
||||
"CLOSED_DATE": "<completion date>",
|
||||
"CHANGED_DATE": "<date of last modification>",
|
||||
"ACCOMPLICE": "<co-executor identifier>",
|
||||
"AUDITOR": "<auditor identifier>",
|
||||
"DEPENDS_ON": "<previous task identifier>",
|
||||
"ONLY_ROOT_TASKS": "<only tasks that are not subtasks (Y|N)>",
|
||||
"STAGE_ID": "<stage>",
|
||||
"UF_CRM_TASK": "<CRM elements>",
|
||||
"STATUS": "<status for sorting. Similar to REAL_STATUS, but has three additional meta-statuses>"
|
||||
}
|
||||
```
|
||||
|
@ -34,5 +34,11 @@ sidebar_position: 8
|
||||
```
|
||||
|
||||
```json title="Result"
|
||||
|
||||
{
|
||||
"NAME": "<name>",
|
||||
"LAST_NAME": "<surname>",
|
||||
"WORK_POSITION": "<position>",
|
||||
"UF_DEPARTMENT_NAME": "<department name>",
|
||||
"USER_TYPE": "<type: employee, extranet, email>"
|
||||
}
|
||||
```
|
||||
|
Reference in New Issue
Block a user