1
0
mirror of https://github.com/Bayselonarrend/OpenIntegrations.git synced 2024-12-25 02:42:28 +02:00

Перевод доков с новой структурой

This commit is contained in:
Anton Titovets 2024-06-21 09:25:14 +03:00
parent 24d5005b71
commit 3b19e87ba8
238 changed files with 4813 additions and 5890 deletions

View File

@ -123,15 +123,6 @@
ПроверитьСоздатьКаталог(КаталогОбласти);
ПроверитьСоздатьКаталог(КаталогКартинок);
СтруктураКатегории = Новый Структура("label,position", ЗаголовокОбласти, Строка(СчетчикБиблиотеки));
ФайлКатегории = КаталогОбласти + "/_category_.json";
Запись = Новый ЗаписьJSON;
ПараметрыЗаписиJSON = Новый ПараметрыЗаписиJSON(ПереносСтрокJSON.Авто);
Запись.ОткрытьФайл(ФайлКатегории, , , ПараметрыЗаписиJSON);
ЗаписатьJSON(Запись, СтруктураКатегории);
Запись.Закрыть();
Макет = Новый ТекстовыйДокумент();
Макет.Прочитать("./.github/workflows/os/template.md", "UTF-8");

View File

@ -1,4 +0,0 @@
{
"label": "Comment management",
"position": "6"
}

View File

@ -1,4 +0,0 @@
{
"label": "Record management",
"position": "5"
}

View File

@ -1,4 +0,0 @@
{
"label": "Table management",
"position": "3"
}

View File

@ -1,4 +0,0 @@
{
"label": "Working with databases",
"position": "2"
}

View File

@ -1,4 +0,0 @@
{
"label": "Working with fields",
"position": "4"
}

View File

@ -1,8 +0,0 @@
{
"label": "Airtable",
"position": 11,
"link": {
"type": "doc",
"id": "Airtable"
}
}

View File

@ -13,7 +13,7 @@ sidebar_position: 1
| URL | --url | String | URL of webhook or a Bitrix24 domain, when token used |
| Text | --text | String | Text of post |
| Visibility | --vision | String | Array or a single post target: UA all, SG<X> work group, U<X> user, DR<X> depart., G<X> group |
| Files | --files | String | Data inложенandй, где toлюч > name file, value > path to file andдand дinоandчные Data |
| Files | --files | String | Attachment data where key > filename, value > file path or binary data |
| Title | --title | String | Post title |
| Important | --important | Boolean | Mark post as important |
| Token | --token | String | Access token, when not-webhook method used |

View File

@ -130,7 +130,7 @@ oint bitrix24 GetPosts --url "b24-ar17wx.bitrix24.by" --postid "124" --sel %sel%
"USER_TYPE": {
"USER_TYPE_ID": "url_preview",
"CLASS_NAME": "Bitrix\\Main\\UrlPreview\\UrlPreviewUserType",
"DESCRIPTION": "Содержandмое withwithылtoand",
"DESCRIPTION": "Link data",
"BASE_TYPE": "int"
},
"VALUE": null,
@ -173,7 +173,7 @@ oint bitrix24 GetPosts --url "b24-ar17wx.bitrix24.by" --postid "124" --sel %sel%
"renderView"
],
"USE_FIELD_COMPONENT": true,
"DESCRIPTION": "Whole чandwithло",
"DESCRIPTION": "Whole number",
"BASE_TYPE": "int"
},
"VALUE": null,
@ -244,7 +244,7 @@ oint bitrix24 GetPosts --url "b24-ar17wx.bitrix24.by" --postid "124" --sel %sel%
"USER_TYPE": {
"USER_TYPE_ID": "mail_message",
"CLASS_NAME": "Bitrix\\Mail\\MessageUserType",
"DESCRIPTION": "Пandwithьмо (email)",
"DESCRIPTION": "Letter (email)",
"BASE_TYPE": "int",
"VIEW_CALLBACK": [
"Bitrix\\Mail\\MessageUserType",
@ -286,7 +286,7 @@ oint bitrix24 GetPosts --url "b24-ar17wx.bitrix24.by" --postid "124" --sel %sel%
"MAX_VALUE": 0,
"DEFAULT_VALUE": null
},
"EDIT_FORM_LABEL": "Important withобщенandе",
"EDIT_FORM_LABEL": "Important message",
"LIST_COLUMN_LABEL": "Important",
"LIST_FILTER_LABEL": "Important",
"ERROR_MESSAGE": null,
@ -303,7 +303,7 @@ oint bitrix24 GetPosts --url "b24-ar17wx.bitrix24.by" --postid "124" --sel %sel%
"renderView"
],
"USE_FIELD_COMPONENT": true,
"DESCRIPTION": "Whole чandwithло",
"DESCRIPTION": "Whole number",
"BASE_TYPE": "int"
},
"VALUE": null,
@ -331,8 +331,8 @@ oint bitrix24 GetPosts --url "b24-ar17wx.bitrix24.by" --postid "124" --sel %sel%
"USE_SECOND": "Y",
"USE_TIMEZONE": "N"
},
"EDIT_FORM_LABEL": "Сроto дейwithтinandя",
"LIST_COLUMN_LABEL": "Сроto",
"EDIT_FORM_LABEL": "Expiration date",
"LIST_COLUMN_LABEL": "Deadline",
"LIST_FILTER_LABEL": null,
"ERROR_MESSAGE": null,
"HELP_MESSAGE": null,
@ -348,7 +348,7 @@ oint bitrix24 GetPosts --url "b24-ar17wx.bitrix24.by" --postid "124" --sel %sel%
"renderView"
],
"USE_FIELD_COMPONENT": true,
"DESCRIPTION": "Date with inремеnotм",
"DESCRIPTION": "Date with time",
"BASE_TYPE": "datetime"
},
"VALUE": "",

View File

@ -14,7 +14,7 @@ sidebar_position: 2
| PostID | --postid | String, Number | Post ID |
| Text | --text | String | Text of post |
| Visibility | --vision | String | Array or a single post target: UA all, SG<X> work group, U<X> user, DR<X> depart., G<X> group |
| Files | --files | String | Data inложенandй, где toлюч > name file, value > path to file andдand дinоandчные Data |
| Files | --files | String | Attachment data where key > filename, value > file path or binary data |
| Title | --title | String | Post title |
| Token | --token | String | Access token, when not-webhook method used |

View File

@ -1,4 +0,0 @@
{
"label": "Feed posts managment",
"position": "3"
}

View File

@ -1,4 +0,0 @@
{
"label": "Settings and administartion",
"position": "2"
}

View File

@ -42,7 +42,7 @@ oint bitrix24 GetStoragesList --url "b24-ar17wx.bitrix24.by" --token "b9df736600
"result": [
{
"ID": "3",
"NAME": "Общandй дandwithto",
"NAME": "Main drive",
"CODE": null,
"MODULE_ID": "disk",
"ENTITY_TYPE": "common",
@ -87,7 +87,7 @@ oint bitrix24 GetStoragesList --url "b24-ar17wx.bitrix24.by" --token "b9df736600
},
{
"ID": "12",
"NAME": "Toддержtoа Bitrix24",
"NAME": "Support Bitrix24",
"CODE": null,
"MODULE_ID": "disk",
"ENTITY_TYPE": "user",
@ -96,7 +96,7 @@ oint bitrix24 GetStoragesList --url "b24-ar17wx.bitrix24.by" --token "b9df736600
},
{
"ID": "14",
"NAME": "Марта",
"NAME": "Marta",
"CODE": null,
"MODULE_ID": "disk",
"ENTITY_TYPE": "user",

View File

@ -1,4 +0,0 @@
{
"label": "Storages and files managment",
"position": "5"
}

View File

@ -44,7 +44,7 @@ oint bitrix24 DisapproveTask --url "b24-ar17wx.bitrix24.by" --task "170" --token
{
"error": 1048582,
"error_description": "Action toд задачей not разрешеbut"
"error_description": "Action on the task is not allowed"
}
```

View File

@ -48,7 +48,7 @@ oint bitrix24 GetTaskFieldsStructure --url "b24-ar17wx.bitrix24.by" --token "b9d
"primary": true
},
"PARENT_ID": {
"title": "ID базоinой of topic",
"title": "ID of base task",
"type": "integer",
"default": 0
},
@ -62,21 +62,21 @@ oint bitrix24 GetTaskFieldsStructure --url "b24-ar17wx.bitrix24.by" --token "b9d
"type": "string"
},
"MARK": {
"title": "Оценtoа",
"title": "Mark",
"type": "enum",
"values": {
"N": "Оthreeцательtoя",
"P": "Toложandтельtoя"
"N": "Negative",
"P": "Positive"
},
"default": null
},
"PRIORITY": {
"title": "Прandорandтет",
"title": "Priority",
"type": "enum",
"values": {
"2": "Inыwithtoandй",
"1": "Midнandй",
"0": "Nfromtoandй"
"2": "High",
"1": "Normal",
"0": "Low"
},
"default": 1
},
@ -84,19 +84,19 @@ oint bitrix24 GetTaskFieldsStructure --url "b24-ar17wx.bitrix24.by" --token "b9d
"title": "Status",
"type": "enum",
"values": {
"2": "Ждет of completing",
"3": "Inыtoлняетwithя",
"4": "Ожandдает toонтроля",
"5": "Заinершеto",
"6": "Отложеto"
"2": "Waiting of completing",
"3": "In work",
"4": "On controll",
"5": "Complete",
"6": "Deferred"
},
"default": 2
},
"MULTITASK": {
"title": "Мbutжеwithтinенtoя task",
"title": "Multiple task",
"type": "enum",
"values": {
"Y": "Да",
"Y": "Yes",
"N": "No"
},
"default": "N"
@ -105,32 +105,32 @@ oint bitrix24 GetTaskFieldsStructure --url "b24-ar17wx.bitrix24.by" --token "b9d
"title": null,
"type": "enum",
"values": {
"Y": "Да",
"Y": "Yes",
"N": "No"
},
"default": "N"
},
"REPLICATE": {
"title": "Toinторяемая task",
"title": "Repeatable task",
"type": "enum",
"values": {
"Y": "Да",
"Y": "Yes",
"N": "No"
},
"default": "N"
},
"GROUP_ID": {
"title": "Проеtoт",
"title": "Project",
"type": "integer",
"default": 0
},
"STAGE_ID": {
"title": "Стадandя",
"title": "Stage",
"type": "integer",
"default": 0
},
"CREATED_BY": {
"title": "Postаbutinщandto",
"title": "Producer",
"type": "integer",
"required": true
},
@ -152,7 +152,7 @@ oint bitrix24 GetTaskFieldsStructure --url "b24-ar17wx.bitrix24.by" --token "b9d
"type": "array"
},
"CHANGED_BY": {
"title": "Inменandл",
"title": "Changer",
"type": "integer"
},
"CHANGED_DATE": {
@ -160,7 +160,7 @@ oint bitrix24 GetTaskFieldsStructure --url "b24-ar17wx.bitrix24.by" --token "b9d
"type": "datetime"
},
"STATUS_CHANGED_BY": {
"title": "Inменandл status",
"title": "Changer status",
"type": "integer"
},
"STATUS_CHANGED_DATE": {
@ -168,12 +168,12 @@ oint bitrix24 GetTaskFieldsStructure --url "b24-ar17wx.bitrix24.by" --token "b9d
"type": "datetime"
},
"CLOSED_BY": {
"title": "Заtoрыл задачу",
"title": "Close task",
"type": "integer",
"default": null
},
"CLOSED_DATE": {
"title": "Date заtoрытandя",
"title": "Date of closing",
"type": "datetime",
"default": null
},
@ -188,17 +188,17 @@ oint bitrix24 GetTaskFieldsStructure --url "b24-ar17wx.bitrix24.by" --token "b9d
"default": null
},
"DEADLINE": {
"title": "Kрайнandй deadline",
"title": "Last deadline",
"type": "datetime",
"default": null
},
"START_DATE_PLAN": {
"title": "Плаbutinое toчало",
"title": "Planned start",
"type": "datetime",
"default": null
},
"END_DATE_PLAN": {
"title": "Плаbutinое заinершенandе",
"title": "Planned end",
"type": "datetime",
"default": null
},
@ -213,7 +213,7 @@ oint bitrix24 GetTaskFieldsStructure --url "b24-ar17wx.bitrix24.by" --token "b9d
"default": null
},
"COMMENTS_COUNT": {
"title": "Kол-inо toомментарandеin",
"title": "Comments count",
"type": "integer",
"default": 0
},
@ -231,7 +231,7 @@ oint bitrix24 GetTaskFieldsStructure --url "b24-ar17wx.bitrix24.by" --token "b9d
"title": null,
"type": "enum",
"values": {
"Y": "Да",
"Y": "Yes",
"N": "No"
},
"default": "N"
@ -240,48 +240,48 @@ oint bitrix24 GetTaskFieldsStructure --url "b24-ar17wx.bitrix24.by" --token "b9d
"title": null,
"type": "enum",
"values": {
"Y": "Да",
"Y": "Yes",
"N": "No"
},
"default": "N"
},
"TASK_CONTROL": {
"title": "Прandнять работу",
"title": "Approve task",
"type": "enum",
"values": {
"Y": "Да",
"Y": "Yes",
"N": "No"
},
"default": "N"
},
"ADD_IN_REPORT": {
"title": "Add in отчет",
"title": "Add in report",
"type": "enum",
"values": {
"Y": "Да",
"Y": "Yes",
"N": "No"
},
"default": "N"
},
"FORKED_BY_TEMPLATE_ID": {
"title": "Создаbut from шаблоto",
"title": "Created from template",
"type": "enum",
"values": {
"Y": "Да",
"Y": "Yes",
"N": "No"
},
"default": "N"
},
"TIME_ESTIMATE": {
"title": "Затрачеbutе inремя",
"title": "Time spend",
"type": "integer"
},
"TIME_SPENT_IN_LOGS": {
"title": "Затрачеbutе inремя from andwithторandand changedandй",
"title": "Time spend from changes history",
"type": "integer"
},
"MATCH_WORK_TIME": {
"title": "Skip inыходные днand",
"title": "Skip weekends",
"type": "integer"
},
"FORUM_TOPIC_ID": {
@ -297,10 +297,10 @@ oint bitrix24 GetTaskFieldsStructure --url "b24-ar17wx.bitrix24.by" --token "b9d
"type": "string"
},
"SUBORDINATE": {
"title": "Задача toдчandnotнbutго",
"title": "Task of dependent",
"type": "enum",
"values": {
"Y": "Да",
"Y": "Yes",
"N": "No"
},
"default": null
@ -309,7 +309,7 @@ oint bitrix24 GetTaskFieldsStructure --url "b24-ar17wx.bitrix24.by" --token "b9d
"title": null,
"type": "enum",
"values": {
"Y": "Да",
"Y": "Yes",
"N": "No"
},
"default": null
@ -330,19 +330,19 @@ oint bitrix24 GetTaskFieldsStructure --url "b24-ar17wx.bitrix24.by" --token "b9d
"default": null
},
"VIEWED_DATE": {
"title": "Date of last проwithмотра",
"title": "Date of last view",
"type": "datetime"
},
"SORTING": {
"title": "Andндеtowith of sorting",
"title": "Index of sorting",
"type": "double"
},
"DURATION_PLAN": {
"title": "Затрачеbut (план)",
"title": "Spend (plan)",
"type": "integer"
},
"DURATION_FACT": {
"title": "Затрачеbut (фаtoтandчеwithtoand)",
"title": "Spend (fact)",
"type": "integer"
},
"CHECKLIST": {
@ -367,7 +367,7 @@ oint bitrix24 GetTaskFieldsStructure --url "b24-ar17wx.bitrix24.by" --token "b9d
"title": null,
"type": "enum",
"values": {
"Y": "Да",
"Y": "Yes",
"N": "No"
},
"default": "N"
@ -376,7 +376,7 @@ oint bitrix24 GetTaskFieldsStructure --url "b24-ar17wx.bitrix24.by" --token "b9d
"title": null,
"type": "enum",
"values": {
"Y": "Да",
"Y": "Yes",
"N": "No"
},
"default": "N"
@ -385,7 +385,7 @@ oint bitrix24 GetTaskFieldsStructure --url "b24-ar17wx.bitrix24.by" --token "b9d
"title": null,
"type": "enum",
"values": {
"Y": "Да",
"Y": "Yes",
"N": "No"
},
"default": "N"

View File

@ -1,4 +0,0 @@
{
"label": "Tasks managment",
"position": "4"
}

View File

@ -1,4 +0,0 @@
{
"label": "Account and authorization",
"position": "2"
}

View File

@ -1,4 +0,0 @@
{
"label": "File and directory management",
"position": "3"
}

View File

@ -1,4 +0,0 @@
{
"label": "Shared access settings",
"position": "5"
}

View File

@ -1,4 +0,0 @@
{
"label": "Tags managment",
"position": "4"
}

View File

@ -1,8 +0,0 @@
{
"label": "Dropbox",
"position": 12,
"link": {
"type": "doc",
"id": "Dropbox"
}
}

View File

@ -1,4 +0,0 @@
{
"label": "Calendar list management",
"position": "3"
}

View File

@ -1,4 +0,0 @@
{
"label": "Calendar metadata management",
"position": "2"
}

View File

@ -1,4 +0,0 @@
{
"label": "Event management",
"position": "4"
}

View File

@ -1,8 +0,0 @@
{
"label": "Google Calendar",
"position": 7,
"link": {
"type": "doc",
"id": "GoogleCalendar"
}
}

View File

@ -1,4 +0,0 @@
{
"label": "Comment management",
"position": "3"
}

View File

@ -1,4 +0,0 @@
{
"label": "File and directory management",
"position": "2"
}

View File

@ -1,8 +0,0 @@
{
"label": "Google Drive",
"position": 8,
"link": {
"type": "doc",
"id": "GoogleDrive"
}
}

View File

@ -1,4 +0,0 @@
{
"label": "Data managment",
"position": "4"
}

View File

@ -1,4 +0,0 @@
{
"label": "Spreadsheets managment",
"position": "2"
}

View File

@ -1,4 +0,0 @@
{
"label": "Working with sheets",
"position": "3"
}

View File

@ -1,8 +0,0 @@
{
"label": "Google Sheets",
"position": 9,
"link": {
"type": "doc",
"id": "GoogleSheets"
}
}

View File

@ -0,0 +1,62 @@
---
id: Bitrix24
sidebar_class_name: Bitrix24
---
<img src={require('../../static/img/APIs/Bitrix24.png').default} width='64px' />
# Bitrix24
This section is dedicated to the library for working with Bitrix24 API. On this page, all the steps necessary to start working are described
## Getting started
There are two ways to work with Bitrix24 via API: via **Webhook** and via **local application**. For both options you need:
1. Go to **Developers** in the **Applications** section of the sidebar
![BF](../../static/img/Docs/Bitrix24/1.png)
2. Select **Other**
![BF](../../static/img/Docs/Bitrix24/2.png)
<hr/><br/>
### To work via Webhook
1. Select **Incoming Webhook**
![BF](../../static/img/Docs/Bitrix24/3.png)
2. Fill in the necessary permissions in **Permissions Settings** and save the URL of the webhook. This will be used to execute library methods as the **URL** parameter. The optional **Token** parameter will always remain empty in this case
![BF](../../static/img/Docs/Bitrix24/4.png)
<hr/><br/>
## To work via Local Application
1. Select **Local Application**
![BF](../../static/img/Docs/Bitrix24/5.png)
2. Select the path of the handler (if the application does not imply authorization of other users, but only Bitrix management through one administrator account, you can choose any address, for example https://localhost), tick **Use only API** (if you need only the functionality of calling library methods) and fill in the necessary permissions
![BF](../../static/img/Docs/Bitrix24/6.png)
3. Save the **application key** and **application code**
![BF](../../static/img/Docs/Bitrix24/7.png)
4. Using the application key, call the **GetAppAuthLink** function and follow the received link in the browser. After authorization, copy the received code from the address bar (or get it to the handler whose address was specified in point 2)
![BF](../../static/img/Docs/Bitrix24/8.png)
5. Pass the received code, along with the application key and secret, to the **GetToken** function. Save the received **access** and **refresh tokens**
6. Tokens have a limited lifetime. To get a new token, you can use the **UpdateToken** function, passing here the refresh token, key and application secret. The refresh creates not only a new access token, but also a refresh token as well

View File

@ -1,4 +0,0 @@
{
"label": "Blocks managment",
"position": "4"
}

View File

@ -1,4 +0,0 @@
{
"label": "Database management",
"position": "3"
}

View File

@ -1,4 +0,0 @@
{
"label": "Page management",
"position": "2"
}

View File

@ -1,4 +0,0 @@
{
"label": "Users",
"position": "5"
}

View File

@ -1,8 +0,0 @@
{
"label": "Notion",
"position": 6,
"link": {
"type": "doc",
"id": "Notion"
}
}

View File

@ -1,4 +0,0 @@
{
"label": "Block formation",
"position": "8"
}

View File

@ -1,4 +0,0 @@
{
"label": "Channel management",
"position": "4"
}

View File

@ -1,4 +0,0 @@
{
"label": "Dialog management",
"position": "5"
}

View File

@ -1,4 +0,0 @@
{
"label": "External files management",
"position": "7"
}

View File

@ -1,4 +0,0 @@
{
"label": "File managment",
"position": "6"
}

View File

@ -1,4 +0,0 @@
{
"label": "Management and settings",
"position": "2"
}

View File

@ -1,4 +0,0 @@
{
"label": "Message management",
"position": "3"
}

View File

@ -1,8 +0,0 @@
{
"label": "Slack",
"position": 9,
"link": {
"type": "doc",
"id": "Slack"
}
}

View File

@ -1,8 +0,0 @@
{
"label": "Getting started",
"position": 1,
"link": {
"type": "doc",
"id": "Start"
}
}

Binary file not shown.

Before

Width:  |  Height:  |  Size: 78 KiB

After

Width:  |  Height:  |  Size: 72 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 103 KiB

After

Width:  |  Height:  |  Size: 93 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 100 KiB

After

Width:  |  Height:  |  Size: 244 KiB

View File

@ -1,4 +0,0 @@
{
"label": "Administration",
"position": "4"
}

View File

@ -1,4 +0,0 @@
{
"label": "Data retrieval and settings",
"position": "2"
}

View File

@ -1,4 +0,0 @@
{
"label": "Data sending",
"position": "3"
}

View File

@ -1,4 +0,0 @@
{
"label": "Forum topic management",
"position": "5"
}

View File

@ -1,8 +0,0 @@
{
"label": "Telegram",
"position": 2,
"link": {
"type": "doc",
"id": "Telegram"
}
}

View File

@ -1,4 +0,0 @@
{
"label": "Data and settings",
"position": "2"
}

View File

@ -1,4 +0,0 @@
{
"label": "Tweets",
"position": "3"
}

View File

@ -1,8 +0,0 @@
{
"label": "Twitter",
"position": 4,
"link": {
"type": "doc",
"id": "Twitter"
}
}

View File

@ -1,4 +0,0 @@
{
"label": "Ad account management",
"position": "7"
}

View File

@ -1,4 +0,0 @@
{
"label": "Community managment",
"position": "3"
}

View File

@ -1,4 +0,0 @@
{
"label": "Discussion management",
"position": "4"
}

View File

@ -1,59 +0,0 @@
---
sidebar_position: 5
---
# Create album
Creates an album to store images
*Function CreateAlbum(Val Name, Val Description = "", Val Parameters = "") Export*
| Parameter | CLI option | Type | Destination |
|-|-|-|-|
| Name | --title | String | Album name |
| Description | --description | String | Album description |
| Parameters | --auth | Structure Of String | Authorization JSON or path to .json |
Returns: Map Of KeyAndValue - Serialized JSON response from VK
```bsl title="Code example"
Parameters = GetVKParameters();
Name = "AlbumFromAutoTest";
Description = "NewAlbumFromAutoTest";
Result = OPI_VK.CreateAlbum(Name, Description, Parameters);
```
```sh title="CLI command example"
oint vk CreateAlbum --title %title% --description %description% --auth %auth%
```
```json title="Result"
{
"response": {
"id": 304498513,
"owner_id": -218861756,
"size": 0,
"title": "AlbumFromAutoTest",
"feed_disabled": 0,
"feed_has_pinned": 0,
"can_upload": 1,
"comments_disabled": 0,
"created": 1717072416,
"description": "NewAlbumFromAutoTest",
"thumb_id": 0,
"updated": 1717072416,
"upload_by_admins_only": 1
}
}
```

View File

@ -1,68 +0,0 @@
---
sidebar_position: 2
---
# Create composite post
Creates a post based on an array of object identifiers (images, videos, etc..)
*Function CreateCompositePost(Val Text, Val Objects, Val Advertisement = False, Val LinkUnderPost = "", Val Parameters = "") Export*
| Parameter | CLI option | Type | Destination |
|-|-|-|-|
| Text | --text | String | Post text |
| Objects | --objects | Array of String | Array of identifiers like photo123_123 |
| Advertisement | --ad | Boolean | Sign ""This is an ad"" |
| LinkUnderPost | --url | String | Link (URL) under the post |
| Parameters | --auth | Structure Of String | Authorization JSON or path to .json |
Returns: Map Of KeyAndValue - Serialized JSON response from VK
```bsl title="Code example"
Parameters = GetVKParameters();
Text = "Post from autotest";
URL = "https://github.com/Bayselonarrend/OpenIntegrations";
Image = "https://openintegrations.dev/test_data/picture.jpg"; // URL, Path or Binary Data
Video = "https://openintegrations.dev/test_data/video.mp4"; // URL, Path or Binary Data
TFN = GetTempFileName("png");
CopyFile(Image, TFN);
ImageUpload = OPI_VK.UploadPhotoToServer(TFN, Parameters)["response"][0];
VideoUpload = OPI_VK.UploadVideoToServer(Video, "NewVideo",,, Parameters);
ImageOwner = OPI_Tools.NumberToString(ImageUpload["owner_id"]);
VideoOwner = OPI_Tools.NumberToString(VideoUpload["owner_id"]);
ImageID = OPI_Tools.NumberToString(ImageUpload["id"]);
VideoID = OPI_Tools.NumberToString(VideoUpload["video_id"]);
AttachmentsArray = New Array;
AttachmentsArray.Add("photo" + ImageOwner + "_" + ImageID);
AttachmentsArray.Add("video" + VideoOwner + "_" + VideoID);
Result = OPI_VK.CreateCompositePost(Text, AttachmentsArray, False, URL, Parameters);
```
```sh title="CLI command example"
oint vk CreateCompositePost --text %text% --objects %objects% --ad %ad% --url %url% --auth %auth%
```
```json title="Result"
{
"response": {
"post_id": 2126
}
}
```

View File

@ -1,52 +0,0 @@
---
sidebar_position: 4
---
# Create poll
Creates a poll with answer options
*Function CreatePoll(Val Question, Val AnswersArray, Val Image = "", Val Parameters = "") Export*
| Parameter | CLI option | Type | Destination |
|-|-|-|-|
| Question | --question | String | Poll question |
| AnswersArray | --options | Array of String | Array of answer options |
| Image | --picture | String, BinaryData | Poll image |
| Parameters | --auth | Structure Of String | Authorization JSON or path to .json |
Returns: Map Of KeyAndValue - Serialized JSON response from VK
```bsl title="Code example"
Parameters = GetVKParameters();
Question = "What's your favorite color?";
OptionArray = New Array;
OptionArray.Add("Red");
OptionArray.Add("Yellow");
OptionArray.Add("Green");
Result = OPI_VK.CreatePoll(Question, OptionArray,, Parameters);
```
```sh title="CLI command example"
oint vk CreatePoll --question "What's your favorite color?" --options "['Red','Yellow','Green']" --picture %picture% --auth %auth%
```
```json title="Result"
{
"response": {
"post_id": 2127
}
}
```

View File

@ -1,60 +0,0 @@
---
sidebar_position: 1
---
# Create post
Creates a post with images
*Function CreatePost(Val Text, Val ImageArray, Val Advertisement = False, Val LinkUnderPost = "", Val Parameters = "") Export*
| Parameter | CLI option | Type | Destination |
|-|-|-|-|
| Text | --text | String | Post text |
| ImageArray | --pictures | Array of String, BinaryData | Array of images |
| Advertisement | --ad | Boolean | Sign ""This is an ad"" |
| LinkUnderPost | --url | String | Link (URL) under the post |
| Parameters | --auth | Structure Of String | Authorization JSON or path to .json |
Returns: Map Of KeyAndValue - Serialized JSON response from VK
```bsl title="Code example"
Parameters = GetVKParameters();
Text = "Post from autotest";
URL = "https://github.com/Bayselonarrend/OpenIntegrations";
Image = "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
TFN = GetTempFileName("png");
CopyFile(Image2, TFN);
ImageArray = New Array;
ImageArray.Add(Image);
ImageArray.Add(TFN);
Result = OPI_VK.CreatePost(Text, ImageArray, True, URL, Parameters);
Result = OPI_VK.CreatePost(Text, Image, False,, Parameters);
```
```sh title="CLI command example"
oint vk CreatePost --text %text% --pictures %pictures% --ad %ad% --url %url% --auth %auth%
```
```json title="Result"
{
"response": {
"post_id": 2123
}
}
```

View File

@ -1,140 +0,0 @@
---
sidebar_position: 7
---
# Create story
Creates a story from an image
*Function CreateStory(Val Image, Val URL = "", Val Parameters = "") Export*
| Parameter | CLI option | Type | Destination |
|-|-|-|-|
| Image | --picture | String, BinaryData | Story background |
| URL | --url | String | URL for button under the story |
| Parameters | --auth | Structure Of String | Authorization JSON or path to .json |
Returns: Map Of KeyAndValue - Serialized JSON response from VK
```bsl title="Code example"
Parameters = GetVKParameters();
URL = "https://github.com/Bayselonarrend/OpenIntegrations";
Image = "https://openintegrations.dev/test_data/picture.jpg"; // URL, Path to file or Binary Data
TFN = GetTempFileName("png");
CopyFile(Image, TFN);
Image = New BinaryData(TFN);
Result = OPI_VK.CreateStory(Image, URL, Parameters);
Result = OPI_VK.CreateStory(TFN,, Parameters);
```
```sh title="CLI command example"
oint vk CreateStory --picture "https://openintegrations.dev/test_data/picture.jpg" --url %url% --auth %auth%
```
```json title="Result"
{
"response": {
"count": 1,
"items": [
{
"id": 456239491,
"owner_id": -218861756,
"access_key": "story",
"can_comment": 1,
"can_reply": 1,
"can_see": 1,
"can_like": true,
"can_share": 1,
"can_hide": 1,
"date": 1717072436,
"expires_at": 1717158836,
"link": {
"text": "More",
"url": "https://github.com/Bayselonarrend/OpenIntegrations"
},
"photo": {
"album_id": -81,
"date": 1717072436,
"id": 457244016,
"owner_id": -218861756,
"sizes": [
{
"height": 56,
"type": "s",
"width": 75,
"url": "https://sun6-20.userapi.com/s/v1/ig2/TUrQJn6Un8LHB0aNIOPtaqEt3K_J4tZbV2notqyJ1TUyHCj9m-bbiOZKm1u07WpGGAZfH1LFXbg95EM-uS0JHKX9.jpg?size=75x56&quality=95&type=story"
},
{
"height": 97,
"type": "m",
"width": 130,
"url": "https://sun6-20.userapi.com/s/v1/ig2/lASmJS8sUOYvtmSKkFOsBGNIWpcqoqenWSBOdBHSXQE9PuZjUx_aVVA3Zd6DOV08nssSEYQgXJ6Vam6TiPx2Lcpm.jpg?size=130x97&quality=95&type=story"
},
{
"height": 192,
"type": "j",
"width": 256,
"url": "https://sun6-20.userapi.com/s/v1/ig2/mmYPgPQo3uRxhAH1qIKIijT-5j87fr0A5PEe1X8k3kdo5MmagHYZIdECvXyFL9KubVsKzTZTWFJSQgskL5a09dhS.jpg?size=256x192&quality=95&type=story"
},
{
"height": 453,
"type": "x",
"width": 604,
"url": "https://sun6-20.userapi.com/s/v1/ig2/APnAEUFfn6z-WwqFWAM0_jbv9cRo4zrIPx3RSFrsSNdh8bXpv6438yZqB_BDM3pMfSfl6Gsx751T7mJ8yEf_zCi9.jpg?size=604x453&quality=95&type=story"
},
{
"height": 605,
"type": "y",
"width": 807,
"url": "https://sun6-20.userapi.com/s/v1/ig2/vou57hqLWC875j9nOB1HbiEWaVcSXCHmxNlyzyKEyKv6UO97Mm67PyKNftSvW0RvaHARFvl7Hc9noOv2TAV8Tq6X.jpg?size=807x605&quality=95&type=story"
},
{
"height": 960,
"type": "z",
"width": 1280,
"url": "https://sun6-20.userapi.com/s/v1/ig2/WGh4yRLRWsT4baZUDXiIUZU90sFYcZKcme9nnAPSy8CW_uYDQRDQSy8s0SkNRDEBteCyRBPG0Ka7tPwRQzp5M6Cx.jpg?size=1280x960&quality=95&type=story"
},
{
"height": 1920,
"type": "w",
"width": 2560,
"url": "https://sun6-20.userapi.com/s/v1/ig2/QugTL2gH3oV88GUPKhP1GOUfKWONc8iSt_v-Qt6TOsmioQPJ9nyq4L2a1yBHu2eSJKjsql1VhMtEx6wpt3fVVnly.jpg?size=2560x1920&quality=95&type=story"
}
],
"text": "",
"user_id": 100,
"web_view_token": "404a88e5d32e0ff306",
"has_tags": false
},
"replies": {
"count": 0,
"new": 0
},
"is_one_time": false,
"track_code": "story/3AAQAdLy9G9EAs4bMamDA84nNfHkBAAFoAagB6AIAA==",
"type": "photo",
"views": 0,
"likes_count": 0,
"reaction_set_id": "reactions",
"no_sound": false,
"can_ask": 0,
"can_ask_anonymous": 0,
"narratives_count": 0,
"can_use_in_narrative": true
}
]
}
}
```

View File

@ -1,43 +0,0 @@
---
sidebar_position: 6
---
# Delete album
Deletes a previously created album
*Function DeleteAlbum(Val AlbumID, Val Parameters = "") Export*
| Parameter | CLI option | Type | Destination |
|-|-|-|-|
| AlbumID | --album | String, Number | Album ID |
| Parameters | --auth | Structure Of String | Authorization JSON or path to .json |
Returns: Map Of KeyAndValue - Serialized JSON response from VK
```bsl title="Code example"
Parameters = GetVKParameters();
AlbumID = "304549394";
Result = OPI_VK.DeleteAlbum(AlbumID, Parameters);
```
```sh title="CLI command example"
oint vk DeleteAlbum --album %album% --auth %auth%
```
```json title="Result"
{
"response": 1
}
```

View File

@ -1,43 +0,0 @@
---
sidebar_position: 9
---
# Delete image
Deletes an image from the album
*Function DeleteImage(Val ImageID, Val Parameters = "") Export*
| Parameter | CLI option | Type | Destination |
|-|-|-|-|
| ImageID | --pictureid | String, Number | Image ID |
| Parameters | --auth | Structure Of String | Authorization JSON or path to .json |
Returns: Map Of KeyAndValue - Serialized JSON response from VK
```bsl title="Code example"
Parameters = GetVKParameters();
ImageID = "457244340";
Result = OPI_VK.DeleteImage(ImageID, Parameters);
```
```sh title="CLI command example"
oint vk DeleteImage --pictureid %pictureid% --auth %auth%
```
```json title="Result"
{
"response": 1
}
```

View File

@ -1,43 +0,0 @@
---
sidebar_position: 3
---
# Delete post
Deletes a post by ID
*Function DeletePost(Val PostID, Val Parameters = "") Export*
| Parameter | CLI option | Type | Destination |
|-|-|-|-|
| PostID | --post | String, Number | Post ID |
| Parameters | --auth | Structure Of String | Authorization JSON or path to .json |
Returns: Map Of KeyAndValue - Serialized JSON response from VK
```bsl title="Code example"
Parameters = GetVKParameters();
PostID = "2304";
Result = OPI_VK.DeletePost(PostID, Parameters);
```
```sh title="CLI command example"
oint vk DeletePost --post %post% --auth %auth%
```
```json title="Result"
{
"response": 1
}
```

View File

@ -1,126 +0,0 @@
---
sidebar_position: 8
---
# Save image to album
Saves an image to the community album
*Function SaveImageToAlbum(Val AlbumID, Val Image, Val Description = "", Val Parameters = "") Export*
| Parameter | CLI option | Type | Destination |
|-|-|-|-|
| AlbumID | --album | String, Number | Album ID |
| Image | --picture | BinaryData,String | Image file |
| Description | --description | String | Image description |
| Parameters | --auth | Structure Of String | Authorization JSON or path to .json |
Returns: Map Of KeyAndValue - Serialized JSON response from VK
```bsl title="Code example"
Parameters = GetVKParameters();
ImageDescription = "AutoTestImage";
AlbumID = "304549394";
Image = "https://openintegrations.dev/test_data/picture.jpg"; // URL, Path to file or Binary Data
TFN = GetTempFileName("png");
CopyFile(Image, TFN);
Image = New BinaryData(TFN);
Result = OPI_VK.SaveImageToAlbum(AlbumID, Image, ImageDescription, Parameters);
Result = OPI_VK.SaveImageToAlbum(AlbumID, TFN, ImageDescription, Parameters);
```
```sh title="CLI command example"
oint vk SaveImageToAlbum --album %album% --picture "https://openintegrations.dev/test_data/picture.jpg" --description %description% --auth %auth%
```
```json title="Result"
{
"response": [
{
"album_id": 304498513,
"date": 1717072420,
"id": 457244015,
"owner_id": -218861756,
"sizes": [
{
"height": 56,
"type": "s",
"width": 75,
"url": "https://sun9-38.userapi.com/impg/ejNe0jcXKF-JoKZdXKCs97GJjsJh4ZGE0iH8KQ/88_4gS4JO3s.jpg?size=75x56&quality=96&sign=025829abd0851633ab894cc48e64dbbb&c_uniq_tag=2CLDgToJpt6arrVUiZQ9l04lyJ415VJvA6WDs7UOnoI&type=album"
},
{
"height": 97,
"type": "m",
"width": 130,
"url": "https://sun9-38.userapi.com/impg/ejNe0jcXKF-JoKZdXKCs97GJjsJh4ZGE0iH8KQ/88_4gS4JO3s.jpg?size=130x97&quality=96&sign=695e45c5d6322047a61314118cb57ef4&c_uniq_tag=cDuBpPHNopdt-Cizd6uRFsKIdW_Oui8oo7TYcflfRgE&type=album"
},
{
"height": 453,
"type": "x",
"width": 604,
"url": "https://sun9-38.userapi.com/impg/ejNe0jcXKF-JoKZdXKCs97GJjsJh4ZGE0iH8KQ/88_4gS4JO3s.jpg?size=604x453&quality=96&sign=13ca3aaef94483586ace112657fe8241&c_uniq_tag=_pon027js3STBAQDQY4UbPdMBOh0AzKmalzEJnHAb-8&type=album"
},
{
"height": 605,
"type": "y",
"width": 807,
"url": "https://sun9-38.userapi.com/impg/ejNe0jcXKF-JoKZdXKCs97GJjsJh4ZGE0iH8KQ/88_4gS4JO3s.jpg?size=807x605&quality=96&sign=ca6a02d61aa6e88bbd63631e32c49895&c_uniq_tag=NSEWtM7U9s0sKGN84elYe-6ayOzx8dJXPD5JxUFUSK8&type=album"
},
{
"height": 960,
"type": "z",
"width": 1280,
"url": "https://sun9-38.userapi.com/impg/ejNe0jcXKF-JoKZdXKCs97GJjsJh4ZGE0iH8KQ/88_4gS4JO3s.jpg?size=1280x960&quality=96&sign=b10c42d8778cd2ac306fdeed0d7c77e9&c_uniq_tag=OsjHk58Ztn163AK2vT9xOw8tz75w00HoqpQSzJ9DOzo&type=album"
},
{
"height": 1920,
"type": "w",
"width": 2560,
"url": "https://sun9-38.userapi.com/impg/ejNe0jcXKF-JoKZdXKCs97GJjsJh4ZGE0iH8KQ/88_4gS4JO3s.jpg?size=2560x1920&quality=96&sign=2b5cb4cd90cd4d100b394da5cd1d2540&c_uniq_tag=JXApXjELC3QaCHRgTV2wAZ9xT_1uGPHx2DnJ15ZrfqQ&type=album"
},
{
"height": 97,
"type": "o",
"width": 130,
"url": "https://sun9-38.userapi.com/impg/ejNe0jcXKF-JoKZdXKCs97GJjsJh4ZGE0iH8KQ/88_4gS4JO3s.jpg?size=130x97&quality=96&sign=695e45c5d6322047a61314118cb57ef4&c_uniq_tag=cDuBpPHNopdt-Cizd6uRFsKIdW_Oui8oo7TYcflfRgE&type=album"
},
{
"height": 150,
"type": "p",
"width": 200,
"url": "https://sun9-38.userapi.com/impg/ejNe0jcXKF-JoKZdXKCs97GJjsJh4ZGE0iH8KQ/88_4gS4JO3s.jpg?size=200x150&quality=96&sign=aea8308f1793d48319babde7d4cf7a2a&c_uniq_tag=0oVRnXvNOW_41uhPO1-daYe0KK2SgLDPeMJ4gk2Js5g&type=album"
},
{
"height": 240,
"type": "q",
"width": 320,
"url": "https://sun9-38.userapi.com/impg/ejNe0jcXKF-JoKZdXKCs97GJjsJh4ZGE0iH8KQ/88_4gS4JO3s.jpg?size=320x240&quality=96&sign=f3d612a2ac0b297964e48d1775fa0c70&c_uniq_tag=LAynb-BcGM4BS_ew4PYMa93V627AEj8nTMcnq8Wy5gY&type=album"
},
{
"height": 382,
"type": "r",
"width": 510,
"url": "https://sun9-38.userapi.com/impg/ejNe0jcXKF-JoKZdXKCs97GJjsJh4ZGE0iH8KQ/88_4gS4JO3s.jpg?size=510x382&quality=96&sign=88209c9869f3522afe0a292a5884e246&c_uniq_tag=eMrSiFeVaca-qCgJXIxD1U1wU6ZInBYxsJVHxKn8CbY&type=album"
}
],
"text": "AutoTestImage",
"user_id": 100,
"web_view_token": "dcacf60c612a67607b",
"has_tags": false
}
]
}
```

View File

@ -1,38 +0,0 @@
---
sidebar_position: 11
---
# Upload photo to server
Uploads photo to server for further use
*Function UploadPhotoToServer(Val Image, Val Parameters = "", Val View = "Post") Export*
| Parameter | CLI option | Type | Destination |
|-|-|-|-|
| Image | --file | String, BinaryData | Image file |
| Parameters | --auth | Structure Of String | Authorization JSON or path to .json |
| View | --type | String | Upload type (Post, Product, Story, Poll, Other) |
Returns: Map Of KeyAndValue - Serialized JSON response from VK
```bsl title="Code example"
```
```sh title="CLI command example"
oint vk UploadPhotoToServer --file %file% --auth %auth% --type %type%
```
```json title="Result"
```

View File

@ -1,40 +0,0 @@
---
sidebar_position: 10
---
# Upload video to server
Uploads video to the group for further use
*Function UploadVideoToServer(Val Video, Val Name, Val Description = "", Val Album = "", Val Parameters = "") Export*
| Parameter | CLI option | Type | Destination |
|-|-|-|-|
| Video | --file | String, BinaryData | Video file |
| Name | --title | String | Video name |
| Description | --description | String | Video description |
| Album | --album | String | Album ID, if necessary |
| Parameters | --auth | Structure Of String | Authorization JSON or path to .json |
Returns: Map Of KeyAndValue - Serialized JSON response from VK
```bsl title="Code example"
```
```sh title="CLI command example"
oint vk UploadVideoToServer --file %file% --title %title% --description %description% --album %album% --auth %auth%
```
```json title="Result"
```

View File

@ -1,4 +0,0 @@
{
"label": "Community managment",
"position": "3"
}

View File

@ -1,4 +0,0 @@
{
"label": "Interactive actions",
"position": "5"
}

View File

@ -1,4 +0,0 @@
{
"label": "Order management",
"position": "11"
}

View File

@ -1,4 +0,0 @@
{
"label": "Others",
"position": "12"
}

View File

@ -1,4 +0,0 @@
{
"label": "Product management",
"position": "8"
}

View File

@ -1,4 +0,0 @@
{
"label": "Product properties management",
"position": "10"
}

View File

@ -1,4 +0,0 @@
{
"label": "Product selection management",
"position": "9"
}

View File

@ -1,4 +0,0 @@
{
"label": "Statistics",
"position": "6"
}

View File

@ -1,4 +0,0 @@
{
"label": "Token retrieval",
"position": "2"
}

View File

@ -1,8 +0,0 @@
{
"label": "VK",
"position": 3,
"link": {
"type": "doc",
"id": "VK"
}
}

View File

@ -1,4 +0,0 @@
{
"label": "Message sending",
"position": "3"
}

View File

@ -1,4 +0,0 @@
{
"label": "Settings and information",
"position": "2"
}

View File

@ -1,8 +0,0 @@
{
"label": "Viber",
"position": 3,
"link": {
"type": "doc",
"id": "Viber"
}
}

View File

@ -1,4 +0,0 @@
{
"label": "File and folder management",
"position": "2"
}

Some files were not shown because too many files have changed in this diff Show More