mirror of
https://github.com/Bayselonarrend/OpenIntegrations.git
synced 2024-12-25 02:42:28 +02:00
Обновление документации
This commit is contained in:
parent
84ea163080
commit
cff467e14d
10
.github/workflows/os/docs_main.os
vendored
10
.github/workflows/os/docs_main.os
vendored
@ -652,12 +652,22 @@
|
||||
Если СтрНайти(Файл.ПолноеИмя, "cli") <> 0 Тогда
|
||||
Продолжить;
|
||||
КонецЕсли;
|
||||
|
||||
ПолноеИмяИсточник = Файл.ПолноеИмя;
|
||||
ПолноеИмяПриемник = КаталогПриемник + СтрЗаменить(Файл.ПолноеИмя, КаталогИсточник, "");
|
||||
|
||||
Если Файл.ЭтоКаталог() Тогда
|
||||
СоздатьКаталог(ПолноеИмяПриемник);
|
||||
Иначе
|
||||
|
||||
Если Файл.Расширение = ".gif" Или Файл.Расширение = ".png" Тогда
|
||||
ФайлПриемник = Новый Файл(ПолноеИмяПриемник);
|
||||
Если ФайлПриемник.Существует() Тогда
|
||||
Продолжить;
|
||||
КонецЕсли;
|
||||
КонецЕсли;
|
||||
|
||||
|
||||
КопироватьФайл(ПолноеИмяИсточник, ПолноеИмяПриемник);
|
||||
КонецЕсли;
|
||||
КонецЦикла;
|
||||
|
@ -1,4 +1,4 @@
|
||||
{
|
||||
"label": "Database work",
|
||||
"label": "Working with databases",
|
||||
"position": "2"
|
||||
}
|
@ -1,4 +1,4 @@
|
||||
{
|
||||
"label": "Field work",
|
||||
"label": "Working with fields",
|
||||
"position": "4"
|
||||
}
|
@ -0,0 +1,86 @@
|
||||
---
|
||||
sidebar_position: 3
|
||||
---
|
||||
|
||||
# Create base
|
||||
Creates a new database
|
||||
|
||||
|
||||
*Function CreateDatabase(Val Token, Val Workspace, Val Name, Val TableCollection) Export*
|
||||
|
||||
| Parameter | CLI option | Type | Destination |
|
||||
|-|-|-|-|
|
||||
| Token | --token | String | Token |
|
||||
| Workspace | --ws | String | Workspace identifier |
|
||||
| Name | --title | String | New base name |
|
||||
| TableCollection | --tablesdata | Map Of KeyAndValue | Table description: Key > name, Value > array of fields |
|
||||
|
||||
|
||||
Returns: Map Of KeyAndValue - serialized JSON response from Airtable
|
||||
|
||||
```bsl title="Code example"
|
||||
|
||||
|
||||
Workspace = "wspdf8yl1yZz3PmWZ";
|
||||
Name = "TestDatabase";
|
||||
|
||||
FieldArray = New Array;
|
||||
FieldArray.Add(OPI_Airtable.GetNumberField("Number"));
|
||||
FieldArray.Add(OPI_Airtable.GetStringField("String"));
|
||||
|
||||
TableName = "TestTable";
|
||||
|
||||
TableCollection = New Map;
|
||||
TableCollection.Insert(TableName, FieldArray);
|
||||
|
||||
Response = OPI_Airtable.CreateDatabase(Token, Workspace, Name, TableCollection); //Map
|
||||
Response = OPI_Tools.JSONString(Response); //JSON string
|
||||
|
||||
|
||||
|
||||
```
|
||||
|
||||
```sh title="CLI command example"
|
||||
|
||||
oint airtable CreateDatabase --token %token% --ws "wspdf8yl1yZz3PmWZ" --title "TestDatabase" --tablesdata %tablesdata%
|
||||
|
||||
|
||||
```
|
||||
|
||||
|
||||
```json title="Result"
|
||||
|
||||
{
|
||||
"id": "applEsyJmBRm12AuN",
|
||||
"tables": [
|
||||
{
|
||||
"id": "tblqZzW78Rvsdt9gt",
|
||||
"name": "TestTable",
|
||||
"primaryFieldId": "fldj9Z3fEpLzv40d0",
|
||||
"fields": [
|
||||
{
|
||||
"type": "number",
|
||||
"options": {
|
||||
"precision": 0
|
||||
},
|
||||
"id": "fldj9Z3fEpLzv40d0",
|
||||
"name": "Number"
|
||||
},
|
||||
{
|
||||
"type": "richText",
|
||||
"id": "fldX1kR7lienmcdEj",
|
||||
"name": "String"
|
||||
}
|
||||
],
|
||||
"views": [
|
||||
{
|
||||
"id": "viwbKE3PS9jl6bqJl",
|
||||
"name": "Grid view",
|
||||
"type": "grid"
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
||||
|
||||
```
|
@ -0,0 +1,73 @@
|
||||
---
|
||||
sidebar_position: 2
|
||||
---
|
||||
|
||||
# Get base tables
|
||||
Gets the schema of base tables
|
||||
|
||||
|
||||
*Function GetDatabaseTables(Val Token, Val Base) Export*
|
||||
|
||||
| Parameter | CLI option | Type | Destination |
|
||||
|-|-|-|-|
|
||||
| Token | --token | String | Token |
|
||||
| Base | --base | String | Base identifier |
|
||||
|
||||
|
||||
Returns: Map Of KeyAndValue - serialized JSON response from Airtable
|
||||
|
||||
```bsl title="Code example"
|
||||
|
||||
|
||||
Base = "apptm8Xqo7TwMaipQ";
|
||||
|
||||
Response = OPI_Airtable.GetDatabaseTables(Token, Base); //Map
|
||||
Response = OPI_Tools.JSONString(Response); //JSON string
|
||||
|
||||
|
||||
|
||||
```
|
||||
|
||||
```sh title="CLI command example"
|
||||
|
||||
oint airtable GetDatabaseTables --token %token% --base "apptm8Xqo7TwMaipQ"
|
||||
|
||||
|
||||
```
|
||||
|
||||
|
||||
```json title="Result"
|
||||
|
||||
{
|
||||
"tables": [
|
||||
{
|
||||
"id": "tblqZzW78Rvsdt9gt",
|
||||
"name": "TestTable",
|
||||
"primaryFieldId": "fldj9Z3fEpLzv40d0",
|
||||
"fields": [
|
||||
{
|
||||
"type": "number",
|
||||
"options": {
|
||||
"precision": 0
|
||||
},
|
||||
"id": "fldj9Z3fEpLzv40d0",
|
||||
"name": "Number"
|
||||
},
|
||||
{
|
||||
"type": "richText",
|
||||
"id": "fldX1kR7lienmcdEj",
|
||||
"name": "String"
|
||||
}
|
||||
],
|
||||
"views": [
|
||||
{
|
||||
"id": "viwbKE3PS9jl6bqJl",
|
||||
"name": "Grid view",
|
||||
"type": "grid"
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
||||
|
||||
```
|
@ -0,0 +1,90 @@
|
||||
---
|
||||
sidebar_position: 1
|
||||
---
|
||||
|
||||
# Get list of bases
|
||||
Gets the list of available bases
|
||||
|
||||
|
||||
*Function GetListOfBases(Val Token, Val Indent = "") Export*
|
||||
|
||||
| Parameter | CLI option | Type | Destination |
|
||||
|-|-|-|-|
|
||||
| Token | --token | String | Token |
|
||||
| Indent | --offset | String | Next page identifier of the base list from the previous request |
|
||||
|
||||
|
||||
Returns: Map Of KeyAndValue - serialized JSON response from Airtable
|
||||
|
||||
```bsl title="Code example"
|
||||
|
||||
|
||||
|
||||
Response = OPI_Airtable.GetListOfBases(Token); //Map
|
||||
Response = OPI_Tools.JSONString(Response); //JSON string
|
||||
|
||||
|
||||
|
||||
```
|
||||
|
||||
```sh title="CLI command example"
|
||||
|
||||
oint airtable GetListOfBases --token %token% --offset %offset%
|
||||
|
||||
|
||||
```
|
||||
|
||||
|
||||
```json title="Result"
|
||||
|
||||
{
|
||||
"bases": [
|
||||
{
|
||||
"id": "appGarzKZ0lu3gzoa",
|
||||
"name": "Test",
|
||||
"permissionLevel": "create"
|
||||
},
|
||||
{
|
||||
"id": "app9WRfJirwn3yXuG",
|
||||
"name": "Product catalog",
|
||||
"permissionLevel": "create"
|
||||
},
|
||||
{
|
||||
"id": "app6gigUYTzlDEq4X",
|
||||
"name": "TestDatabase",
|
||||
"permissionLevel": "create"
|
||||
},
|
||||
{
|
||||
"id": "app5hJGyK8asYYe1Q",
|
||||
"name": "TestDatabase",
|
||||
"permissionLevel": "create"
|
||||
},
|
||||
{
|
||||
"id": "appRQ6VxxOZb40Uwi",
|
||||
"name": "TestDatabase",
|
||||
"permissionLevel": "create"
|
||||
},
|
||||
{
|
||||
"id": "appM6FaGofV2XSfFA",
|
||||
"name": "TestDatabase",
|
||||
"permissionLevel": "create"
|
||||
},
|
||||
{
|
||||
"id": "apptm8Xqo7TwMaipQ",
|
||||
"name": "TestDatabase",
|
||||
"permissionLevel": "create"
|
||||
},
|
||||
{
|
||||
"id": "appsyQyGrF8aVN2Wm",
|
||||
"name": "TestDatabase",
|
||||
"permissionLevel": "create"
|
||||
},
|
||||
{
|
||||
"id": "applEsyJmBRm12AuN",
|
||||
"name": "TestDatabase",
|
||||
"permissionLevel": "create"
|
||||
}
|
||||
]
|
||||
}
|
||||
|
||||
```
|
@ -0,0 +1,4 @@
|
||||
{
|
||||
"label": "Working with databases",
|
||||
"position": "2"
|
||||
}
|
55
docs/en/md/Airtable/Working-with-fields/Create-field.md
Normal file
55
docs/en/md/Airtable/Working-with-fields/Create-field.md
Normal file
@ -0,0 +1,55 @@
|
||||
---
|
||||
sidebar_position: 1
|
||||
---
|
||||
|
||||
# Create field
|
||||
Creates a new field in the table
|
||||
|
||||
|
||||
*Function CreateField(Val Token, Val Base, Val Table, Val FieldStructure) Export*
|
||||
|
||||
| Parameter | CLI option | Type | Destination |
|
||||
|-|-|-|-|
|
||||
| Token | --token | String | Token |
|
||||
| Base | --base | String | Base identifier |
|
||||
| Table | --table | String | Table identifier |
|
||||
| FieldStructure | --fielddata | Structure of Key-Value | Description of the new field |
|
||||
|
||||
|
||||
Returns: Map Of KeyAndValue - serialized JSON response from Airtable
|
||||
|
||||
```bsl title="Code example"
|
||||
|
||||
|
||||
Base = "apptm8Xqo7TwMaipQ";
|
||||
Table = "tbl9G4jVoTJpxYwSY";
|
||||
Name = String(New UUID);
|
||||
Field = OPI_Airtable.GetNumberField(Name);
|
||||
|
||||
Response = OPI_Airtable.CreateField(Token, Base, Table, FieldStructure); //Map
|
||||
Response = OPI_Tools.JSONString(Response); //JSON string
|
||||
|
||||
|
||||
|
||||
```
|
||||
|
||||
```sh title="CLI command example"
|
||||
|
||||
oint airtable CreateField --token %token% --base "apptm8Xqo7TwMaipQ" --table "tbl9G4jVoTJpxYwSY" --fielddata %fielddata%
|
||||
|
||||
|
||||
```
|
||||
|
||||
|
||||
```json title="Result"
|
||||
|
||||
{
|
||||
"type": "number",
|
||||
"options": {
|
||||
"precision": 0
|
||||
},
|
||||
"id": "fld3IbFtHZtBHQwsk",
|
||||
"name": "9c0d2a82-7bf9-40b7-8052-ae3ebadc72d5"
|
||||
}
|
||||
|
||||
```
|
@ -0,0 +1,45 @@
|
||||
---
|
||||
sidebar_position: 5
|
||||
---
|
||||
|
||||
# Get field (file)
|
||||
Gets the description of a file field
|
||||
|
||||
|
||||
*Function GetAttachmentField(Val Name) Export*
|
||||
|
||||
| Parameter | CLI option | Type | Destination |
|
||||
|-|-|-|-|
|
||||
| Name | --title | String | Field name |
|
||||
|
||||
|
||||
Returns: Structure - Field description
|
||||
|
||||
```bsl title="Code example"
|
||||
|
||||
|
||||
Name = "Attachment";
|
||||
|
||||
Response = OPI_Airtable.GetAttachmentField(Name); //Map
|
||||
Response = OPI_Tools.JSONString(Response); //JSON string
|
||||
|
||||
|
||||
|
||||
```
|
||||
|
||||
```sh title="CLI command example"
|
||||
|
||||
oint airtable GetAttachmentField --title "Attachment"
|
||||
|
||||
|
||||
```
|
||||
|
||||
|
||||
```json title="Result"
|
||||
|
||||
{
|
||||
"name": "Attachment",
|
||||
"type": "multipleAttachments"
|
||||
}
|
||||
|
||||
```
|
@ -0,0 +1,49 @@
|
||||
---
|
||||
sidebar_position: 6
|
||||
---
|
||||
|
||||
# Get field (checkbox)
|
||||
Gets the description of a boolean field
|
||||
|
||||
|
||||
*Function GetCheckboxField(Val Name) Export*
|
||||
|
||||
| Parameter | CLI option | Type | Destination |
|
||||
|-|-|-|-|
|
||||
| Name | --title | String | Field name |
|
||||
|
||||
|
||||
Returns: Structure - Field description
|
||||
|
||||
```bsl title="Code example"
|
||||
|
||||
|
||||
Name = "Checkbox";
|
||||
|
||||
Response = OPI_Airtable.GetCheckboxField(Name); //Map
|
||||
Response = OPI_Tools.JSONString(Response); //JSON string
|
||||
|
||||
|
||||
|
||||
```
|
||||
|
||||
```sh title="CLI command example"
|
||||
|
||||
oint airtable GetCheckboxField --title "Checkbox"
|
||||
|
||||
|
||||
```
|
||||
|
||||
|
||||
```json title="Result"
|
||||
|
||||
{
|
||||
"name": "Checkbox",
|
||||
"type": "checkbox",
|
||||
"options": {
|
||||
"icon": "check",
|
||||
"color": "yellowBright"
|
||||
}
|
||||
}
|
||||
|
||||
```
|
51
docs/en/md/Airtable/Working-with-fields/Get-date-field.md
Normal file
51
docs/en/md/Airtable/Working-with-fields/Get-date-field.md
Normal file
@ -0,0 +1,51 @@
|
||||
---
|
||||
sidebar_position: 7
|
||||
---
|
||||
|
||||
# Get field (date)
|
||||
Gets the description of a date field
|
||||
|
||||
|
||||
*Function GetDateField(Val Name) Export*
|
||||
|
||||
| Parameter | CLI option | Type | Destination |
|
||||
|-|-|-|-|
|
||||
| Name | --title | String | Field name |
|
||||
|
||||
|
||||
Returns: Structure - Field description
|
||||
|
||||
```bsl title="Code example"
|
||||
|
||||
|
||||
Name = "Date";
|
||||
|
||||
Response = OPI_Airtable.GetDateField(Name); //Map
|
||||
Response = OPI_Tools.JSONString(Response); //JSON string
|
||||
|
||||
|
||||
|
||||
```
|
||||
|
||||
```sh title="CLI command example"
|
||||
|
||||
oint airtable GetDateField --title "Date"
|
||||
|
||||
|
||||
```
|
||||
|
||||
|
||||
```json title="Result"
|
||||
|
||||
{
|
||||
"name": "Date",
|
||||
"type": "date",
|
||||
"options": {
|
||||
"dateFormat": {
|
||||
"format": "YYYY-MM-DD",
|
||||
"name": "iso"
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
```
|
45
docs/en/md/Airtable/Working-with-fields/Get-email-field.md
Normal file
45
docs/en/md/Airtable/Working-with-fields/Get-email-field.md
Normal file
@ -0,0 +1,45 @@
|
||||
---
|
||||
sidebar_position: 8
|
||||
---
|
||||
|
||||
# Get field (email)
|
||||
Gets the description of an email field
|
||||
|
||||
|
||||
*Function GetEmailField(Val Name) Export*
|
||||
|
||||
| Parameter | CLI option | Type | Destination |
|
||||
|-|-|-|-|
|
||||
| Name | --title | String | Field name |
|
||||
|
||||
|
||||
Returns: Structure - Field description
|
||||
|
||||
```bsl title="Code example"
|
||||
|
||||
|
||||
Name = "Email";
|
||||
|
||||
Response = OPI_Airtable.GetEmailField(Name); //Map
|
||||
Response = OPI_Tools.JSONString(Response); //JSON string
|
||||
|
||||
|
||||
|
||||
```
|
||||
|
||||
```sh title="CLI command example"
|
||||
|
||||
oint airtable GetEmailField --title "Email"
|
||||
|
||||
|
||||
```
|
||||
|
||||
|
||||
```json title="Result"
|
||||
|
||||
{
|
||||
"name": "Email",
|
||||
"type": "email"
|
||||
}
|
||||
|
||||
```
|
45
docs/en/md/Airtable/Working-with-fields/Get-link-field.md
Normal file
45
docs/en/md/Airtable/Working-with-fields/Get-link-field.md
Normal file
@ -0,0 +1,45 @@
|
||||
---
|
||||
sidebar_position: 10
|
||||
---
|
||||
|
||||
# Get field (url)
|
||||
Gets the description of a URL field
|
||||
|
||||
|
||||
*Function GetLinkField(Val Name) Export*
|
||||
|
||||
| Parameter | CLI option | Type | Destination |
|
||||
|-|-|-|-|
|
||||
| Name | --title | String | Field name |
|
||||
|
||||
|
||||
Returns: Structure - Field description
|
||||
|
||||
```bsl title="Code example"
|
||||
|
||||
|
||||
Name = "Link";
|
||||
|
||||
Response = OPI_Airtable.GetLinkField(Name); //Map
|
||||
Response = OPI_Tools.JSONString(Response); //JSON string
|
||||
|
||||
|
||||
|
||||
```
|
||||
|
||||
```sh title="CLI command example"
|
||||
|
||||
oint airtable GetLinkField --title "Link"
|
||||
|
||||
|
||||
```
|
||||
|
||||
|
||||
```json title="Result"
|
||||
|
||||
{
|
||||
"name": "Link",
|
||||
"type": "url"
|
||||
}
|
||||
|
||||
```
|
50
docs/en/md/Airtable/Working-with-fields/Get-number-field.md
Normal file
50
docs/en/md/Airtable/Working-with-fields/Get-number-field.md
Normal file
@ -0,0 +1,50 @@
|
||||
---
|
||||
sidebar_position: 4
|
||||
---
|
||||
|
||||
# Get field (numeric)
|
||||
Gets the description of a numeric field
|
||||
|
||||
|
||||
*Function GetNumberField(Val Name, Val Precision = 0) Export*
|
||||
|
||||
| Parameter | CLI option | Type | Destination |
|
||||
|-|-|-|-|
|
||||
| Name | --title | String | New field name |
|
||||
| Precision | --precision | Number, String | Number of decimal places |
|
||||
|
||||
|
||||
Returns: Structure - Field description
|
||||
|
||||
```bsl title="Code example"
|
||||
|
||||
|
||||
Name = "Number";
|
||||
Precision = "0";
|
||||
|
||||
Response = OPI_Airtable.GetNumberField(Name, Precision); //Map
|
||||
Response = OPI_Tools.JSONString(Response); //JSON string
|
||||
|
||||
|
||||
|
||||
```
|
||||
|
||||
```sh title="CLI command example"
|
||||
|
||||
oint airtable GetNumberField --title "Number" --precision "0"
|
||||
|
||||
|
||||
```
|
||||
|
||||
|
||||
```json title="Result"
|
||||
|
||||
{
|
||||
"name": "Number",
|
||||
"type": "number",
|
||||
"options": {
|
||||
"precision": 0
|
||||
}
|
||||
}
|
||||
|
||||
```
|
45
docs/en/md/Airtable/Working-with-fields/Get-phone-field.md
Normal file
45
docs/en/md/Airtable/Working-with-fields/Get-phone-field.md
Normal file
@ -0,0 +1,45 @@
|
||||
---
|
||||
sidebar_position: 9
|
||||
---
|
||||
|
||||
# Get field (phone)
|
||||
Gets the description of a phone number field
|
||||
|
||||
|
||||
*Function GetPhoneField(Val Name) Export*
|
||||
|
||||
| Parameter | CLI option | Type | Destination |
|
||||
|-|-|-|-|
|
||||
| Name | --title | String | Field name |
|
||||
|
||||
|
||||
Returns: Structure - Field description
|
||||
|
||||
```bsl title="Code example"
|
||||
|
||||
|
||||
Name = "Phone";
|
||||
|
||||
Response = OPI_Airtable.GetPhoneField(Name); //Map
|
||||
Response = OPI_Tools.JSONString(Response); //JSON string
|
||||
|
||||
|
||||
|
||||
```
|
||||
|
||||
```sh title="CLI command example"
|
||||
|
||||
oint airtable GetPhoneField --title "Phone"
|
||||
|
||||
|
||||
```
|
||||
|
||||
|
||||
```json title="Result"
|
||||
|
||||
{
|
||||
"name": "Phone",
|
||||
"type": "phoneNumber"
|
||||
}
|
||||
|
||||
```
|
45
docs/en/md/Airtable/Working-with-fields/Get-string-field.md
Normal file
45
docs/en/md/Airtable/Working-with-fields/Get-string-field.md
Normal file
@ -0,0 +1,45 @@
|
||||
---
|
||||
sidebar_position: 3
|
||||
---
|
||||
|
||||
# Get field (string)
|
||||
Gets the description of a string field
|
||||
|
||||
|
||||
*Function GetStringField(Val Name) Export*
|
||||
|
||||
| Parameter | CLI option | Type | Destination |
|
||||
|-|-|-|-|
|
||||
| Name | --title | String | New field name |
|
||||
|
||||
|
||||
Returns: Structure - Field description
|
||||
|
||||
```bsl title="Code example"
|
||||
|
||||
|
||||
Name = "String";
|
||||
|
||||
Response = OPI_Airtable.GetStringField(Name); //Map
|
||||
Response = OPI_Tools.JSONString(Response); //JSON string
|
||||
|
||||
|
||||
|
||||
```
|
||||
|
||||
```sh title="CLI command example"
|
||||
|
||||
oint airtable GetStringField --title "String"
|
||||
|
||||
|
||||
```
|
||||
|
||||
|
||||
```json title="Result"
|
||||
|
||||
{
|
||||
"name": "String",
|
||||
"type": "richText"
|
||||
}
|
||||
|
||||
```
|
59
docs/en/md/Airtable/Working-with-fields/Modify-field.md
Normal file
59
docs/en/md/Airtable/Working-with-fields/Modify-field.md
Normal file
@ -0,0 +1,59 @@
|
||||
---
|
||||
sidebar_position: 2
|
||||
---
|
||||
|
||||
# Modify field
|
||||
Changes the name and/or description of an existing table field
|
||||
|
||||
|
||||
*Function ModifyField(Val Token, Val Base, Val Table, Val Field, Val Name = "", Val Description = "") Export*
|
||||
|
||||
| Parameter | CLI option | Type | Destination |
|
||||
|-|-|-|-|
|
||||
| Token | --token | String | Token |
|
||||
| Base | --base | String | Base identifier Base |
|
||||
| Table | --table | String | Table identifier |
|
||||
| Field | --field | String | Field identifier |
|
||||
| Name | --title | String | New name |
|
||||
| Description | --description | String | New description |
|
||||
|
||||
|
||||
Returns: Map Of KeyAndValue - serialized JSON response from Airtable
|
||||
|
||||
```bsl title="Code example"
|
||||
|
||||
|
||||
Base = "apptm8Xqo7TwMaipQ";
|
||||
Table = "tbl9G4jVoTJpxYwSY";
|
||||
Field = "fld3IbFtHZtBHQwsk";
|
||||
Name = String(New UUID) + "(change.)";
|
||||
Description = "New description";
|
||||
|
||||
Response = OPI_Airtable.ModifyField(Token, Base, Table, Field, Name, Description); //Map
|
||||
Response = OPI_Tools.JSONString(Response); //JSON string
|
||||
|
||||
|
||||
|
||||
```
|
||||
|
||||
```sh title="CLI command example"
|
||||
|
||||
oint airtable ModifyField --token %token% --base "apptm8Xqo7TwMaipQ" --table "tbl9G4jVoTJpxYwSY" --field "fld3IbFtHZtBHQwsk" --title %title% --description "New description"
|
||||
|
||||
|
||||
```
|
||||
|
||||
|
||||
```json title="Result"
|
||||
|
||||
{
|
||||
"type": "number",
|
||||
"options": {
|
||||
"precision": 0
|
||||
},
|
||||
"id": "fld3IbFtHZtBHQwsk",
|
||||
"name": "9c0d2a82-7bf9-40b7-8052-ae3ebadc72d5(change.)",
|
||||
"description": "New description"
|
||||
}
|
||||
|
||||
```
|
4
docs/en/md/Airtable/Working-with-fields/_category_.json
Normal file
4
docs/en/md/Airtable/Working-with-fields/_category_.json
Normal file
@ -0,0 +1,4 @@
|
||||
{
|
||||
"label": "Working with fields",
|
||||
"position": "4"
|
||||
}
|
@ -1,4 +1,4 @@
|
||||
{
|
||||
"label": "Tag work",
|
||||
"label": "Tags managment",
|
||||
"position": "4"
|
||||
}
|
43
docs/en/md/Dropbox/Tags-managment/Add-tag.md
Normal file
43
docs/en/md/Dropbox/Tags-managment/Add-tag.md
Normal file
@ -0,0 +1,43 @@
|
||||
---
|
||||
sidebar_position: 2
|
||||
---
|
||||
|
||||
# Add tag
|
||||
Adds a new text tag to a file or directory
|
||||
|
||||
|
||||
*Function AddTag(Val Token, Val Path, Val Tag) Export*
|
||||
|
||||
| Parameter | CLI option | Type | Destination |
|
||||
|-|-|-|-|
|
||||
| Token | --token | String | Token |
|
||||
| Path | --path | String | Path to the object for which the tag needs to be created |
|
||||
| Tag | --tag | String | Tag text |
|
||||
|
||||
|
||||
Returns: Map Of KeyAndValue - serialized JSON response from Dropbox
|
||||
|
||||
```bsl title="Code example"
|
||||
|
||||
Tag = "Important";
|
||||
Token = "sl.B2ieEHcB9I9BTwJFjbf_MQtoZMKjGYgkpBqzQkvBfuSz41Qpy5r3d7a4ax22I5ILWhd9KLbN5L...";
|
||||
Path = "/New/mydoc.docx";
|
||||
|
||||
Result = OPI_Dropbox.AddTag(Token, Path, Tag);
|
||||
|
||||
|
||||
```
|
||||
|
||||
```sh title="CLI command example"
|
||||
|
||||
oint dropbox AddTag --token "sl.B2ieEHcB9I9BTwJFjbf_MQtoZMKjGYgkpBqzQkvBfuSz41Qpy5r3d7a4ax22I5ILWhd9KLbN5L..." --path %path% --tag %tag%
|
||||
|
||||
|
||||
```
|
||||
|
||||
|
||||
```json title="Result"
|
||||
|
||||
{}
|
||||
|
||||
```
|
43
docs/en/md/Dropbox/Tags-managment/Delete-tag.md
Normal file
43
docs/en/md/Dropbox/Tags-managment/Delete-tag.md
Normal file
@ -0,0 +1,43 @@
|
||||
---
|
||||
sidebar_position: 3
|
||||
---
|
||||
|
||||
# Delete tag
|
||||
Deletes the text tag of a file or directory
|
||||
|
||||
|
||||
*Function DeleteTag(Val Token, Val Path, Val Tag) Export*
|
||||
|
||||
| Parameter | CLI option | Type | Destination |
|
||||
|-|-|-|-|
|
||||
| Token | --token | String | Token |
|
||||
| Path | --path | String | Path to the object whose tag needs to be deleted |
|
||||
| Tag | --tag | String | Tag text |
|
||||
|
||||
|
||||
Returns: Map Of KeyAndValue - serialized JSON response from Dropbox
|
||||
|
||||
```bsl title="Code example"
|
||||
|
||||
Tag = "Important";
|
||||
Token = "sl.B2ieEHcB9I9BTwJFjbf_MQtoZMKjGYgkpBqzQkvBfuSz41Qpy5r3d7a4ax22I5ILWhd9KLbN5L...";
|
||||
Path = "/New/mydoc.docx";
|
||||
|
||||
Result = OPI_Dropbox.DeleteTag(Token, Path, Tag);
|
||||
|
||||
|
||||
```
|
||||
|
||||
```sh title="CLI command example"
|
||||
|
||||
oint dropbox DeleteTag --token "sl.B2ieEHcB9I9BTwJFjbf_MQtoZMKjGYgkpBqzQkvBfuSz41Qpy5r3d7a4ax22I5ILWhd9KLbN5L..." --path %path% --tag %tag%
|
||||
|
||||
|
||||
```
|
||||
|
||||
|
||||
```json title="Result"
|
||||
|
||||
{}
|
||||
|
||||
```
|
53
docs/en/md/Dropbox/Tags-managment/Get-tag-list.md
Normal file
53
docs/en/md/Dropbox/Tags-managment/Get-tag-list.md
Normal file
@ -0,0 +1,53 @@
|
||||
---
|
||||
sidebar_position: 1
|
||||
---
|
||||
|
||||
# Get list of tags
|
||||
Gets the list of tags of the selected files
|
||||
|
||||
|
||||
*Function GetTagList(Val Token, Val Paths) Export*
|
||||
|
||||
| Parameter | CLI option | Type | Destination |
|
||||
|-|-|-|-|
|
||||
| Token | --token | String | Token |
|
||||
| Paths | --paths | String, Array of String | Path or set of paths to the files |
|
||||
|
||||
|
||||
Returns: Map Of KeyAndValue - serialized JSON response from Dropbox
|
||||
|
||||
```bsl title="Code example"
|
||||
|
||||
|
||||
|
||||
```
|
||||
|
||||
```sh title="CLI command example"
|
||||
|
||||
oint dropbox GetTagList --token %token% --paths %paths%
|
||||
|
||||
|
||||
```
|
||||
|
||||
|
||||
```json title="Result"
|
||||
|
||||
{
|
||||
"paths_to_tags": [
|
||||
{
|
||||
"path": "/New/Dogs.mp3",
|
||||
"tags": []
|
||||
},
|
||||
{
|
||||
"path": "/New/mydoc.docx",
|
||||
"tags": [
|
||||
{
|
||||
".tag": "user_generated_tag",
|
||||
"tag_text": "important"
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
||||
|
||||
```
|
4
docs/en/md/Dropbox/Tags-managment/_category_.json
Normal file
4
docs/en/md/Dropbox/Tags-managment/_category_.json
Normal file
@ -0,0 +1,4 @@
|
||||
{
|
||||
"label": "Tags managment",
|
||||
"position": "4"
|
||||
}
|
@ -1,4 +1,4 @@
|
||||
{
|
||||
"label": "Book work",
|
||||
"label": "Books managment",
|
||||
"position": "2"
|
||||
}
|
208
docs/en/md/Google_Sheets/Books-managment/Create-book.md
Normal file
208
docs/en/md/Google_Sheets/Books-managment/Create-book.md
Normal file
@ -0,0 +1,208 @@
|
||||
---
|
||||
sidebar_position: 1
|
||||
---
|
||||
|
||||
# CreateBook
|
||||
Creates a new book
|
||||
|
||||
|
||||
*Function CreateBook(Val Token, Val Name, Val ArrayOfSheetNames) Export*
|
||||
|
||||
| Parameter | CLI option | Type | Destination |
|
||||
|-|-|-|-|
|
||||
| Token | --token | String | Token |
|
||||
| Name | --title | String | Name |
|
||||
| ArrayOfSheetNames | --sheets | Array of String | Array of names to add new sheets to the book |
|
||||
|
||||
|
||||
Returns: Map Of KeyAndValue - serialized JSON response from Google
|
||||
|
||||
```bsl title="Code example"
|
||||
|
||||
|
||||
ArrayOfSheetNames = New Array;
|
||||
ArrayOfSheetNames.Add("Sheet1");
|
||||
ArrayOfSheetNames.Add("Sheet2");
|
||||
|
||||
Name = "TestTable";
|
||||
|
||||
Response = OPI_GoogleSheets.CreateBook(Token, Name, ArrayOfSheetNames); //Map
|
||||
Response = OPI_Tools.JSONString(Response); //JSON string
|
||||
|
||||
|
||||
|
||||
```
|
||||
|
||||
```sh title="CLI command example"
|
||||
|
||||
oint gsheets CreateBook --token %token% --title "TestTable" --sheets %sheets%
|
||||
|
||||
|
||||
```
|
||||
|
||||
|
||||
```json title="Result"
|
||||
|
||||
{
|
||||
"spreadsheetId": "1Pu07Y5UiGVfW4fqfP7tcSQtdSX_2wdm2Ih23zlxJJwc",
|
||||
"properties": {
|
||||
"title": "TestTable",
|
||||
"locale": "ru_RU",
|
||||
"autoRecalc": "ON_CHANGE",
|
||||
"timeZone": "Etc/GMT",
|
||||
"defaultFormat": {
|
||||
"backgroundColor": {
|
||||
"red": 1,
|
||||
"green": 1,
|
||||
"blue": 1
|
||||
},
|
||||
"padding": {
|
||||
"top": 2,
|
||||
"right": 3,
|
||||
"bottom": 2,
|
||||
"left": 3
|
||||
},
|
||||
"verticalAlignment": "BOTTOM",
|
||||
"wrapStrategy": "OVERFLOW_CELL",
|
||||
"textFormat": {
|
||||
"foregroundColor": {},
|
||||
"fontFamily": "arial,sans,sans-serif",
|
||||
"fontSize": 10,
|
||||
"bold": false,
|
||||
"italic": false,
|
||||
"strikethrough": false,
|
||||
"underline": false,
|
||||
"foregroundColorStyle": {
|
||||
"rgbColor": {}
|
||||
}
|
||||
},
|
||||
"backgroundColorStyle": {
|
||||
"rgbColor": {
|
||||
"red": 1,
|
||||
"green": 1,
|
||||
"blue": 1
|
||||
}
|
||||
}
|
||||
},
|
||||
"spreadsheetTheme": {
|
||||
"primaryFontFamily": "Arial",
|
||||
"themeColors": [
|
||||
{
|
||||
"colorType": "TEXT",
|
||||
"color": {
|
||||
"rgbColor": {}
|
||||
}
|
||||
},
|
||||
{
|
||||
"colorType": "BACKGROUND",
|
||||
"color": {
|
||||
"rgbColor": {
|
||||
"red": 1,
|
||||
"green": 1,
|
||||
"blue": 1
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"colorType": "ACCENT1",
|
||||
"color": {
|
||||
"rgbColor": {
|
||||
"red": 0.25882354,
|
||||
"green": 0.52156866,
|
||||
"blue": 0.95686275
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"colorType": "ACCENT2",
|
||||
"color": {
|
||||
"rgbColor": {
|
||||
"red": 0.91764706,
|
||||
"green": 0.2627451,
|
||||
"blue": 0.20784314
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"colorType": "ACCENT3",
|
||||
"color": {
|
||||
"rgbColor": {
|
||||
"red": 0.9843137,
|
||||
"green": 0.7372549,
|
||||
"blue": 0.015686275
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"colorType": "ACCENT4",
|
||||
"color": {
|
||||
"rgbColor": {
|
||||
"red": 0.20392157,
|
||||
"green": 0.65882355,
|
||||
"blue": 0.3254902
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"colorType": "ACCENT5",
|
||||
"color": {
|
||||
"rgbColor": {
|
||||
"red": 1,
|
||||
"green": 0.42745098,
|
||||
"blue": 0.003921569
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"colorType": "ACCENT6",
|
||||
"color": {
|
||||
"rgbColor": {
|
||||
"red": 0.27450982,
|
||||
"green": 0.7411765,
|
||||
"blue": 0.7764706
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"colorType": "LINK",
|
||||
"color": {
|
||||
"rgbColor": {
|
||||
"red": 0.06666667,
|
||||
"green": 0.33333334,
|
||||
"blue": 0.8
|
||||
}
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
||||
},
|
||||
"sheets": [
|
||||
{
|
||||
"properties": {
|
||||
"sheetId": 1999766427,
|
||||
"title": "Sheet1",
|
||||
"index": 0,
|
||||
"sheetType": "GRID",
|
||||
"gridProperties": {
|
||||
"rowCount": 1000,
|
||||
"columnCount": 26
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"properties": {
|
||||
"sheetId": 225184494,
|
||||
"title": "Sheet2",
|
||||
"index": 1,
|
||||
"sheetType": "GRID",
|
||||
"gridProperties": {
|
||||
"rowCount": 1000,
|
||||
"columnCount": 26
|
||||
}
|
||||
}
|
||||
}
|
||||
],
|
||||
"spreadsheetUrl": "https://docs.google.com/spreadsheets/d/1Pu07Y5UiGVfW4fqfP7tcSQtdSX_2wdm2Ih23zlxJJwc/edit"
|
||||
}
|
||||
|
||||
```
|
50
docs/en/md/Google_Sheets/Books-managment/Edit-book-title.md
Normal file
50
docs/en/md/Google_Sheets/Books-managment/Edit-book-title.md
Normal file
@ -0,0 +1,50 @@
|
||||
---
|
||||
sidebar_position: 3
|
||||
---
|
||||
|
||||
# ChangeBookName
|
||||
Changes the name of the existing book
|
||||
|
||||
|
||||
*Function EditBookTitle(Val Token, Val Book, Val Name) Export*
|
||||
|
||||
| Parameter | CLI option | Type | Destination |
|
||||
|-|-|-|-|
|
||||
| Token | --token | String | Token |
|
||||
| Book | --spreadsheet | String | BookID |
|
||||
| Name | --title | String | New name |
|
||||
|
||||
|
||||
Returns: Map Of KeyAndValue - serialized JSON response from Google
|
||||
|
||||
```bsl title="Code example"
|
||||
|
||||
|
||||
Book = "1Pu07Y5UiGVfW4fqfP7tcSQtdSX_2wdm2Ih23zlxJJwc";
|
||||
Name = "Test table (change.)";
|
||||
|
||||
Response = OPI_GoogleSheets.EditBookTitle(Token, Book, Name); //Map
|
||||
Response = OPI_Tools.JSONString(Response); //JSON string
|
||||
|
||||
|
||||
|
||||
```
|
||||
|
||||
```sh title="CLI command example"
|
||||
|
||||
oint gsheets EditBookTitle --token %token% --spreadsheet "1Pu07Y5UiGVfW4fqfP7tcSQtdSX_2wdm2Ih23zlxJJwc" --title "Test table (change.)"
|
||||
|
||||
|
||||
```
|
||||
|
||||
|
||||
```json title="Result"
|
||||
|
||||
{
|
||||
"spreadsheetId": "1Pu07Y5UiGVfW4fqfP7tcSQtdSX_2wdm2Ih23zlxJJwc",
|
||||
"replies": [
|
||||
{}
|
||||
]
|
||||
}
|
||||
|
||||
```
|
203
docs/en/md/Google_Sheets/Books-managment/Get-book.md
Normal file
203
docs/en/md/Google_Sheets/Books-managment/Get-book.md
Normal file
@ -0,0 +1,203 @@
|
||||
---
|
||||
sidebar_position: 2
|
||||
---
|
||||
|
||||
# GetBook
|
||||
Gets information about the book by ID
|
||||
|
||||
|
||||
*Function GetBook(Val Token, Val Identifier) Export*
|
||||
|
||||
| Parameter | CLI option | Type | Destination |
|
||||
|-|-|-|-|
|
||||
| Token | --token | String | Token |
|
||||
| Identifier | --spreadsheet | String | BookIdentifier |
|
||||
|
||||
|
||||
Returns: Map Of KeyAndValue - serialized JSON response from Google
|
||||
|
||||
```bsl title="Code example"
|
||||
|
||||
|
||||
Identifier = "1Pu07Y5UiGVfW4fqfP7tcSQtdSX_2wdm2Ih23zlxJJwc";
|
||||
|
||||
Response = OPI_GoogleSheets.GetBook(Token, Identifier); //Map
|
||||
Response = OPI_Tools.JSONString(Response); //JSON string
|
||||
|
||||
|
||||
|
||||
```
|
||||
|
||||
```sh title="CLI command example"
|
||||
|
||||
oint gsheets GetBook --token %token% --spreadsheet "1Pu07Y5UiGVfW4fqfP7tcSQtdSX_2wdm2Ih23zlxJJwc"
|
||||
|
||||
|
||||
```
|
||||
|
||||
|
||||
```json title="Result"
|
||||
|
||||
{
|
||||
"spreadsheetId": "1Pu07Y5UiGVfW4fqfP7tcSQtdSX_2wdm2Ih23zlxJJwc",
|
||||
"properties": {
|
||||
"title": "Test table (change.)",
|
||||
"locale": "ru_RU",
|
||||
"autoRecalc": "ON_CHANGE",
|
||||
"timeZone": "Etc/GMT",
|
||||
"defaultFormat": {
|
||||
"backgroundColor": {
|
||||
"red": 1,
|
||||
"green": 1,
|
||||
"blue": 1
|
||||
},
|
||||
"padding": {
|
||||
"top": 2,
|
||||
"right": 3,
|
||||
"bottom": 2,
|
||||
"left": 3
|
||||
},
|
||||
"verticalAlignment": "BOTTOM",
|
||||
"wrapStrategy": "OVERFLOW_CELL",
|
||||
"textFormat": {
|
||||
"foregroundColor": {},
|
||||
"fontFamily": "arial,sans,sans-serif",
|
||||
"fontSize": 10,
|
||||
"bold": false,
|
||||
"italic": false,
|
||||
"strikethrough": false,
|
||||
"underline": false,
|
||||
"foregroundColorStyle": {
|
||||
"rgbColor": {}
|
||||
}
|
||||
},
|
||||
"backgroundColorStyle": {
|
||||
"rgbColor": {
|
||||
"red": 1,
|
||||
"green": 1,
|
||||
"blue": 1
|
||||
}
|
||||
}
|
||||
},
|
||||
"spreadsheetTheme": {
|
||||
"primaryFontFamily": "Arial",
|
||||
"themeColors": [
|
||||
{
|
||||
"colorType": "TEXT",
|
||||
"color": {
|
||||
"rgbColor": {}
|
||||
}
|
||||
},
|
||||
{
|
||||
"colorType": "BACKGROUND",
|
||||
"color": {
|
||||
"rgbColor": {
|
||||
"red": 1,
|
||||
"green": 1,
|
||||
"blue": 1
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"colorType": "ACCENT1",
|
||||
"color": {
|
||||
"rgbColor": {
|
||||
"red": 0.25882354,
|
||||
"green": 0.52156866,
|
||||
"blue": 0.95686275
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"colorType": "ACCENT2",
|
||||
"color": {
|
||||
"rgbColor": {
|
||||
"red": 0.91764706,
|
||||
"green": 0.2627451,
|
||||
"blue": 0.20784314
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"colorType": "ACCENT3",
|
||||
"color": {
|
||||
"rgbColor": {
|
||||
"red": 0.9843137,
|
||||
"green": 0.7372549,
|
||||
"blue": 0.015686275
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"colorType": "ACCENT4",
|
||||
"color": {
|
||||
"rgbColor": {
|
||||
"red": 0.20392157,
|
||||
"green": 0.65882355,
|
||||
"blue": 0.3254902
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"colorType": "ACCENT5",
|
||||
"color": {
|
||||
"rgbColor": {
|
||||
"red": 1,
|
||||
"green": 0.42745098,
|
||||
"blue": 0.003921569
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"colorType": "ACCENT6",
|
||||
"color": {
|
||||
"rgbColor": {
|
||||
"red": 0.27450982,
|
||||
"green": 0.7411765,
|
||||
"blue": 0.7764706
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"colorType": "LINK",
|
||||
"color": {
|
||||
"rgbColor": {
|
||||
"red": 0.06666667,
|
||||
"green": 0.33333334,
|
||||
"blue": 0.8
|
||||
}
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
||||
},
|
||||
"sheets": [
|
||||
{
|
||||
"properties": {
|
||||
"sheetId": 1999766427,
|
||||
"title": "Sheet1",
|
||||
"index": 0,
|
||||
"sheetType": "GRID",
|
||||
"gridProperties": {
|
||||
"rowCount": 1000,
|
||||
"columnCount": 26
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"properties": {
|
||||
"sheetId": 225184494,
|
||||
"title": "Sheet2",
|
||||
"index": 1,
|
||||
"sheetType": "GRID",
|
||||
"gridProperties": {
|
||||
"rowCount": 1000,
|
||||
"columnCount": 26
|
||||
}
|
||||
}
|
||||
}
|
||||
],
|
||||
"spreadsheetUrl": "https://docs.google.com/spreadsheets/d/1Pu07Y5UiGVfW4fqfP7tcSQtdSX_2wdm2Ih23zlxJJwc/edit"
|
||||
}
|
||||
|
||||
```
|
4
docs/en/md/Google_Sheets/Books-managment/_category_.json
Normal file
4
docs/en/md/Google_Sheets/Books-managment/_category_.json
Normal file
@ -0,0 +1,4 @@
|
||||
{
|
||||
"label": "Books managment",
|
||||
"position": "2"
|
||||
}
|
58
docs/en/md/Google_Sheets/Data-managment/Clear-cells.md
Normal file
58
docs/en/md/Google_Sheets/Data-managment/Clear-cells.md
Normal file
@ -0,0 +1,58 @@
|
||||
---
|
||||
sidebar_position: 2
|
||||
---
|
||||
|
||||
# Clear cells
|
||||
Clears the value in cells
|
||||
|
||||
|
||||
*Function ClearCells(Val Token, Val Book, Val CellsArray, Val Sheet = "") Export*
|
||||
|
||||
| Parameter | CLI option | Type | Destination |
|
||||
|-|-|-|-|
|
||||
| Token | --token | String | Token |
|
||||
| Book | --spreadsheet | String | BookID |
|
||||
| CellsArray | --cells | Array of String | Array of cells like A1 to be cleared |
|
||||
| Sheet | --sheetname | String | Sheet name (first sheet by default) |
|
||||
|
||||
|
||||
Returns: Map Of KeyAndValue - serialized JSON response from Google
|
||||
|
||||
```bsl title="Code example"
|
||||
|
||||
|
||||
CellsArray = New Array;
|
||||
CellsArray.Add("B2");
|
||||
CellsArray.Add("A3");
|
||||
CellsArray.Add("B4");
|
||||
|
||||
Book = "1Pu07Y5UiGVfW4fqfP7tcSQtdSX_2wdm2Ih23zlxJJwc";
|
||||
Sheet = "Sheet2";
|
||||
|
||||
Response = OPI_GoogleSheets.ClearCells(Token, Book, CellsArray, Sheet); //Map
|
||||
Response = OPI_Tools.JSONString(Response); //JSON string
|
||||
|
||||
|
||||
|
||||
```
|
||||
|
||||
```sh title="CLI command example"
|
||||
|
||||
oint gsheets ClearCells --token %token% --spreadsheet "1Pu07Y5UiGVfW4fqfP7tcSQtdSX_2wdm2Ih23zlxJJwc" --cells %cells% --sheetname "Sheet2"
|
||||
|
||||
|
||||
```
|
||||
|
||||
|
||||
```json title="Result"
|
||||
|
||||
{
|
||||
"spreadsheetId": "1Pu07Y5UiGVfW4fqfP7tcSQtdSX_2wdm2Ih23zlxJJwc",
|
||||
"clearedRanges": [
|
||||
"'Sheet2'!B2",
|
||||
"'Sheet2'!A3",
|
||||
"'Sheet2'!B4"
|
||||
]
|
||||
}
|
||||
|
||||
```
|
82
docs/en/md/Google_Sheets/Data-managment/Get-cell-values.md
Normal file
82
docs/en/md/Google_Sheets/Data-managment/Get-cell-values.md
Normal file
@ -0,0 +1,82 @@
|
||||
---
|
||||
sidebar_position: 3
|
||||
---
|
||||
|
||||
# Get cell values
|
||||
Gets cell values of the table
|
||||
|
||||
|
||||
*Function GetCellValues(Val Token, Val Book, Val CellsArray = "", Val Sheet = "") Export*
|
||||
|
||||
| Parameter | CLI option | Type | Destination |
|
||||
|-|-|-|-|
|
||||
| Token | --token | String | Token |
|
||||
| Book | --spreadsheet | String | BookID |
|
||||
| CellsArray | --cells | Array of String | Array of A1-type cells to get (whole sheet if not filled) |
|
||||
| Sheet | --sheetname | String | Sheet name (first sheet by default) |
|
||||
|
||||
|
||||
Returns: Map Of KeyAndValue - serialized JSON response from Google
|
||||
|
||||
```bsl title="Code example"
|
||||
|
||||
|
||||
CellsArray = New Array;
|
||||
CellsArray.Add("B2");
|
||||
CellsArray.Add("A3");
|
||||
CellsArray.Add("B4");
|
||||
|
||||
Book = "1Pu07Y5UiGVfW4fqfP7tcSQtdSX_2wdm2Ih23zlxJJwc";
|
||||
Sheet = "Sheet2";
|
||||
|
||||
Response = OPI_GoogleSheets.GetCellValues(Token, Book, CellsArray, Sheet); //Map
|
||||
Response = OPI_Tools.JSONString(Response); //JSON string
|
||||
|
||||
|
||||
|
||||
```
|
||||
|
||||
```sh title="CLI command example"
|
||||
|
||||
oint gsheets GetCellValues --token %token% --spreadsheet "1Pu07Y5UiGVfW4fqfP7tcSQtdSX_2wdm2Ih23zlxJJwc" --cells %cells% --sheetname "Sheet2"
|
||||
|
||||
|
||||
```
|
||||
|
||||
|
||||
```json title="Result"
|
||||
|
||||
{
|
||||
"spreadsheetId": "1Pu07Y5UiGVfW4fqfP7tcSQtdSX_2wdm2Ih23zlxJJwc",
|
||||
"valueRanges": [
|
||||
{
|
||||
"range": "'Sheet2'!B2",
|
||||
"majorDimension": "ROWS",
|
||||
"values": [
|
||||
[
|
||||
"ThisIsB2"
|
||||
]
|
||||
]
|
||||
},
|
||||
{
|
||||
"range": "'Sheet2'!A3",
|
||||
"majorDimension": "ROWS",
|
||||
"values": [
|
||||
[
|
||||
"ThisIsA3"
|
||||
]
|
||||
]
|
||||
},
|
||||
{
|
||||
"range": "'Sheet2'!B4",
|
||||
"majorDimension": "ROWS",
|
||||
"values": [
|
||||
[
|
||||
"ThisIsB4"
|
||||
]
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
||||
|
||||
```
|
121
docs/en/md/Google_Sheets/Data-managment/Set-cell-values.md
Normal file
121
docs/en/md/Google_Sheets/Data-managment/Set-cell-values.md
Normal file
@ -0,0 +1,121 @@
|
||||
---
|
||||
sidebar_position: 1
|
||||
---
|
||||
|
||||
# SetCellValues
|
||||
Sets sheet cell values
|
||||
|
||||
|
||||
*Function SetCellValues(Val Token, Val Book, Val ValueMapping, Val Sheet = "", Val MajorDimension = "COLUMNS") Export*
|
||||
|
||||
| Parameter | CLI option | Type | Destination |
|
||||
|-|-|-|-|
|
||||
| Token | --token | String | Token |
|
||||
| Book | --spreadsheet | String | BookID |
|
||||
| ValueMapping | --data | Map Of KeyAndValue | Fill data where the key is the cell name like A1 |
|
||||
| Sheet | --sheetname | String | Sheet name (first sheet by default) |
|
||||
| MajorDimension | --dim | String | Main dimension when filling the array range |
|
||||
|
||||
|
||||
Returns: Map Of KeyAndValue - serialized JSON response from Google
|
||||
|
||||
```bsl title="Code example"
|
||||
|
||||
|
||||
ValueMapping = New Map;
|
||||
ValueMapping.Insert("A1", "ThisIsA1");
|
||||
ValueMapping.Insert("A2", "ThisIsA2");
|
||||
ValueMapping.Insert("B2", "ThisIsB2");
|
||||
ValueMapping.Insert("B3", "ThisIsB3");
|
||||
ValueMapping.Insert("A3", "ThisIsA3");
|
||||
ValueMapping.Insert("A4", "ThisIsA4");
|
||||
ValueMapping.Insert("B1", "ThisIsB1");
|
||||
ValueMapping.Insert("B4", "ThisIsB4");
|
||||
|
||||
Book = "1Pu07Y5UiGVfW4fqfP7tcSQtdSX_2wdm2Ih23zlxJJwc";
|
||||
Sheet = "Sheet2";
|
||||
|
||||
Response = OPI_GoogleSheets.SetCellValues(Token, Book, ValueMapping, Sheet); //Map
|
||||
Response = OPI_Tools.JSONString(Response); //JSON string
|
||||
|
||||
|
||||
|
||||
```
|
||||
|
||||
```sh title="CLI command example"
|
||||
|
||||
oint gsheets SetCellValues --token %token% --spreadsheet "1Pu07Y5UiGVfW4fqfP7tcSQtdSX_2wdm2Ih23zlxJJwc" --data %data% --sheetname "Sheet2" --dim %dim%
|
||||
|
||||
|
||||
```
|
||||
|
||||
|
||||
```json title="Result"
|
||||
|
||||
{
|
||||
"spreadsheetId": "1Pu07Y5UiGVfW4fqfP7tcSQtdSX_2wdm2Ih23zlxJJwc",
|
||||
"totalUpdatedRows": 4,
|
||||
"totalUpdatedColumns": 2,
|
||||
"totalUpdatedCells": 8,
|
||||
"totalUpdatedSheets": 1,
|
||||
"responses": [
|
||||
{
|
||||
"spreadsheetId": "1Pu07Y5UiGVfW4fqfP7tcSQtdSX_2wdm2Ih23zlxJJwc",
|
||||
"updatedRange": "'Sheet2'!A1",
|
||||
"updatedRows": 1,
|
||||
"updatedColumns": 1,
|
||||
"updatedCells": 1
|
||||
},
|
||||
{
|
||||
"spreadsheetId": "1Pu07Y5UiGVfW4fqfP7tcSQtdSX_2wdm2Ih23zlxJJwc",
|
||||
"updatedRange": "'Sheet2'!A2",
|
||||
"updatedRows": 1,
|
||||
"updatedColumns": 1,
|
||||
"updatedCells": 1
|
||||
},
|
||||
{
|
||||
"spreadsheetId": "1Pu07Y5UiGVfW4fqfP7tcSQtdSX_2wdm2Ih23zlxJJwc",
|
||||
"updatedRange": "'Sheet2'!B2",
|
||||
"updatedRows": 1,
|
||||
"updatedColumns": 1,
|
||||
"updatedCells": 1
|
||||
},
|
||||
{
|
||||
"spreadsheetId": "1Pu07Y5UiGVfW4fqfP7tcSQtdSX_2wdm2Ih23zlxJJwc",
|
||||
"updatedRange": "'Sheet2'!B3",
|
||||
"updatedRows": 1,
|
||||
"updatedColumns": 1,
|
||||
"updatedCells": 1
|
||||
},
|
||||
{
|
||||
"spreadsheetId": "1Pu07Y5UiGVfW4fqfP7tcSQtdSX_2wdm2Ih23zlxJJwc",
|
||||
"updatedRange": "'Sheet2'!A3",
|
||||
"updatedRows": 1,
|
||||
"updatedColumns": 1,
|
||||
"updatedCells": 1
|
||||
},
|
||||
{
|
||||
"spreadsheetId": "1Pu07Y5UiGVfW4fqfP7tcSQtdSX_2wdm2Ih23zlxJJwc",
|
||||
"updatedRange": "'Sheet2'!A4",
|
||||
"updatedRows": 1,
|
||||
"updatedColumns": 1,
|
||||
"updatedCells": 1
|
||||
},
|
||||
{
|
||||
"spreadsheetId": "1Pu07Y5UiGVfW4fqfP7tcSQtdSX_2wdm2Ih23zlxJJwc",
|
||||
"updatedRange": "'Sheet2'!B1",
|
||||
"updatedRows": 1,
|
||||
"updatedColumns": 1,
|
||||
"updatedCells": 1
|
||||
},
|
||||
{
|
||||
"spreadsheetId": "1Pu07Y5UiGVfW4fqfP7tcSQtdSX_2wdm2Ih23zlxJJwc",
|
||||
"updatedRange": "'Sheet2'!B4",
|
||||
"updatedRows": 1,
|
||||
"updatedColumns": 1,
|
||||
"updatedCells": 1
|
||||
}
|
||||
]
|
||||
}
|
||||
|
||||
```
|
4
docs/en/md/Google_Sheets/Data-managment/_category_.json
Normal file
4
docs/en/md/Google_Sheets/Data-managment/_category_.json
Normal file
@ -0,0 +1,4 @@
|
||||
{
|
||||
"label": "Data managment",
|
||||
"position": "4"
|
||||
}
|
@ -1,4 +1,4 @@
|
||||
{
|
||||
"label": "Data work",
|
||||
"label": "Data managment",
|
||||
"position": "4"
|
||||
}
|
@ -1,4 +1,4 @@
|
||||
{
|
||||
"label": "Sheet work",
|
||||
"label": "Working with sheets",
|
||||
"position": "3"
|
||||
}
|
63
docs/en/md/Google_Sheets/Working-with-sheets/Add-sheet.md
Normal file
63
docs/en/md/Google_Sheets/Working-with-sheets/Add-sheet.md
Normal file
@ -0,0 +1,63 @@
|
||||
---
|
||||
sidebar_position: 1
|
||||
---
|
||||
|
||||
# AddSheet
|
||||
Adds a new sheet to the book
|
||||
|
||||
|
||||
*Function AddSheet(Val Token, Val Book, Val Name) Export*
|
||||
|
||||
| Parameter | CLI option | Type | Destination |
|
||||
|-|-|-|-|
|
||||
| Token | --token | String | Token |
|
||||
| Book | --spreadsheet | String | BookIdentifier |
|
||||
| Name | --title | String | NewSheetName |
|
||||
|
||||
|
||||
Returns: Map Of KeyAndValue - serialized JSON response from Google
|
||||
|
||||
```bsl title="Code example"
|
||||
|
||||
|
||||
Book = "1Pu07Y5UiGVfW4fqfP7tcSQtdSX_2wdm2Ih23zlxJJwc";
|
||||
Name = "TestSheet";
|
||||
|
||||
Response = OPI_GoogleSheets.AddSheet(Token, Book, Name); //Map
|
||||
Response = OPI_Tools.JSONString(Response); //JSON string
|
||||
|
||||
|
||||
|
||||
```
|
||||
|
||||
```sh title="CLI command example"
|
||||
|
||||
oint gsheets AddSheet --token %token% --spreadsheet "1Pu07Y5UiGVfW4fqfP7tcSQtdSX_2wdm2Ih23zlxJJwc" --title "TestSheet"
|
||||
|
||||
|
||||
```
|
||||
|
||||
|
||||
```json title="Result"
|
||||
|
||||
{
|
||||
"spreadsheetId": "1Pu07Y5UiGVfW4fqfP7tcSQtdSX_2wdm2Ih23zlxJJwc",
|
||||
"replies": [
|
||||
{
|
||||
"addSheet": {
|
||||
"properties": {
|
||||
"sheetId": 321892522,
|
||||
"title": "TestSheet",
|
||||
"index": 2,
|
||||
"sheetType": "GRID",
|
||||
"gridProperties": {
|
||||
"rowCount": 1000,
|
||||
"columnCount": 26
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
||||
|
||||
```
|
56
docs/en/md/Google_Sheets/Working-with-sheets/Copy-sheet.md
Normal file
56
docs/en/md/Google_Sheets/Working-with-sheets/Copy-sheet.md
Normal file
@ -0,0 +1,56 @@
|
||||
---
|
||||
sidebar_position: 3
|
||||
---
|
||||
|
||||
# CopySheet
|
||||
Copies a sheet from one book to another
|
||||
|
||||
|
||||
*Function CopySheet(Val Token, Val From, Val Target, Val Sheet) Export*
|
||||
|
||||
| Parameter | CLI option | Type | Destination |
|
||||
|-|-|-|-|
|
||||
| Token | --token | String | Token |
|
||||
| From | --from | String | SourceBookID |
|
||||
| Target | --to | String | DestinationBookID |
|
||||
| Sheet | --sheet | String | CopiedSheetID |
|
||||
|
||||
|
||||
Returns: Map Of KeyAndValue - serialized JSON response from Google
|
||||
|
||||
```bsl title="Code example"
|
||||
|
||||
|
||||
From = "1Pu07Y5UiGVfW4fqfP7tcSQtdSX_2wdm2Ih23zlxJJwc";
|
||||
Target = "1tPDQHmduH9NASRhy0I-a6--ebNNJ5A6wXhhTRcNhD7s";
|
||||
Sheet = "25093199";
|
||||
|
||||
Response = OPI_GoogleSheets.CopySheet(Token, From, Target, Sheet); //Map
|
||||
Response = OPI_Tools.JSONString(Response); //JSON string
|
||||
|
||||
|
||||
|
||||
```
|
||||
|
||||
```sh title="CLI command example"
|
||||
|
||||
oint gsheets CopySheet --token %token% --from "1Pu07Y5UiGVfW4fqfP7tcSQtdSX_2wdm2Ih23zlxJJwc" --to "1tPDQHmduH9NASRhy0I-a6--ebNNJ5A6wXhhTRcNhD7s" --sheet "25093199"
|
||||
|
||||
|
||||
```
|
||||
|
||||
|
||||
```json title="Result"
|
||||
|
||||
{
|
||||
"sheetId": 1790807910,
|
||||
"title": "Sheet2 (copy)",
|
||||
"index": 2,
|
||||
"sheetType": "GRID",
|
||||
"gridProperties": {
|
||||
"rowCount": 1000,
|
||||
"columnCount": 26
|
||||
}
|
||||
}
|
||||
|
||||
```
|
50
docs/en/md/Google_Sheets/Working-with-sheets/Delete-sheet.md
Normal file
50
docs/en/md/Google_Sheets/Working-with-sheets/Delete-sheet.md
Normal file
@ -0,0 +1,50 @@
|
||||
---
|
||||
sidebar_position: 2
|
||||
---
|
||||
|
||||
# DeleteSheet
|
||||
Deletes a sheet from the book
|
||||
|
||||
|
||||
*Function DeleteSheet(Val Token, Val Book, Val Sheet) Export*
|
||||
|
||||
| Parameter | CLI option | Type | Destination |
|
||||
|-|-|-|-|
|
||||
| Token | --token | String | Token |
|
||||
| Book | --spreadsheet | String | BookIdentifier |
|
||||
| Sheet | --sheet | String | IdentifierOfSheetToDelete |
|
||||
|
||||
|
||||
Returns: Map Of KeyAndValue - serialized JSON response from Google
|
||||
|
||||
```bsl title="Code example"
|
||||
|
||||
|
||||
Book = "1Pu07Y5UiGVfW4fqfP7tcSQtdSX_2wdm2Ih23zlxJJwc";
|
||||
Sheet = "1790807910";
|
||||
|
||||
Response = OPI_GoogleSheets.DeleteSheet(Token, Book, Sheet); //Map
|
||||
Response = OPI_Tools.JSONString(Response); //JSON string
|
||||
|
||||
|
||||
|
||||
```
|
||||
|
||||
```sh title="CLI command example"
|
||||
|
||||
oint gsheets DeleteSheet --token %token% --spreadsheet "1Pu07Y5UiGVfW4fqfP7tcSQtdSX_2wdm2Ih23zlxJJwc" --sheet "1790807910"
|
||||
|
||||
|
||||
```
|
||||
|
||||
|
||||
```json title="Result"
|
||||
|
||||
{
|
||||
"spreadsheetId": "1Pu07Y5UiGVfW4fqfP7tcSQtdSX_2wdm2Ih23zlxJJwc",
|
||||
"replies": [
|
||||
{}
|
||||
]
|
||||
}
|
||||
|
||||
```
|
@ -0,0 +1,4 @@
|
||||
{
|
||||
"label": "Working with sheets",
|
||||
"position": "3"
|
||||
}
|
@ -1,4 +1,4 @@
|
||||
{
|
||||
"label": "Deleted files management",
|
||||
"label": "External files management",
|
||||
"position": "7"
|
||||
}
|
@ -0,0 +1,82 @@
|
||||
---
|
||||
sidebar_position: 3
|
||||
---
|
||||
|
||||
# Add external file
|
||||
Adds a new external file
|
||||
|
||||
|
||||
*Function AddExternalFile(Val Token, Val URL, Val Title) Export*
|
||||
|
||||
| Parameter | CLI option | Type | Destination |
|
||||
|-|-|-|-|
|
||||
| Token | --token | String | Bot token |
|
||||
| URL | --url | String | URL to external file |
|
||||
| Title | --title | String | File title for Slack |
|
||||
|
||||
|
||||
Returns: Map Of KeyAndValue - Serialized JSON response from Slack
|
||||
|
||||
```bsl title="Code example"
|
||||
|
||||
|
||||
URL = https://opi.neocities.org/test_data/document.docx;
|
||||
Title = "NewFile";
|
||||
|
||||
Response = OPI_Slack.AddExternalFile(Token, URL, Title); //Map
|
||||
Response = OPI_Tools.JSONString(Response); //JSON string
|
||||
|
||||
|
||||
|
||||
```
|
||||
|
||||
```sh title="CLI command example"
|
||||
|
||||
oint slack AddExternalFile --token %token% --url "https://opi.neocities.org/test_data/document.docx" --title %title%
|
||||
|
||||
|
||||
```
|
||||
|
||||
|
||||
```json title="Result"
|
||||
|
||||
{
|
||||
"ok": true,
|
||||
"file": {
|
||||
"id": "F070P52CU94",
|
||||
"created": 1714146552,
|
||||
"timestamp": 1714146552,
|
||||
"name": "Novyj_fajl",
|
||||
"title": "NewFile",
|
||||
"mimetype": "application/vnd.slack-remote",
|
||||
"filetype": "remote",
|
||||
"pretty_type": "Remote",
|
||||
"user": "U06UG1CAYH2",
|
||||
"user_team": "T06UD92BS3C",
|
||||
"editable": false,
|
||||
"size": 0,
|
||||
"mode": "external",
|
||||
"is_external": true,
|
||||
"external_type": "app",
|
||||
"is_public": false,
|
||||
"public_url_shared": false,
|
||||
"display_as_bot": false,
|
||||
"username": "",
|
||||
"url_private": "https://slack.com/api/files.remote.add",
|
||||
"media_display_type": "unknown",
|
||||
"permalink": "https://openintegrationsgroup.slack.com/files/U06UG1CAYH2/F070P52CU94/novyj_fajl",
|
||||
"comments_count": 0,
|
||||
"is_starred": false,
|
||||
"shares": {},
|
||||
"channels": [],
|
||||
"groups": [],
|
||||
"ims": [],
|
||||
"has_more_shares": false,
|
||||
"external_id": "d2a110a2-08eb-4f20-989f-8943f0816420",
|
||||
"external_url": "https://slack.com/api/files.remote.add",
|
||||
"has_rich_preview": false,
|
||||
"file_access": "visible"
|
||||
}
|
||||
}
|
||||
|
||||
```
|
@ -0,0 +1,45 @@
|
||||
---
|
||||
sidebar_position: 5
|
||||
---
|
||||
|
||||
# Delete external file
|
||||
Deletes an external file from Slack
|
||||
|
||||
|
||||
*Function DeleteExternalFile(Val Token, Val FileID) Export*
|
||||
|
||||
| Parameter | CLI option | Type | Destination |
|
||||
|-|-|-|-|
|
||||
| Token | --token | String | Bot token |
|
||||
| FileID | --fileid | String | File identifier |
|
||||
|
||||
|
||||
Returns: Map Of KeyAndValue - Serialized JSON response from Slack
|
||||
|
||||
```bsl title="Code example"
|
||||
|
||||
|
||||
FileID = "F070P52CU94";
|
||||
|
||||
Response = OPI_Slack.DeleteExternalFile(Token, FileID); //Map
|
||||
Response = OPI_Tools.JSONString(Response); //JSON string
|
||||
|
||||
|
||||
|
||||
```
|
||||
|
||||
```sh title="CLI command example"
|
||||
|
||||
oint slack DeleteExternalFile --token %token% --fileid "F070P52CU94"
|
||||
|
||||
|
||||
```
|
||||
|
||||
|
||||
```json title="Result"
|
||||
|
||||
{
|
||||
"ok": true
|
||||
}
|
||||
|
||||
```
|
@ -0,0 +1,50 @@
|
||||
---
|
||||
sidebar_position: 1
|
||||
---
|
||||
|
||||
# Get list of external files
|
||||
Gets a list of external files of a user or channel
|
||||
|
||||
|
||||
*Function GetExternalFileList(Val Token, Val Channel = "", Val Cursor = "") Export*
|
||||
|
||||
| Parameter | CLI option | Type | Destination |
|
||||
|-|-|-|-|
|
||||
| Token | --token | String | Bot token |
|
||||
| Channel | --channel | String | Channel for selection |
|
||||
| Cursor | --cursor | String | Pointer from the previous request, if the result rows > 100 |
|
||||
|
||||
|
||||
Returns: Map Of KeyAndValue - Serialized JSON response from Slack
|
||||
|
||||
```bsl title="Code example"
|
||||
|
||||
|
||||
Channel = "C070VPMKN8J";
|
||||
|
||||
Response = OPI_Slack.GetExternalFileList(Token, Channel); //Map
|
||||
Response = OPI_Tools.JSONString(Response); //JSON string
|
||||
|
||||
|
||||
|
||||
```
|
||||
|
||||
```sh title="CLI command example"
|
||||
|
||||
oint slack GetExternalFileList --token %token% --channel "C070VPMKN8J" --cursor %cursor%
|
||||
|
||||
|
||||
```
|
||||
|
||||
|
||||
```json title="Result"
|
||||
|
||||
{
|
||||
"ok": true,
|
||||
"files": [],
|
||||
"response_metadata": {
|
||||
"next_cursor": ""
|
||||
}
|
||||
}
|
||||
|
||||
```
|
@ -0,0 +1,80 @@
|
||||
---
|
||||
sidebar_position: 2
|
||||
---
|
||||
|
||||
# Get external file
|
||||
Gets information about the external file
|
||||
|
||||
|
||||
*Function GetExternalFile(Val Token, Val FileID) Export*
|
||||
|
||||
| Parameter | CLI option | Type | Destination |
|
||||
|-|-|-|-|
|
||||
| Token | --token | String | Bot token |
|
||||
| FileID | --fileid | String | File identifier |
|
||||
|
||||
|
||||
Returns: Map Of KeyAndValue - Serialized JSON response from Slack
|
||||
|
||||
```bsl title="Code example"
|
||||
|
||||
|
||||
FileID = "F070P52CU94";
|
||||
|
||||
Response = OPI_Slack.GetExternalFile(Token, FileID); //Map
|
||||
Response = OPI_Tools.JSONString(Response); //JSON string
|
||||
|
||||
|
||||
|
||||
```
|
||||
|
||||
```sh title="CLI command example"
|
||||
|
||||
oint slack GetExternalFile --token %token% --fileid "F070P52CU94"
|
||||
|
||||
|
||||
```
|
||||
|
||||
|
||||
```json title="Result"
|
||||
|
||||
{
|
||||
"ok": true,
|
||||
"file": {
|
||||
"id": "F070P52CU94",
|
||||
"created": 1714146552,
|
||||
"timestamp": 1714146552,
|
||||
"name": "Novyj_fajl",
|
||||
"title": "NewFile",
|
||||
"mimetype": "application/vnd.slack-remote",
|
||||
"filetype": "remote",
|
||||
"pretty_type": "Remote",
|
||||
"user": "U06UG1CAYH2",
|
||||
"user_team": "T06UD92BS3C",
|
||||
"editable": false,
|
||||
"size": 0,
|
||||
"mode": "external",
|
||||
"is_external": true,
|
||||
"external_type": "app",
|
||||
"is_public": false,
|
||||
"public_url_shared": false,
|
||||
"display_as_bot": false,
|
||||
"username": "",
|
||||
"url_private": "https://slack.com/api/files.remote.add",
|
||||
"media_display_type": "unknown",
|
||||
"permalink": "https://openintegrationsgroup.slack.com/files/U06UG1CAYH2/F070P52CU94/novyj_fajl",
|
||||
"comments_count": 0,
|
||||
"is_starred": false,
|
||||
"shares": {},
|
||||
"channels": [],
|
||||
"groups": [],
|
||||
"ims": [],
|
||||
"has_more_shares": false,
|
||||
"external_id": "d2a110a2-08eb-4f20-989f-8943f0816420",
|
||||
"external_url": "https://slack.com/api/files.remote.add",
|
||||
"has_rich_preview": false,
|
||||
"file_access": "visible"
|
||||
}
|
||||
}
|
||||
|
||||
```
|
@ -0,0 +1,99 @@
|
||||
---
|
||||
sidebar_position: 4
|
||||
---
|
||||
|
||||
# Send external file
|
||||
Sends an external file to a list of channels
|
||||
|
||||
|
||||
*Function SendExternalFile(Val Token, Val FileID, Val ChannelArray) Export*
|
||||
|
||||
| Parameter | CLI option | Type | Destination |
|
||||
|-|-|-|-|
|
||||
| Token | --token | String | Bot token |
|
||||
| FileID | --fileid | String | File identifier |
|
||||
| ChannelArray | --channels | Array Of String | Array of channels for sending |
|
||||
|
||||
|
||||
Returns: Map Of KeyAndValue - Serialized JSON response from Slack
|
||||
|
||||
```bsl title="Code example"
|
||||
|
||||
|
||||
Channel = "C070VPMKN8J";
|
||||
FileID = "F070P52CU94";
|
||||
|
||||
Response = OPI_Slack.SendExternalFile(Token, FileID, Channel); //Map
|
||||
Response = OPI_Tools.JSONString(Response); //JSON string
|
||||
|
||||
|
||||
|
||||
```
|
||||
|
||||
```sh title="CLI command example"
|
||||
|
||||
oint slack SendExternalFile --token %token% --fileid "F070P52CU94" --channels %channels%
|
||||
|
||||
|
||||
```
|
||||
|
||||
|
||||
```json title="Result"
|
||||
|
||||
{
|
||||
"ok": true,
|
||||
"file": {
|
||||
"id": "F070P52CU94",
|
||||
"created": 1714146552,
|
||||
"timestamp": 1714146552,
|
||||
"name": "Novyj_fajl",
|
||||
"title": "NewFile",
|
||||
"mimetype": "application/vnd.slack-remote",
|
||||
"filetype": "remote",
|
||||
"pretty_type": "Remote",
|
||||
"user": "U06UG1CAYH2",
|
||||
"user_team": "T06UD92BS3C",
|
||||
"editable": false,
|
||||
"size": 0,
|
||||
"mode": "external",
|
||||
"is_external": true,
|
||||
"external_type": "app",
|
||||
"is_public": true,
|
||||
"public_url_shared": false,
|
||||
"display_as_bot": false,
|
||||
"username": "",
|
||||
"url_private": "https://slack.com/api/files.remote.add",
|
||||
"media_display_type": "unknown",
|
||||
"permalink": "https://openintegrationsgroup.slack.com/files/U06UG1CAYH2/F070P52CU94/novyj_fajl",
|
||||
"comments_count": 0,
|
||||
"is_starred": false,
|
||||
"shares": {
|
||||
"public": {
|
||||
"C06UFNUTKUL": [
|
||||
{
|
||||
"reply_users": [],
|
||||
"reply_users_count": 0,
|
||||
"reply_count": 0,
|
||||
"ts": "1714146553.217059",
|
||||
"channel_name": "slack-api-librarry",
|
||||
"team_id": "T06UD92BS3C",
|
||||
"share_user_id": "U06UG1CAYH2",
|
||||
"source": "UNKNOWN"
|
||||
}
|
||||
]
|
||||
}
|
||||
},
|
||||
"channels": [
|
||||
"C06UFNUTKUL"
|
||||
],
|
||||
"groups": [],
|
||||
"ims": [],
|
||||
"has_more_shares": false,
|
||||
"external_id": "d2a110a2-08eb-4f20-989f-8943f0816420",
|
||||
"external_url": "https://slack.com/api/files.remote.add",
|
||||
"has_rich_preview": false,
|
||||
"file_access": "visible"
|
||||
}
|
||||
}
|
||||
|
||||
```
|
@ -0,0 +1,4 @@
|
||||
{
|
||||
"label": "External files management",
|
||||
"position": "7"
|
||||
}
|
45
docs/en/md/Slack/File-managment/Delete-file.md
Normal file
45
docs/en/md/Slack/File-managment/Delete-file.md
Normal file
@ -0,0 +1,45 @@
|
||||
---
|
||||
sidebar_position: 4
|
||||
---
|
||||
|
||||
# Delete file
|
||||
Deletes a file on Slack
|
||||
|
||||
|
||||
*Function DeleteFile(Val Token, Val FileID) Export*
|
||||
|
||||
| Parameter | CLI option | Type | Destination |
|
||||
|-|-|-|-|
|
||||
| Token | --token | String | Bot token |
|
||||
| FileID | --fileid | String | File identifier |
|
||||
|
||||
|
||||
Returns: Map Of KeyAndValue - Serialized JSON response from Slack
|
||||
|
||||
```bsl title="Code example"
|
||||
|
||||
|
||||
FileID = "F070VL6FQFM";
|
||||
|
||||
Response = OPI_Slack.DeleteFile(Token, FileID); //Map
|
||||
Response = OPI_Tools.JSONString(Response);//JSON string
|
||||
|
||||
|
||||
|
||||
```
|
||||
|
||||
```sh title="CLI command example"
|
||||
|
||||
oint slack DeleteFile --token %token% --fileid "F070VL6FQFM"
|
||||
|
||||
|
||||
```
|
||||
|
||||
|
||||
```json title="Result"
|
||||
|
||||
{
|
||||
"ok": true
|
||||
}
|
||||
|
||||
```
|
84
docs/en/md/Slack/File-managment/Get-file-data.md
Normal file
84
docs/en/md/Slack/File-managment/Get-file-data.md
Normal file
@ -0,0 +1,84 @@
|
||||
---
|
||||
sidebar_position: 3
|
||||
---
|
||||
|
||||
# Get file data
|
||||
Gets information about the file
|
||||
|
||||
|
||||
*Function GetFileData(Val Token, Val FileID) Export*
|
||||
|
||||
| Parameter | CLI option | Type | Destination |
|
||||
|-|-|-|-|
|
||||
| Token | --token | String | Bot token |
|
||||
| FileID | --fileid | String | File identifier |
|
||||
|
||||
|
||||
Returns: Map Of KeyAndValue - Serialized JSON response from Slack
|
||||
|
||||
```bsl title="Code example"
|
||||
|
||||
|
||||
FileID = "F070VL6FQFM";
|
||||
|
||||
Response = OPI_Slack.GetFileData(Token, FileID); //Map
|
||||
Response = OPI_Tools.JSONString(Response); //JSON string
|
||||
|
||||
|
||||
|
||||
```
|
||||
|
||||
```sh title="CLI command example"
|
||||
|
||||
oint slack GetFileData --token %token% --fileid "F070VL6FQFM"
|
||||
|
||||
|
||||
```
|
||||
|
||||
|
||||
```json title="Result"
|
||||
|
||||
{
|
||||
"ok": true,
|
||||
"file": {
|
||||
"id": "F070VL6FQFM",
|
||||
"created": 1714146550,
|
||||
"timestamp": 1714146550,
|
||||
"name": "megadoc.docx",
|
||||
"title": "NewFile",
|
||||
"mimetype": "",
|
||||
"filetype": "",
|
||||
"pretty_type": "",
|
||||
"user": "U06UG1CAYH2",
|
||||
"user_team": "T06UD92BS3C",
|
||||
"editable": false,
|
||||
"size": 24069,
|
||||
"mode": "hosted",
|
||||
"is_external": false,
|
||||
"external_type": "",
|
||||
"is_public": false,
|
||||
"public_url_shared": false,
|
||||
"display_as_bot": false,
|
||||
"username": "",
|
||||
"url_private": "https://files.slack.com/files-pri/T06UD92BS3C-F070VL6FQFM/megadoc.docx",
|
||||
"url_private_download": "https://files.slack.com/files-pri/T06UD92BS3C-F070VL6FQFM/download/megadoc.docx",
|
||||
"media_display_type": "unknown",
|
||||
"permalink": "https://openintegrationsgroup.slack.com/files/U06UG1CAYH2/F070VL6FQFM/megadoc.docx",
|
||||
"permalink_public": "https://slack-files.com/T06UD92BS3C-F070VL6FQFM-9fb2618d36",
|
||||
"is_starred": false,
|
||||
"shares": {},
|
||||
"channels": [],
|
||||
"groups": [],
|
||||
"ims": [],
|
||||
"has_more_shares": false,
|
||||
"has_rich_preview": false,
|
||||
"file_access": "visible",
|
||||
"comments_count": 0
|
||||
},
|
||||
"comments": [],
|
||||
"response_metadata": {
|
||||
"next_cursor": ""
|
||||
}
|
||||
}
|
||||
|
||||
```
|
84
docs/en/md/Slack/File-managment/Get-files-list.md
Normal file
84
docs/en/md/Slack/File-managment/Get-files-list.md
Normal file
@ -0,0 +1,84 @@
|
||||
---
|
||||
sidebar_position: 1
|
||||
---
|
||||
|
||||
# Get list of files
|
||||
Gets a list of files of the bot or channel
|
||||
|
||||
|
||||
*Function GetFilesList(Val Token, Val Channel = "", Val PageNumber = 1) Export*
|
||||
|
||||
| Parameter | CLI option | Type | Destination |
|
||||
|-|-|-|-|
|
||||
| Token | --token | String | Bot token |
|
||||
| Channel | --channel | String | Channel for selection |
|
||||
| PageNumber | --page | Number, String | Page number |
|
||||
|
||||
|
||||
Returns: Map Of KeyAndValue - Serialized JSON response from Slack
|
||||
|
||||
```bsl title="Code example"
|
||||
|
||||
|
||||
PageNumber = 1;
|
||||
Channel = "C123456";
|
||||
|
||||
Response = OPI_Slack.GetFilesList(Token, Channel, PageNumber); //Map
|
||||
Response = OPI_Tools.JSONString(Response); //JSON string
|
||||
|
||||
|
||||
|
||||
```
|
||||
|
||||
```sh title="CLI command example"
|
||||
|
||||
oint slack GetFilesList --token %token% --channel "C123456" --page "1"
|
||||
|
||||
|
||||
```
|
||||
|
||||
|
||||
```json title="Result"
|
||||
|
||||
{
|
||||
"ok": true,
|
||||
"files": [
|
||||
{
|
||||
"id": "F070V4U7Y4R",
|
||||
"created": 1713978714,
|
||||
"timestamp": 1713978714,
|
||||
"name": "megadoc.docx",
|
||||
"title": "NewFile",
|
||||
"mimetype": "application/vnd.openxmlformats-officedocument.wordprocessingml.document",
|
||||
"filetype": "docx",
|
||||
"pretty_type": "Word Document",
|
||||
"user": "U06UG1CAYH2",
|
||||
"user_team": "T06UD92BS3C",
|
||||
"editable": false,
|
||||
"size": 24069,
|
||||
"mode": "hosted",
|
||||
"is_external": false,
|
||||
"external_type": "",
|
||||
"is_public": true,
|
||||
"public_url_shared": false,
|
||||
"display_as_bot": false,
|
||||
"username": "",
|
||||
"url_private": "https://files.slack.com/files-pri/T06UD92BS3C-F070V4U7Y4R/megadoc.docx",
|
||||
"url_private_download": "https://files.slack.com/files-pri/T06UD92BS3C-F070V4U7Y4R/download/megadoc.docx",
|
||||
"media_display_type": "unknown",
|
||||
"converted_pdf": "https://files.slack.com/files-tmb/T06UD92BS3C-F070V4U7Y4R-417b34221e/megadoc_converted.pdf",
|
||||
"thumb_pdf": "https://files.slack.com/files-tmb/T06UD92BS3C-F070V4U7Y4R-417b34221e/megadoc_thumb_pdf.png",
|
||||
"thumb_pdf_w": 909,
|
||||
"thumb_pdf_h": 1286,
|
||||
"permalink": "https://openintegrationsgroup.slack.com/files/U06UG1CAYH2/F070V4U7Y4R/megadoc.docx",
|
||||
"channels": [
|
||||
"C06UFNUTKUL"
|
||||
],
|
||||
"groups": [],
|
||||
"ims": [],
|
||||
"comments_count": 0
|
||||
}
|
||||
]
|
||||
}
|
||||
|
||||
```
|
37
docs/en/md/Slack/File-managment/Make-file-private.md
Normal file
37
docs/en/md/Slack/File-managment/Make-file-private.md
Normal file
@ -0,0 +1,37 @@
|
||||
---
|
||||
sidebar_position: 6
|
||||
---
|
||||
|
||||
# Make file private
|
||||
Removes the public URL from the file. Requires user token
|
||||
|
||||
|
||||
*Function MakeFilePrivate(Val Token, Val FileID) Export*
|
||||
|
||||
| Parameter | CLI option | Type | Destination |
|
||||
|-|-|-|-|
|
||||
| Token | --token | String | User token |
|
||||
| FileID | --fileid | String | File identifier |
|
||||
|
||||
|
||||
Returns: Map Of KeyAndValue - Serialized JSON response from Slack
|
||||
|
||||
```bsl title="Code example"
|
||||
|
||||
|
||||
|
||||
```
|
||||
|
||||
```sh title="CLI command example"
|
||||
|
||||
oint slack MakeFilePrivate --token %token% --fileid %fileid%
|
||||
|
||||
|
||||
```
|
||||
|
||||
|
||||
```json title="Result"
|
||||
|
||||
|
||||
|
||||
```
|
37
docs/en/md/Slack/File-managment/Make-file-public.md
Normal file
37
docs/en/md/Slack/File-managment/Make-file-public.md
Normal file
@ -0,0 +1,37 @@
|
||||
---
|
||||
sidebar_position: 5
|
||||
---
|
||||
|
||||
# Make file public
|
||||
Creates a public URL for the file. Requires user token
|
||||
|
||||
|
||||
*Function MakeFilePublic(Val Token, Val FileID) Export*
|
||||
|
||||
| Parameter | CLI option | Type | Destination |
|
||||
|-|-|-|-|
|
||||
| Token | --token | String | User token |
|
||||
| FileID | --fileid | String | File identifier |
|
||||
|
||||
|
||||
Returns: Map Of KeyAndValue - Serialized JSON response from Slack
|
||||
|
||||
```bsl title="Code example"
|
||||
|
||||
|
||||
|
||||
```
|
||||
|
||||
```sh title="CLI command example"
|
||||
|
||||
oint slack MakeFilePublic --token %token% --fileid %fileid%
|
||||
|
||||
|
||||
```
|
||||
|
||||
|
||||
```json title="Result"
|
||||
|
||||
|
||||
|
||||
```
|
88
docs/en/md/Slack/File-managment/Upload-file.md
Normal file
88
docs/en/md/Slack/File-managment/Upload-file.md
Normal file
@ -0,0 +1,88 @@
|
||||
---
|
||||
sidebar_position: 2
|
||||
---
|
||||
|
||||
# Upload file
|
||||
Uploads a file to Slack servers
|
||||
|
||||
|
||||
*Function UploadFile(Val Token, Val File, Val FileName, Val Title, Val Channel = "") Export*
|
||||
|
||||
| Parameter | CLI option | Type | Destination |
|
||||
|-|-|-|-|
|
||||
| Token | --token | String | Bot token |
|
||||
| File | --file | String, BinaryData | File for upload |
|
||||
| FileName | --filename | String | File name with extension |
|
||||
| Title | --title | String | File name in Slack |
|
||||
| Channel | --channel | String | Channel ID |
|
||||
|
||||
|
||||
Returns: Map Of KeyAndValue - Serialized JSON response from Slack
|
||||
|
||||
```bsl title="Code example"
|
||||
|
||||
|
||||
FileName = "megadoc.docx";
|
||||
File = New BinaryData("D:\" + FileName);
|
||||
Title = "NewFile";
|
||||
Channel = "C123456";
|
||||
|
||||
Response = OPI_Slack.UploadFile(Token, File, FileName, Title, Channel); //Map
|
||||
Response = OPI_Tools.JSONString(Response);//JSON string
|
||||
|
||||
|
||||
|
||||
```
|
||||
|
||||
```sh title="CLI command example"
|
||||
|
||||
oint slack UploadFile --token %token% --file %file% --filename "megadoc.docx" --title %title% --channel "C123456"
|
||||
|
||||
|
||||
```
|
||||
|
||||
|
||||
```json title="Result"
|
||||
|
||||
{
|
||||
"ok": true,
|
||||
"files": [
|
||||
{
|
||||
"id": "F070SS4UHNZ",
|
||||
"created": 1714146549,
|
||||
"timestamp": 1714146549,
|
||||
"name": "megadoc.docx",
|
||||
"title": "NewFile",
|
||||
"mimetype": "",
|
||||
"filetype": "",
|
||||
"pretty_type": "",
|
||||
"user": "U06UG1CAYH2",
|
||||
"user_team": "T06UD92BS3C",
|
||||
"editable": false,
|
||||
"size": 24069,
|
||||
"mode": "hosted",
|
||||
"is_external": false,
|
||||
"external_type": "",
|
||||
"is_public": false,
|
||||
"public_url_shared": false,
|
||||
"display_as_bot": false,
|
||||
"username": "",
|
||||
"url_private": "https://files.slack.com/files-pri/T06UD92BS3C-F070SS4UHNZ/megadoc.docx",
|
||||
"url_private_download": "https://files.slack.com/files-pri/T06UD92BS3C-F070SS4UHNZ/download/megadoc.docx",
|
||||
"media_display_type": "unknown",
|
||||
"permalink": "https://openintegrationsgroup.slack.com/files/U06UG1CAYH2/F070SS4UHNZ/megadoc.docx",
|
||||
"permalink_public": "https://slack-files.com/T06UD92BS3C-F070SS4UHNZ-e68bef4a91",
|
||||
"comments_count": 0,
|
||||
"is_starred": false,
|
||||
"shares": {},
|
||||
"channels": [],
|
||||
"groups": [],
|
||||
"ims": [],
|
||||
"has_more_shares": false,
|
||||
"has_rich_preview": false,
|
||||
"file_access": "visible"
|
||||
}
|
||||
]
|
||||
}
|
||||
|
||||
```
|
4
docs/en/md/Slack/File-managment/_category_.json
Normal file
4
docs/en/md/Slack/File-managment/_category_.json
Normal file
@ -0,0 +1,4 @@
|
||||
{
|
||||
"label": "File managment",
|
||||
"position": "6"
|
||||
}
|
@ -1,4 +1,4 @@
|
||||
{
|
||||
"label": "File work",
|
||||
"label": "File managment",
|
||||
"position": "6"
|
||||
}
|
59
docs/en/md/VK/Community-managment/Create-album.md
Normal file
59
docs/en/md/VK/Community-managment/Create-album.md
Normal file
@ -0,0 +1,59 @@
|
||||
---
|
||||
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
|
||||
}
|
||||
}
|
||||
|
||||
```
|
68
docs/en/md/VK/Community-managment/Create-composite-post.md
Normal file
68
docs/en/md/VK/Community-managment/Create-composite-post.md
Normal file
@ -0,0 +1,68 @@
|
||||
---
|
||||
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
|
||||
}
|
||||
}
|
||||
|
||||
```
|
52
docs/en/md/VK/Community-managment/Create-poll.md
Normal file
52
docs/en/md/VK/Community-managment/Create-poll.md
Normal file
@ -0,0 +1,52 @@
|
||||
---
|
||||
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
|
||||
}
|
||||
}
|
||||
|
||||
```
|
60
docs/en/md/VK/Community-managment/Create-post.md
Normal file
60
docs/en/md/VK/Community-managment/Create-post.md
Normal file
@ -0,0 +1,60 @@
|
||||
---
|
||||
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
|
||||
}
|
||||
}
|
||||
|
||||
```
|
140
docs/en/md/VK/Community-managment/Create-story.md
Normal file
140
docs/en/md/VK/Community-managment/Create-story.md
Normal file
@ -0,0 +1,140 @@
|
||||
---
|
||||
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
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
|
||||
```
|
43
docs/en/md/VK/Community-managment/Delete-album.md
Normal file
43
docs/en/md/VK/Community-managment/Delete-album.md
Normal file
@ -0,0 +1,43 @@
|
||||
---
|
||||
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
|
||||
}
|
||||
|
||||
```
|
43
docs/en/md/VK/Community-managment/Delete-image.md
Normal file
43
docs/en/md/VK/Community-managment/Delete-image.md
Normal file
@ -0,0 +1,43 @@
|
||||
---
|
||||
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
|
||||
}
|
||||
|
||||
```
|
43
docs/en/md/VK/Community-managment/Delete-post.md
Normal file
43
docs/en/md/VK/Community-managment/Delete-post.md
Normal file
@ -0,0 +1,43 @@
|
||||
---
|
||||
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
|
||||
}
|
||||
|
||||
```
|
126
docs/en/md/VK/Community-managment/Save-image-to-album.md
Normal file
126
docs/en/md/VK/Community-managment/Save-image-to-album.md
Normal file
@ -0,0 +1,126 @@
|
||||
---
|
||||
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
|
||||
}
|
||||
]
|
||||
}
|
||||
|
||||
```
|
38
docs/en/md/VK/Community-managment/Upload-photo-to-server.md
Normal file
38
docs/en/md/VK/Community-managment/Upload-photo-to-server.md
Normal file
@ -0,0 +1,38 @@
|
||||
---
|
||||
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"
|
||||
|
||||
|
||||
|
||||
```
|
40
docs/en/md/VK/Community-managment/Upload-video-to-server.md
Normal file
40
docs/en/md/VK/Community-managment/Upload-video-to-server.md
Normal file
@ -0,0 +1,40 @@
|
||||
---
|
||||
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"
|
||||
|
||||
|
||||
|
||||
```
|
4
docs/en/md/VK/Community-managment/_category_.json
Normal file
4
docs/en/md/VK/Community-managment/_category_.json
Normal file
@ -0,0 +1,4 @@
|
||||
{
|
||||
"label": "Community managment",
|
||||
"position": "3"
|
||||
}
|
@ -1,4 +1,4 @@
|
||||
{
|
||||
"label": "Group work",
|
||||
"label": "Community managment",
|
||||
"position": "3"
|
||||
}
|
@ -0,0 +1,86 @@
|
||||
---
|
||||
sidebar_position: 3
|
||||
---
|
||||
|
||||
# Создать базу
|
||||
Создает новую базу данных
|
||||
|
||||
|
||||
*Функция СоздатьБазу(Знач Токен, Знач РабочееПространство, Знач Наименование, Знач КоллекцияТаблиц) Экспорт*
|
||||
|
||||
| Параметр | CLI опция | Тип | Назначение |
|
||||
|-|-|-|-|
|
||||
| Токен | --token | Строка | Токен |
|
||||
| РабочееПространство | --ws | Строка | Идентификатор рабочего пространства |
|
||||
| Наименование | --title | Строка | Наименование новой базы |
|
||||
| КоллекцияТаблиц | --tablesdata | Соответствие Из КлючИЗначение | Описание таблиц: Ключ > имя, Значение > массив полей |
|
||||
|
||||
|
||||
Возвращаемое значение: Соответствие Из КлючИЗначение - сериализованный JSON ответа от Airtable
|
||||
|
||||
```bsl title="Пример кода"
|
||||
|
||||
|
||||
РабочееПространство = "wspdf8yl1yZz3PmWZ";
|
||||
Наименование = "Тестовая база";
|
||||
|
||||
МассивПолей = Новый Массив;
|
||||
МассивПолей.Добавить(OPI_Airtable.ПолучитьПолеНомера("Номер"));
|
||||
МассивПолей.Добавить(OPI_Airtable.ПолучитьПолеСтроковое("Строковое"));
|
||||
|
||||
ИмяТаблицы = "Тестовая таблица";
|
||||
|
||||
КоллекцияТаблиц = Новый Соответствие;
|
||||
КоллекцияТаблиц.Вставить(ИмяТаблицы, МассивПолей);
|
||||
|
||||
Ответ = OPI_Airtable.СоздатьБазу(Токен, РабочееПространство, Наименование, КоллекцияТаблиц); //Соответствие
|
||||
Ответ = OPI_Инструменты.JSONСтрокой(Ответ); //JSON строка
|
||||
|
||||
|
||||
|
||||
```
|
||||
|
||||
```sh title="Пример команды CLI"
|
||||
|
||||
oint airtable СоздатьБазу --token %token% --ws "wspdf8yl1yZz3PmWZ" --title "Тестовая база" --tablesdata %tablesdata%
|
||||
|
||||
|
||||
```
|
||||
|
||||
|
||||
```json title="Результат"
|
||||
|
||||
{
|
||||
"id": "applEsyJmBRm12AuN",
|
||||
"tables": [
|
||||
{
|
||||
"id": "tblqZzW78Rvsdt9gt",
|
||||
"name": "Тестовая таблица",
|
||||
"primaryFieldId": "fldj9Z3fEpLzv40d0",
|
||||
"fields": [
|
||||
{
|
||||
"type": "number",
|
||||
"options": {
|
||||
"precision": 0
|
||||
},
|
||||
"id": "fldj9Z3fEpLzv40d0",
|
||||
"name": "Номер"
|
||||
},
|
||||
{
|
||||
"type": "richText",
|
||||
"id": "fldX1kR7lienmcdEj",
|
||||
"name": "Строковое"
|
||||
}
|
||||
],
|
||||
"views": [
|
||||
{
|
||||
"id": "viwbKE3PS9jl6bqJl",
|
||||
"name": "Grid view",
|
||||
"type": "grid"
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
||||
|
||||
```
|
@ -0,0 +1,73 @@
|
||||
---
|
||||
sidebar_position: 2
|
||||
---
|
||||
|
||||
# Получить таблицы базы
|
||||
Получает схему таблиц базы
|
||||
|
||||
|
||||
*Функция ПолучитьТаблицыБазы(Знач Токен, Знач База) Экспорт*
|
||||
|
||||
| Параметр | CLI опция | Тип | Назначение |
|
||||
|-|-|-|-|
|
||||
| Токен | --token | Строка | Токен |
|
||||
| База | --base | Строка | Идентификатор базы |
|
||||
|
||||
|
||||
Возвращаемое значение: Соответствие Из КлючИЗначение - сериализованный JSON ответа от Airtable
|
||||
|
||||
```bsl title="Пример кода"
|
||||
|
||||
|
||||
База = "apptm8Xqo7TwMaipQ";
|
||||
|
||||
Ответ = OPI_Airtable.ПолучитьТаблицыБазы(Токен, База); //Соответствие
|
||||
Ответ = OPI_Инструменты.JSONСтрокой(Ответ); //JSON строка
|
||||
|
||||
|
||||
|
||||
```
|
||||
|
||||
```sh title="Пример команды CLI"
|
||||
|
||||
oint airtable ПолучитьТаблицыБазы --token %token% --base "apptm8Xqo7TwMaipQ"
|
||||
|
||||
|
||||
```
|
||||
|
||||
|
||||
```json title="Результат"
|
||||
|
||||
{
|
||||
"tables": [
|
||||
{
|
||||
"id": "tblqZzW78Rvsdt9gt",
|
||||
"name": "Тестовая таблица",
|
||||
"primaryFieldId": "fldj9Z3fEpLzv40d0",
|
||||
"fields": [
|
||||
{
|
||||
"type": "number",
|
||||
"options": {
|
||||
"precision": 0
|
||||
},
|
||||
"id": "fldj9Z3fEpLzv40d0",
|
||||
"name": "Номер"
|
||||
},
|
||||
{
|
||||
"type": "richText",
|
||||
"id": "fldX1kR7lienmcdEj",
|
||||
"name": "Строковое"
|
||||
}
|
||||
],
|
||||
"views": [
|
||||
{
|
||||
"id": "viwbKE3PS9jl6bqJl",
|
||||
"name": "Grid view",
|
||||
"type": "grid"
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
||||
|
||||
```
|
@ -0,0 +1,90 @@
|
||||
---
|
||||
sidebar_position: 1
|
||||
---
|
||||
|
||||
# Получить список баз
|
||||
Получает список доступных баз
|
||||
|
||||
|
||||
*Функция ПолучитьСписокБаз(Знач Токен, Знач Отступ = "") Экспорт*
|
||||
|
||||
| Параметр | CLI опция | Тип | Назначение |
|
||||
|-|-|-|-|
|
||||
| Токен | --token | Строка | Токен |
|
||||
| Отступ | --offset | Строка | Идентификатор следующей страницы списка баз из перыдудщего запроса |
|
||||
|
||||
|
||||
Возвращаемое значение: Соответствие Из КлючИЗначение - сериализованный JSON ответа от Airtable
|
||||
|
||||
```bsl title="Пример кода"
|
||||
|
||||
|
||||
|
||||
Ответ = OPI_Airtable.ПолучитьСписокБаз(Токен); //Соответствие
|
||||
Ответ = OPI_Инструменты.JSONСтрокой(Ответ); //JSON строка
|
||||
|
||||
|
||||
|
||||
```
|
||||
|
||||
```sh title="Пример команды CLI"
|
||||
|
||||
oint airtable ПолучитьСписокБаз --token %token% --offset %offset%
|
||||
|
||||
|
||||
```
|
||||
|
||||
|
||||
```json title="Результат"
|
||||
|
||||
{
|
||||
"bases": [
|
||||
{
|
||||
"id": "appGarzKZ0lu3gzoa",
|
||||
"name": "Test",
|
||||
"permissionLevel": "create"
|
||||
},
|
||||
{
|
||||
"id": "app9WRfJirwn3yXuG",
|
||||
"name": "Product catalog",
|
||||
"permissionLevel": "create"
|
||||
},
|
||||
{
|
||||
"id": "app6gigUYTzlDEq4X",
|
||||
"name": "Тестовая база",
|
||||
"permissionLevel": "create"
|
||||
},
|
||||
{
|
||||
"id": "app5hJGyK8asYYe1Q",
|
||||
"name": "Тестовая база",
|
||||
"permissionLevel": "create"
|
||||
},
|
||||
{
|
||||
"id": "appRQ6VxxOZb40Uwi",
|
||||
"name": "Тестовая база",
|
||||
"permissionLevel": "create"
|
||||
},
|
||||
{
|
||||
"id": "appM6FaGofV2XSfFA",
|
||||
"name": "Тестовая база",
|
||||
"permissionLevel": "create"
|
||||
},
|
||||
{
|
||||
"id": "apptm8Xqo7TwMaipQ",
|
||||
"name": "Тестовая база",
|
||||
"permissionLevel": "create"
|
||||
},
|
||||
{
|
||||
"id": "appsyQyGrF8aVN2Wm",
|
||||
"name": "Тестовая база",
|
||||
"permissionLevel": "create"
|
||||
},
|
||||
{
|
||||
"id": "applEsyJmBRm12AuN",
|
||||
"name": "Тестовая база",
|
||||
"permissionLevel": "create"
|
||||
}
|
||||
]
|
||||
}
|
||||
|
||||
```
|
@ -0,0 +1,4 @@
|
||||
{
|
||||
"label": "Работа с базами",
|
||||
"position": "2"
|
||||
}
|
55
docs/ru/md/Airtable/Working-with-fields/Create-field.md
Normal file
55
docs/ru/md/Airtable/Working-with-fields/Create-field.md
Normal file
@ -0,0 +1,55 @@
|
||||
---
|
||||
sidebar_position: 1
|
||||
---
|
||||
|
||||
# Создать поле
|
||||
Создет новое поле в таблице
|
||||
|
||||
|
||||
*Функция СоздатьПоле(Знач Токен, Знач База, Знач Таблица, Знач СтруктураПоля) Экспорт*
|
||||
|
||||
| Параметр | CLI опция | Тип | Назначение |
|
||||
|-|-|-|-|
|
||||
| Токен | --token | Строка | Токен |
|
||||
| База | --base | Строка | Идентификатор базы |
|
||||
| Таблица | --table | Строка | Идентификатор таблицы |
|
||||
| СтруктураПоля | --fielddata | Структура Из КлючИЗначение | Описание нового поля |
|
||||
|
||||
|
||||
Возвращаемое значение: Соответствие Из КлючИЗначение - сериализованный JSON ответа от Airtable
|
||||
|
||||
```bsl title="Пример кода"
|
||||
|
||||
|
||||
База = "apptm8Xqo7TwMaipQ";
|
||||
Таблица = "tbl9G4jVoTJpxYwSY";
|
||||
Имя = Строка(Новый УникальныйИдентификатор);
|
||||
Поле = OPI_Airtable.ПолучитьПолеНомера(Имя);
|
||||
|
||||
Ответ = OPI_Airtable.СоздатьПоле(Токен, База, Таблица, СтруктураПоля); //Соответствие
|
||||
Ответ = OPI_Инструменты.JSONСтрокой(Ответ); //JSON строка
|
||||
|
||||
|
||||
|
||||
```
|
||||
|
||||
```sh title="Пример команды CLI"
|
||||
|
||||
oint airtable СоздатьПоле --token %token% --base "apptm8Xqo7TwMaipQ" --table "tbl9G4jVoTJpxYwSY" --fielddata %fielddata%
|
||||
|
||||
|
||||
```
|
||||
|
||||
|
||||
```json title="Результат"
|
||||
|
||||
{
|
||||
"type": "number",
|
||||
"options": {
|
||||
"precision": 0
|
||||
},
|
||||
"id": "fld3IbFtHZtBHQwsk",
|
||||
"name": "9c0d2a82-7bf9-40b7-8052-ae3ebadc72d5"
|
||||
}
|
||||
|
||||
```
|
@ -0,0 +1,45 @@
|
||||
---
|
||||
sidebar_position: 5
|
||||
---
|
||||
|
||||
# Получить поле (файл)
|
||||
Получает описание поля файлового типа
|
||||
|
||||
|
||||
*Функция ПолучитьПолеВложения(Знач Наименование) Экспорт*
|
||||
|
||||
| Параметр | CLI опция | Тип | Назначение |
|
||||
|-|-|-|-|
|
||||
| Наименование | --title | Строка | Наименование поля |
|
||||
|
||||
|
||||
Возвращаемое значение: Структура - Описание поля
|
||||
|
||||
```bsl title="Пример кода"
|
||||
|
||||
|
||||
Наименование = "Вложение";
|
||||
|
||||
Ответ = OPI_Airtable.ПолучитьПолеВложения(Наименование); //Соответствие
|
||||
Ответ = OPI_Инструменты.JSONСтрокой(Ответ); //JSON строка
|
||||
|
||||
|
||||
|
||||
```
|
||||
|
||||
```sh title="Пример команды CLI"
|
||||
|
||||
oint airtable ПолучитьПолеВложения --title "Вложение"
|
||||
|
||||
|
||||
```
|
||||
|
||||
|
||||
```json title="Результат"
|
||||
|
||||
{
|
||||
"name": "Вложение",
|
||||
"type": "multipleAttachments"
|
||||
}
|
||||
|
||||
```
|
@ -0,0 +1,49 @@
|
||||
---
|
||||
sidebar_position: 6
|
||||
---
|
||||
|
||||
# Получить поле (флажок)
|
||||
Получает описание поля типа булево
|
||||
|
||||
|
||||
*Функция ПолучитьПолеФлажка(Знач Наименование) Экспорт*
|
||||
|
||||
| Параметр | CLI опция | Тип | Назначение |
|
||||
|-|-|-|-|
|
||||
| Наименование | --title | Строка | Наименование поля |
|
||||
|
||||
|
||||
Возвращаемое значение: Структура - Описание поля
|
||||
|
||||
```bsl title="Пример кода"
|
||||
|
||||
|
||||
Наименование = "Флажок";
|
||||
|
||||
Ответ = OPI_Airtable.ПолучитьПолеФлажка(Наименование); //Соответствие
|
||||
Ответ = OPI_Инструменты.JSONСтрокой(Ответ); //JSON строка
|
||||
|
||||
|
||||
|
||||
```
|
||||
|
||||
```sh title="Пример команды CLI"
|
||||
|
||||
oint airtable ПолучитьПолеФлажка --title "Флажок"
|
||||
|
||||
|
||||
```
|
||||
|
||||
|
||||
```json title="Результат"
|
||||
|
||||
{
|
||||
"name": "Флажок",
|
||||
"type": "checkbox",
|
||||
"options": {
|
||||
"icon": "check",
|
||||
"color": "yellowBright"
|
||||
}
|
||||
}
|
||||
|
||||
```
|
51
docs/ru/md/Airtable/Working-with-fields/Get-date-field.md
Normal file
51
docs/ru/md/Airtable/Working-with-fields/Get-date-field.md
Normal file
@ -0,0 +1,51 @@
|
||||
---
|
||||
sidebar_position: 7
|
||||
---
|
||||
|
||||
# Получить поле (дата)
|
||||
Получает описание поля типа дата
|
||||
|
||||
|
||||
*Функция ПолучитьПолеДаты(Знач Наименование) Экспорт*
|
||||
|
||||
| Параметр | CLI опция | Тип | Назначение |
|
||||
|-|-|-|-|
|
||||
| Наименование | --title | Строка | Наименование поля |
|
||||
|
||||
|
||||
Возвращаемое значение: Структура - Описание поля
|
||||
|
||||
```bsl title="Пример кода"
|
||||
|
||||
|
||||
Наименование = "Дата";
|
||||
|
||||
Ответ = OPI_Airtable.ПолучитьПолеДаты(Наименование); //Соответствие
|
||||
Ответ = OPI_Инструменты.JSONСтрокой(Ответ); //JSON строка
|
||||
|
||||
|
||||
|
||||
```
|
||||
|
||||
```sh title="Пример команды CLI"
|
||||
|
||||
oint airtable ПолучитьПолеДаты --title "Дата"
|
||||
|
||||
|
||||
```
|
||||
|
||||
|
||||
```json title="Результат"
|
||||
|
||||
{
|
||||
"name": "Дата",
|
||||
"type": "date",
|
||||
"options": {
|
||||
"dateFormat": {
|
||||
"format": "YYYY-MM-DD",
|
||||
"name": "iso"
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
```
|
45
docs/ru/md/Airtable/Working-with-fields/Get-email-field.md
Normal file
45
docs/ru/md/Airtable/Working-with-fields/Get-email-field.md
Normal file
@ -0,0 +1,45 @@
|
||||
---
|
||||
sidebar_position: 8
|
||||
---
|
||||
|
||||
# Получить поле (email)
|
||||
Получает описание поля с электронной почтой
|
||||
|
||||
|
||||
*Функция ПолучитьПолеПочты(Знач Наименование) Экспорт*
|
||||
|
||||
| Параметр | CLI опция | Тип | Назначение |
|
||||
|-|-|-|-|
|
||||
| Наименование | --title | Строка | Наименование поля |
|
||||
|
||||
|
||||
Возвращаемое значение: Структура - Описание поля
|
||||
|
||||
```bsl title="Пример кода"
|
||||
|
||||
|
||||
Наименование = "Почта";
|
||||
|
||||
Ответ = OPI_Airtable.ПолучитьПолеПочты(Наименование); //Соответствие
|
||||
Ответ = OPI_Инструменты.JSONСтрокой(Ответ); //JSON строка
|
||||
|
||||
|
||||
|
||||
```
|
||||
|
||||
```sh title="Пример команды CLI"
|
||||
|
||||
oint airtable ПолучитьПолеПочты --title "Почта"
|
||||
|
||||
|
||||
```
|
||||
|
||||
|
||||
```json title="Результат"
|
||||
|
||||
{
|
||||
"name": "Почта",
|
||||
"type": "email"
|
||||
}
|
||||
|
||||
```
|
45
docs/ru/md/Airtable/Working-with-fields/Get-link-field.md
Normal file
45
docs/ru/md/Airtable/Working-with-fields/Get-link-field.md
Normal file
@ -0,0 +1,45 @@
|
||||
---
|
||||
sidebar_position: 10
|
||||
---
|
||||
|
||||
# Получить поле (url)
|
||||
Получает описание поля с URL
|
||||
|
||||
|
||||
*Функция ПолучитьПолеСсылки(Знач Наименование) Экспорт*
|
||||
|
||||
| Параметр | CLI опция | Тип | Назначение |
|
||||
|-|-|-|-|
|
||||
| Наименование | --title | Строка | Наименование поля |
|
||||
|
||||
|
||||
Возвращаемое значение: Структура - Описание поля
|
||||
|
||||
```bsl title="Пример кода"
|
||||
|
||||
|
||||
Наименование = "Ссылка";
|
||||
|
||||
Ответ = OPI_Airtable.ПолучитьПолеСсылки(Наименование); //Соответствие
|
||||
Ответ = OPI_Инструменты.JSONСтрокой(Ответ); //JSON строка
|
||||
|
||||
|
||||
|
||||
```
|
||||
|
||||
```sh title="Пример команды CLI"
|
||||
|
||||
oint airtable ПолучитьПолеСсылки --title "Ссылка"
|
||||
|
||||
|
||||
```
|
||||
|
||||
|
||||
```json title="Результат"
|
||||
|
||||
{
|
||||
"name": "Ссылка",
|
||||
"type": "url"
|
||||
}
|
||||
|
||||
```
|
50
docs/ru/md/Airtable/Working-with-fields/Get-number-field.md
Normal file
50
docs/ru/md/Airtable/Working-with-fields/Get-number-field.md
Normal file
@ -0,0 +1,50 @@
|
||||
---
|
||||
sidebar_position: 4
|
||||
---
|
||||
|
||||
# Получить поле (числовое)
|
||||
Получает описание поля числового типа
|
||||
|
||||
|
||||
*Функция ПолучитьПолеНомера(Знач Наименование, Знач Точность = 0) Экспорт*
|
||||
|
||||
| Параметр | CLI опция | Тип | Назначение |
|
||||
|-|-|-|-|
|
||||
| Наименование | --title | Строка | Наименование нового поля |
|
||||
| Точность | --precision | Число,Строка | Число знаков после запятой |
|
||||
|
||||
|
||||
Возвращаемое значение: Структура - Описание поля
|
||||
|
||||
```bsl title="Пример кода"
|
||||
|
||||
|
||||
Наименование = "Номер";
|
||||
Точность = "0";
|
||||
|
||||
Ответ = OPI_Airtable.ПолучитьПолеНомера(Наименование, Точность); //Соответствие
|
||||
Ответ = OPI_Инструменты.JSONСтрокой(Ответ); //JSON строка
|
||||
|
||||
|
||||
|
||||
```
|
||||
|
||||
```sh title="Пример команды CLI"
|
||||
|
||||
oint airtable ПолучитьПолеНомера --title "Номер" --precision "0"
|
||||
|
||||
|
||||
```
|
||||
|
||||
|
||||
```json title="Результат"
|
||||
|
||||
{
|
||||
"name": "Номер",
|
||||
"type": "number",
|
||||
"options": {
|
||||
"precision": 0
|
||||
}
|
||||
}
|
||||
|
||||
```
|
45
docs/ru/md/Airtable/Working-with-fields/Get-phone-field.md
Normal file
45
docs/ru/md/Airtable/Working-with-fields/Get-phone-field.md
Normal file
@ -0,0 +1,45 @@
|
||||
---
|
||||
sidebar_position: 9
|
||||
---
|
||||
|
||||
# Получить поле (телефон)
|
||||
Получает описание поля с номером телефона
|
||||
|
||||
|
||||
*Функция ПолучитьПолеТелефона(Знач Наименование) Экспорт*
|
||||
|
||||
| Параметр | CLI опция | Тип | Назначение |
|
||||
|-|-|-|-|
|
||||
| Наименование | --title | Строка | Наименование поля |
|
||||
|
||||
|
||||
Возвращаемое значение: Структура - Описание поля
|
||||
|
||||
```bsl title="Пример кода"
|
||||
|
||||
|
||||
Наименование = "Телефон";
|
||||
|
||||
Ответ = OPI_Airtable.ПолучитьПолеТелефона(Наименование); //Соответствие
|
||||
Ответ = OPI_Инструменты.JSONСтрокой(Ответ); //JSON строка
|
||||
|
||||
|
||||
|
||||
```
|
||||
|
||||
```sh title="Пример команды CLI"
|
||||
|
||||
oint airtable ПолучитьПолеТелефона --title "Телефон"
|
||||
|
||||
|
||||
```
|
||||
|
||||
|
||||
```json title="Результат"
|
||||
|
||||
{
|
||||
"name": "Телефон",
|
||||
"type": "phoneNumber"
|
||||
}
|
||||
|
||||
```
|
45
docs/ru/md/Airtable/Working-with-fields/Get-string-field.md
Normal file
45
docs/ru/md/Airtable/Working-with-fields/Get-string-field.md
Normal file
@ -0,0 +1,45 @@
|
||||
---
|
||||
sidebar_position: 3
|
||||
---
|
||||
|
||||
# Получить поле (строковое)
|
||||
Получает описание поля строкового типа
|
||||
|
||||
|
||||
*Функция ПолучитьПолеСтроковое(Знач Наименование) Экспорт*
|
||||
|
||||
| Параметр | CLI опция | Тип | Назначение |
|
||||
|-|-|-|-|
|
||||
| Наименование | --title | Строка | Наименование нового поля |
|
||||
|
||||
|
||||
Возвращаемое значение: Структура - Описание поля
|
||||
|
||||
```bsl title="Пример кода"
|
||||
|
||||
|
||||
Наименование = "Строковое";
|
||||
|
||||
Ответ = OPI_Airtable.ПолучитьПолеСтроковое(Наименование); //Соответствие
|
||||
Ответ = OPI_Инструменты.JSONСтрокой(Ответ); //JSON строка
|
||||
|
||||
|
||||
|
||||
```
|
||||
|
||||
```sh title="Пример команды CLI"
|
||||
|
||||
oint airtable ПолучитьПолеСтроковое --title "Строковое"
|
||||
|
||||
|
||||
```
|
||||
|
||||
|
||||
```json title="Результат"
|
||||
|
||||
{
|
||||
"name": "Строковое",
|
||||
"type": "richText"
|
||||
}
|
||||
|
||||
```
|
59
docs/ru/md/Airtable/Working-with-fields/Modify-field.md
Normal file
59
docs/ru/md/Airtable/Working-with-fields/Modify-field.md
Normal file
@ -0,0 +1,59 @@
|
||||
---
|
||||
sidebar_position: 2
|
||||
---
|
||||
|
||||
# Изменить поле
|
||||
Изменяет имя и|или описание существующего поля таблицы
|
||||
|
||||
|
||||
*Функция ИзменитьПоле(Знач Токен, Знач База, Знач Таблица, Знач Поле, Знач Наименование = "", Знач Описание = "") Экспорт*
|
||||
|
||||
| Параметр | CLI опция | Тип | Назначение |
|
||||
|-|-|-|-|
|
||||
| Токен | --token | Строка | Токен |
|
||||
| База | --base | Строка | Идентификатор базы База |
|
||||
| Таблица | --table | Строка | Идентификатор таблицы |
|
||||
| Поле | --field | Строка | Идентификатор поля |
|
||||
| Наименование | --title | Строка | Новое наименование |
|
||||
| Описание | --description | Строка | Новое описание |
|
||||
|
||||
|
||||
Возвращаемое значение: Соответствие Из КлючИЗначение - сериализованный JSON ответа от Airtable
|
||||
|
||||
```bsl title="Пример кода"
|
||||
|
||||
|
||||
База = "apptm8Xqo7TwMaipQ";
|
||||
Таблица = "tbl9G4jVoTJpxYwSY";
|
||||
Поле = "fld3IbFtHZtBHQwsk";
|
||||
Наименование = Строка(Новый УникальныйИдентификатор) + "(изм.)";
|
||||
Описание = "Новое описание";
|
||||
|
||||
Ответ = OPI_Airtable.ИзменитьПоле(Токен, База, Таблица, Поле, Наименование, Описание); //Соответствие
|
||||
Ответ = OPI_Инструменты.JSONСтрокой(Ответ); //JSON строка
|
||||
|
||||
|
||||
|
||||
```
|
||||
|
||||
```sh title="Пример команды CLI"
|
||||
|
||||
oint airtable ИзменитьПоле --token %token% --base "apptm8Xqo7TwMaipQ" --table "tbl9G4jVoTJpxYwSY" --field "fld3IbFtHZtBHQwsk" --title %title% --description "Новое описание"
|
||||
|
||||
|
||||
```
|
||||
|
||||
|
||||
```json title="Результат"
|
||||
|
||||
{
|
||||
"type": "number",
|
||||
"options": {
|
||||
"precision": 0
|
||||
},
|
||||
"id": "fld3IbFtHZtBHQwsk",
|
||||
"name": "9c0d2a82-7bf9-40b7-8052-ae3ebadc72d5(изм.)",
|
||||
"description": "Новое описание"
|
||||
}
|
||||
|
||||
```
|
4
docs/ru/md/Airtable/Working-with-fields/_category_.json
Normal file
4
docs/ru/md/Airtable/Working-with-fields/_category_.json
Normal file
@ -0,0 +1,4 @@
|
||||
{
|
||||
"label": "Работа с полями",
|
||||
"position": "4"
|
||||
}
|
43
docs/ru/md/Dropbox/Tags-managment/Add-tag.md
Normal file
43
docs/ru/md/Dropbox/Tags-managment/Add-tag.md
Normal file
@ -0,0 +1,43 @@
|
||||
---
|
||||
sidebar_position: 2
|
||||
---
|
||||
|
||||
# Добавить тег
|
||||
Добавляет новый текстовый тег к файлу или каталогу
|
||||
|
||||
|
||||
*Функция ДобавитьТег(Знач Токен, Знач Путь, Знач Тег) Экспорт*
|
||||
|
||||
| Параметр | CLI опция | Тип | Назначение |
|
||||
|-|-|-|-|
|
||||
| Токен | --token | Строка | Токен |
|
||||
| Путь | --path | Строка | Путь к объекту, для которого необходимо создать тег |
|
||||
| Тег | --tag | Строка | Текст тега |
|
||||
|
||||
|
||||
Возвращаемое значение: Соответствие Из КлючИЗначение - сериализованный JSON ответа от Dropbox
|
||||
|
||||
```bsl title="Пример кода"
|
||||
|
||||
Тег = "Важное";
|
||||
Токен = "sl.B2ieEHcB9I9BTwJFjbf_MQtoZMKjGYgkpBqzQkvBfuSz41Qpy5r3d7a4ax22I5ILWhd9KLbN5L...";
|
||||
Путь = "/New/mydoc.docx";
|
||||
|
||||
Результат = OPI_Dropbox.ДобавитьТег(Токен, Путь, Тег);
|
||||
|
||||
|
||||
```
|
||||
|
||||
```sh title="Пример команды CLI"
|
||||
|
||||
oint dropbox ДобавитьТег --token "sl.B2ieEHcB9I9BTwJFjbf_MQtoZMKjGYgkpBqzQkvBfuSz41Qpy5r3d7a4ax22I5ILWhd9KLbN5L..." --path %path% --tag %tag%
|
||||
|
||||
|
||||
```
|
||||
|
||||
|
||||
```json title="Результат"
|
||||
|
||||
{}
|
||||
|
||||
```
|
43
docs/ru/md/Dropbox/Tags-managment/Delete-tag.md
Normal file
43
docs/ru/md/Dropbox/Tags-managment/Delete-tag.md
Normal file
@ -0,0 +1,43 @@
|
||||
---
|
||||
sidebar_position: 3
|
||||
---
|
||||
|
||||
# Удалить тег
|
||||
Удаляет текстовый тег файла или каталога
|
||||
|
||||
|
||||
*Функция УдалитьТег(Знач Токен, Знач Путь, Знач Тег) Экспорт*
|
||||
|
||||
| Параметр | CLI опция | Тип | Назначение |
|
||||
|-|-|-|-|
|
||||
| Токен | --token | Строка | Токен |
|
||||
| Путь | --path | Строка | Путь к объекту, тег которого необходимо удалить |
|
||||
| Тег | --tag | Строка | Текст тега |
|
||||
|
||||
|
||||
Возвращаемое значение: Соответствие Из КлючИЗначение - сериализованный JSON ответа от Dropbox
|
||||
|
||||
```bsl title="Пример кода"
|
||||
|
||||
Тег = "Важное";
|
||||
Токен = "sl.B2ieEHcB9I9BTwJFjbf_MQtoZMKjGYgkpBqzQkvBfuSz41Qpy5r3d7a4ax22I5ILWhd9KLbN5L...";
|
||||
Путь = "/New/mydoc.docx";
|
||||
|
||||
Результат = OPI_Dropbox.УдалитьТег(Токен, Путь, Тег);
|
||||
|
||||
|
||||
```
|
||||
|
||||
```sh title="Пример команды CLI"
|
||||
|
||||
oint dropbox УдалитьТег --token "sl.B2ieEHcB9I9BTwJFjbf_MQtoZMKjGYgkpBqzQkvBfuSz41Qpy5r3d7a4ax22I5ILWhd9KLbN5L..." --path %path% --tag %tag%
|
||||
|
||||
|
||||
```
|
||||
|
||||
|
||||
```json title="Результат"
|
||||
|
||||
{}
|
||||
|
||||
```
|
53
docs/ru/md/Dropbox/Tags-managment/Get-tag-list.md
Normal file
53
docs/ru/md/Dropbox/Tags-managment/Get-tag-list.md
Normal file
@ -0,0 +1,53 @@
|
||||
---
|
||||
sidebar_position: 1
|
||||
---
|
||||
|
||||
# Получить список тегов
|
||||
Получает список тегов выбранных файлов
|
||||
|
||||
|
||||
*Функция ПолучитьСписокТегов(Знач Токен, Знач Пути) Экспорт*
|
||||
|
||||
| Параметр | CLI опция | Тип | Назначение |
|
||||
|-|-|-|-|
|
||||
| Токен | --token | Строка | Токен |
|
||||
| Пути | --paths | Строка, Массив Из Строка | Путь или набору путей к файлам |
|
||||
|
||||
|
||||
Возвращаемое значение: Соответствие Из КлючИЗначение - сериализованный JSON ответа от Dropbox
|
||||
|
||||
```bsl title="Пример кода"
|
||||
|
||||
|
||||
|
||||
```
|
||||
|
||||
```sh title="Пример команды CLI"
|
||||
|
||||
oint dropbox ПолучитьСписокТегов --token %token% --paths %paths%
|
||||
|
||||
|
||||
```
|
||||
|
||||
|
||||
```json title="Результат"
|
||||
|
||||
{
|
||||
"paths_to_tags": [
|
||||
{
|
||||
"path": "/New/Dogs.mp3",
|
||||
"tags": []
|
||||
},
|
||||
{
|
||||
"path": "/New/mydoc.docx",
|
||||
"tags": [
|
||||
{
|
||||
".tag": "user_generated_tag",
|
||||
"tag_text": "важное"
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
||||
|
||||
```
|
4
docs/ru/md/Dropbox/Tags-managment/_category_.json
Normal file
4
docs/ru/md/Dropbox/Tags-managment/_category_.json
Normal file
@ -0,0 +1,4 @@
|
||||
{
|
||||
"label": "Работа с тегами",
|
||||
"position": "4"
|
||||
}
|
208
docs/ru/md/Google_Sheets/Books-managment/Create-book.md
Normal file
208
docs/ru/md/Google_Sheets/Books-managment/Create-book.md
Normal file
@ -0,0 +1,208 @@
|
||||
---
|
||||
sidebar_position: 1
|
||||
---
|
||||
|
||||
# Создать книгу
|
||||
Создает новую книгу
|
||||
|
||||
|
||||
*Функция СоздатьКнигу(Знач Токен, Знач Наименование, Знач МассивИменЛистов) Экспорт*
|
||||
|
||||
| Параметр | CLI опция | Тип | Назначение |
|
||||
|-|-|-|-|
|
||||
| Токен | --token | Строка | Токен |
|
||||
| Наименование | --title | Строка | Наименование |
|
||||
| МассивИменЛистов | --sheets | Массив из Строка | Массив имен для добавления новых листов в книгу |
|
||||
|
||||
|
||||
Возвращаемое значение: Соответствие Из КлючИЗначение - сериализованный JSON ответа от Google
|
||||
|
||||
```bsl title="Пример кода"
|
||||
|
||||
|
||||
МассивИменЛистов = Новый Массив;
|
||||
МассивИменЛистов.Добавить("Лист1");
|
||||
МассивИменЛистов.Добавить("Лист2");
|
||||
|
||||
Наименование = "Тестовая таблица";
|
||||
|
||||
Ответ = OPI_GoogleSheets.СоздатьКнигу(Токен, Наименование, МассивИменЛистов); //Соответствие
|
||||
Ответ = OPI_Инструменты.JSONСтрокой(Ответ); //JSON строка
|
||||
|
||||
|
||||
|
||||
```
|
||||
|
||||
```sh title="Пример команды CLI"
|
||||
|
||||
oint gsheets СоздатьКнигу --token %token% --title "Тестовая таблица" --sheets %sheets%
|
||||
|
||||
|
||||
```
|
||||
|
||||
|
||||
```json title="Результат"
|
||||
|
||||
{
|
||||
"spreadsheetId": "1Pu07Y5UiGVfW4fqfP7tcSQtdSX_2wdm2Ih23zlxJJwc",
|
||||
"properties": {
|
||||
"title": "Тестовая таблица",
|
||||
"locale": "ru_RU",
|
||||
"autoRecalc": "ON_CHANGE",
|
||||
"timeZone": "Etc/GMT",
|
||||
"defaultFormat": {
|
||||
"backgroundColor": {
|
||||
"red": 1,
|
||||
"green": 1,
|
||||
"blue": 1
|
||||
},
|
||||
"padding": {
|
||||
"top": 2,
|
||||
"right": 3,
|
||||
"bottom": 2,
|
||||
"left": 3
|
||||
},
|
||||
"verticalAlignment": "BOTTOM",
|
||||
"wrapStrategy": "OVERFLOW_CELL",
|
||||
"textFormat": {
|
||||
"foregroundColor": {},
|
||||
"fontFamily": "arial,sans,sans-serif",
|
||||
"fontSize": 10,
|
||||
"bold": false,
|
||||
"italic": false,
|
||||
"strikethrough": false,
|
||||
"underline": false,
|
||||
"foregroundColorStyle": {
|
||||
"rgbColor": {}
|
||||
}
|
||||
},
|
||||
"backgroundColorStyle": {
|
||||
"rgbColor": {
|
||||
"red": 1,
|
||||
"green": 1,
|
||||
"blue": 1
|
||||
}
|
||||
}
|
||||
},
|
||||
"spreadsheetTheme": {
|
||||
"primaryFontFamily": "Arial",
|
||||
"themeColors": [
|
||||
{
|
||||
"colorType": "TEXT",
|
||||
"color": {
|
||||
"rgbColor": {}
|
||||
}
|
||||
},
|
||||
{
|
||||
"colorType": "BACKGROUND",
|
||||
"color": {
|
||||
"rgbColor": {
|
||||
"red": 1,
|
||||
"green": 1,
|
||||
"blue": 1
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"colorType": "ACCENT1",
|
||||
"color": {
|
||||
"rgbColor": {
|
||||
"red": 0.25882354,
|
||||
"green": 0.52156866,
|
||||
"blue": 0.95686275
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"colorType": "ACCENT2",
|
||||
"color": {
|
||||
"rgbColor": {
|
||||
"red": 0.91764706,
|
||||
"green": 0.2627451,
|
||||
"blue": 0.20784314
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"colorType": "ACCENT3",
|
||||
"color": {
|
||||
"rgbColor": {
|
||||
"red": 0.9843137,
|
||||
"green": 0.7372549,
|
||||
"blue": 0.015686275
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"colorType": "ACCENT4",
|
||||
"color": {
|
||||
"rgbColor": {
|
||||
"red": 0.20392157,
|
||||
"green": 0.65882355,
|
||||
"blue": 0.3254902
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"colorType": "ACCENT5",
|
||||
"color": {
|
||||
"rgbColor": {
|
||||
"red": 1,
|
||||
"green": 0.42745098,
|
||||
"blue": 0.003921569
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"colorType": "ACCENT6",
|
||||
"color": {
|
||||
"rgbColor": {
|
||||
"red": 0.27450982,
|
||||
"green": 0.7411765,
|
||||
"blue": 0.7764706
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"colorType": "LINK",
|
||||
"color": {
|
||||
"rgbColor": {
|
||||
"red": 0.06666667,
|
||||
"green": 0.33333334,
|
||||
"blue": 0.8
|
||||
}
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
||||
},
|
||||
"sheets": [
|
||||
{
|
||||
"properties": {
|
||||
"sheetId": 1999766427,
|
||||
"title": "Лист1",
|
||||
"index": 0,
|
||||
"sheetType": "GRID",
|
||||
"gridProperties": {
|
||||
"rowCount": 1000,
|
||||
"columnCount": 26
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"properties": {
|
||||
"sheetId": 225184494,
|
||||
"title": "Лист2",
|
||||
"index": 1,
|
||||
"sheetType": "GRID",
|
||||
"gridProperties": {
|
||||
"rowCount": 1000,
|
||||
"columnCount": 26
|
||||
}
|
||||
}
|
||||
}
|
||||
],
|
||||
"spreadsheetUrl": "https://docs.google.com/spreadsheets/d/1Pu07Y5UiGVfW4fqfP7tcSQtdSX_2wdm2Ih23zlxJJwc/edit"
|
||||
}
|
||||
|
||||
```
|
50
docs/ru/md/Google_Sheets/Books-managment/Edit-book-title.md
Normal file
50
docs/ru/md/Google_Sheets/Books-managment/Edit-book-title.md
Normal file
@ -0,0 +1,50 @@
|
||||
---
|
||||
sidebar_position: 3
|
||||
---
|
||||
|
||||
# Изменить наименование книги
|
||||
Изменяет наименование существующей книги
|
||||
|
||||
|
||||
*Функция ИзменитьНаименованиеКниги(Знач Токен, Знач Книга, Знач Наименование) Экспорт*
|
||||
|
||||
| Параметр | CLI опция | Тип | Назначение |
|
||||
|-|-|-|-|
|
||||
| Токен | --token | Строка | Токен |
|
||||
| Книга | --spreadsheet | Строка | ID книги |
|
||||
| Наименование | --title | Строка | Новое наименование |
|
||||
|
||||
|
||||
Возвращаемое значение: Соответствие Из КлючИЗначение - сериализованный JSON ответа от Google
|
||||
|
||||
```bsl title="Пример кода"
|
||||
|
||||
|
||||
Книга = "1Pu07Y5UiGVfW4fqfP7tcSQtdSX_2wdm2Ih23zlxJJwc";
|
||||
Наименование = "Тестовая таблица (изм.)";
|
||||
|
||||
Ответ = OPI_GoogleSheets.ИзменитьНаименованиеКниги(Токен, Книга, Наименование); //Соответствие
|
||||
Ответ = OPI_Инструменты.JSONСтрокой(Ответ); //JSON строка
|
||||
|
||||
|
||||
|
||||
```
|
||||
|
||||
```sh title="Пример команды CLI"
|
||||
|
||||
oint gsheets ИзменитьНаименованиеКниги --token %token% --spreadsheet "1Pu07Y5UiGVfW4fqfP7tcSQtdSX_2wdm2Ih23zlxJJwc" --title "Тестовая таблица (изм.)"
|
||||
|
||||
|
||||
```
|
||||
|
||||
|
||||
```json title="Результат"
|
||||
|
||||
{
|
||||
"spreadsheetId": "1Pu07Y5UiGVfW4fqfP7tcSQtdSX_2wdm2Ih23zlxJJwc",
|
||||
"replies": [
|
||||
{}
|
||||
]
|
||||
}
|
||||
|
||||
```
|
203
docs/ru/md/Google_Sheets/Books-managment/Get-book.md
Normal file
203
docs/ru/md/Google_Sheets/Books-managment/Get-book.md
Normal file
@ -0,0 +1,203 @@
|
||||
---
|
||||
sidebar_position: 2
|
||||
---
|
||||
|
||||
# Получить книгу
|
||||
Получает информацию о книге по ID
|
||||
|
||||
|
||||
*Функция ПолучитьКнигу(Знач Токен, Знач Идентификатор) Экспорт*
|
||||
|
||||
| Параметр | CLI опция | Тип | Назначение |
|
||||
|-|-|-|-|
|
||||
| Токен | --token | Строка | Токен |
|
||||
| Идентификатор | --spreadsheet | Строка | Идентификатор книги |
|
||||
|
||||
|
||||
Возвращаемое значение: Соответствие Из КлючИЗначение - сериализованный JSON ответа от Google
|
||||
|
||||
```bsl title="Пример кода"
|
||||
|
||||
|
||||
Идентификатор = "1Pu07Y5UiGVfW4fqfP7tcSQtdSX_2wdm2Ih23zlxJJwc";
|
||||
|
||||
Ответ = OPI_GoogleSheets.ПолучитьКнигу(Токен, Идентификатор); //Соответствие
|
||||
Ответ = OPI_Инструменты.JSONСтрокой(Ответ); //JSON строка
|
||||
|
||||
|
||||
|
||||
```
|
||||
|
||||
```sh title="Пример команды CLI"
|
||||
|
||||
oint gsheets ПолучитьКнигу --token %token% --spreadsheet "1Pu07Y5UiGVfW4fqfP7tcSQtdSX_2wdm2Ih23zlxJJwc"
|
||||
|
||||
|
||||
```
|
||||
|
||||
|
||||
```json title="Результат"
|
||||
|
||||
{
|
||||
"spreadsheetId": "1Pu07Y5UiGVfW4fqfP7tcSQtdSX_2wdm2Ih23zlxJJwc",
|
||||
"properties": {
|
||||
"title": "Тестовая таблица (изм.)",
|
||||
"locale": "ru_RU",
|
||||
"autoRecalc": "ON_CHANGE",
|
||||
"timeZone": "Etc/GMT",
|
||||
"defaultFormat": {
|
||||
"backgroundColor": {
|
||||
"red": 1,
|
||||
"green": 1,
|
||||
"blue": 1
|
||||
},
|
||||
"padding": {
|
||||
"top": 2,
|
||||
"right": 3,
|
||||
"bottom": 2,
|
||||
"left": 3
|
||||
},
|
||||
"verticalAlignment": "BOTTOM",
|
||||
"wrapStrategy": "OVERFLOW_CELL",
|
||||
"textFormat": {
|
||||
"foregroundColor": {},
|
||||
"fontFamily": "arial,sans,sans-serif",
|
||||
"fontSize": 10,
|
||||
"bold": false,
|
||||
"italic": false,
|
||||
"strikethrough": false,
|
||||
"underline": false,
|
||||
"foregroundColorStyle": {
|
||||
"rgbColor": {}
|
||||
}
|
||||
},
|
||||
"backgroundColorStyle": {
|
||||
"rgbColor": {
|
||||
"red": 1,
|
||||
"green": 1,
|
||||
"blue": 1
|
||||
}
|
||||
}
|
||||
},
|
||||
"spreadsheetTheme": {
|
||||
"primaryFontFamily": "Arial",
|
||||
"themeColors": [
|
||||
{
|
||||
"colorType": "TEXT",
|
||||
"color": {
|
||||
"rgbColor": {}
|
||||
}
|
||||
},
|
||||
{
|
||||
"colorType": "BACKGROUND",
|
||||
"color": {
|
||||
"rgbColor": {
|
||||
"red": 1,
|
||||
"green": 1,
|
||||
"blue": 1
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"colorType": "ACCENT1",
|
||||
"color": {
|
||||
"rgbColor": {
|
||||
"red": 0.25882354,
|
||||
"green": 0.52156866,
|
||||
"blue": 0.95686275
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"colorType": "ACCENT2",
|
||||
"color": {
|
||||
"rgbColor": {
|
||||
"red": 0.91764706,
|
||||
"green": 0.2627451,
|
||||
"blue": 0.20784314
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"colorType": "ACCENT3",
|
||||
"color": {
|
||||
"rgbColor": {
|
||||
"red": 0.9843137,
|
||||
"green": 0.7372549,
|
||||
"blue": 0.015686275
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"colorType": "ACCENT4",
|
||||
"color": {
|
||||
"rgbColor": {
|
||||
"red": 0.20392157,
|
||||
"green": 0.65882355,
|
||||
"blue": 0.3254902
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"colorType": "ACCENT5",
|
||||
"color": {
|
||||
"rgbColor": {
|
||||
"red": 1,
|
||||
"green": 0.42745098,
|
||||
"blue": 0.003921569
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"colorType": "ACCENT6",
|
||||
"color": {
|
||||
"rgbColor": {
|
||||
"red": 0.27450982,
|
||||
"green": 0.7411765,
|
||||
"blue": 0.7764706
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"colorType": "LINK",
|
||||
"color": {
|
||||
"rgbColor": {
|
||||
"red": 0.06666667,
|
||||
"green": 0.33333334,
|
||||
"blue": 0.8
|
||||
}
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
||||
},
|
||||
"sheets": [
|
||||
{
|
||||
"properties": {
|
||||
"sheetId": 1999766427,
|
||||
"title": "Лист1",
|
||||
"index": 0,
|
||||
"sheetType": "GRID",
|
||||
"gridProperties": {
|
||||
"rowCount": 1000,
|
||||
"columnCount": 26
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"properties": {
|
||||
"sheetId": 225184494,
|
||||
"title": "Лист2",
|
||||
"index": 1,
|
||||
"sheetType": "GRID",
|
||||
"gridProperties": {
|
||||
"rowCount": 1000,
|
||||
"columnCount": 26
|
||||
}
|
||||
}
|
||||
}
|
||||
],
|
||||
"spreadsheetUrl": "https://docs.google.com/spreadsheets/d/1Pu07Y5UiGVfW4fqfP7tcSQtdSX_2wdm2Ih23zlxJJwc/edit"
|
||||
}
|
||||
|
||||
```
|
4
docs/ru/md/Google_Sheets/Books-managment/_category_.json
Normal file
4
docs/ru/md/Google_Sheets/Books-managment/_category_.json
Normal file
@ -0,0 +1,4 @@
|
||||
{
|
||||
"label": "Работа с книгами",
|
||||
"position": "2"
|
||||
}
|
58
docs/ru/md/Google_Sheets/Data-managment/Clear-cells.md
Normal file
58
docs/ru/md/Google_Sheets/Data-managment/Clear-cells.md
Normal file
@ -0,0 +1,58 @@
|
||||
---
|
||||
sidebar_position: 2
|
||||
---
|
||||
|
||||
# Очистить ячейки
|
||||
Очищает значение в ячейках
|
||||
|
||||
|
||||
*Функция ОчиститьЯчейки(Знач Токен, Знач Книга, Знач МассивЯчеек, Знач Лист = "") Экспорт*
|
||||
|
||||
| Параметр | CLI опция | Тип | Назначение |
|
||||
|-|-|-|-|
|
||||
| Токен | --token | Строка | Токен |
|
||||
| Книга | --spreadsheet | Строка | ID книги |
|
||||
| МассивЯчеек | --cells | Массив из Строка | Массив ячеек вида А1 для очистки |
|
||||
| Лист | --sheetname | Строка | Имя листа (первый лист по умолчанию) |
|
||||
|
||||
|
||||
Возвращаемое значение: Соответствие Из КлючИЗначение - сериализованный JSON ответа от Google
|
||||
|
||||
```bsl title="Пример кода"
|
||||
|
||||
|
||||
МассивЯчеек = Новый Массив;
|
||||
МассивЯчеек.Добавить("B2");
|
||||
МассивЯчеек.Добавить("A3");
|
||||
МассивЯчеек.Добавить("B4");
|
||||
|
||||
Книга = "1Pu07Y5UiGVfW4fqfP7tcSQtdSX_2wdm2Ih23zlxJJwc";
|
||||
Лист = "Лист2";
|
||||
|
||||
Ответ = OPI_GoogleSheets.ОчиститьЯчейки(Токен, Книга, МассивЯчеек, Лист); //Соответствие
|
||||
Ответ = OPI_Инструменты.JSONСтрокой(Ответ); //JSON строка
|
||||
|
||||
|
||||
|
||||
```
|
||||
|
||||
```sh title="Пример команды CLI"
|
||||
|
||||
oint gsheets ОчиститьЯчейки --token %token% --spreadsheet "1Pu07Y5UiGVfW4fqfP7tcSQtdSX_2wdm2Ih23zlxJJwc" --cells %cells% --sheetname "Лист2"
|
||||
|
||||
|
||||
```
|
||||
|
||||
|
||||
```json title="Результат"
|
||||
|
||||
{
|
||||
"spreadsheetId": "1Pu07Y5UiGVfW4fqfP7tcSQtdSX_2wdm2Ih23zlxJJwc",
|
||||
"clearedRanges": [
|
||||
"'Лист2'!B2",
|
||||
"'Лист2'!A3",
|
||||
"'Лист2'!B4"
|
||||
]
|
||||
}
|
||||
|
||||
```
|
82
docs/ru/md/Google_Sheets/Data-managment/Get-cell-values.md
Normal file
82
docs/ru/md/Google_Sheets/Data-managment/Get-cell-values.md
Normal file
@ -0,0 +1,82 @@
|
||||
---
|
||||
sidebar_position: 3
|
||||
---
|
||||
|
||||
# Получить значения ячеек
|
||||
Получает значения ячеек таблицы
|
||||
|
||||
|
||||
*Функция ПолучитьЗначенияЯчеек(Знач Токен, Знач Книга, Знач МассивЯчеек = "", Знач Лист = "") Экспорт*
|
||||
|
||||
| Параметр | CLI опция | Тип | Назначение |
|
||||
|-|-|-|-|
|
||||
| Токен | --token | Строка | Токен |
|
||||
| Книга | --spreadsheet | Строка | ID книги |
|
||||
| МассивЯчеек | --cells | Массив из Строка | Массив ячеек вида А1 для получения (весь лист, если не заполнено) |
|
||||
| Лист | --sheetname | Строка | Имя листа (первый лист по умолчанию) |
|
||||
|
||||
|
||||
Возвращаемое значение: Соответствие Из КлючИЗначение - сериализованный JSON ответа от Google
|
||||
|
||||
```bsl title="Пример кода"
|
||||
|
||||
|
||||
МассивЯчеек = Новый Массив;
|
||||
МассивЯчеек.Добавить("B2");
|
||||
МассивЯчеек.Добавить("A3");
|
||||
МассивЯчеек.Добавить("B4");
|
||||
|
||||
Книга = "1Pu07Y5UiGVfW4fqfP7tcSQtdSX_2wdm2Ih23zlxJJwc";
|
||||
Лист = "Лист2";
|
||||
|
||||
Ответ = OPI_GoogleSheets.ПолучитьЗначенияЯчеек(Токен, Книга, МассивЯчеек, Лист); //Соответствие
|
||||
Ответ = OPI_Инструменты.JSONСтрокой(Ответ); //JSON строка
|
||||
|
||||
|
||||
|
||||
```
|
||||
|
||||
```sh title="Пример команды CLI"
|
||||
|
||||
oint gsheets ПолучитьЗначенияЯчеек --token %token% --spreadsheet "1Pu07Y5UiGVfW4fqfP7tcSQtdSX_2wdm2Ih23zlxJJwc" --cells %cells% --sheetname "Лист2"
|
||||
|
||||
|
||||
```
|
||||
|
||||
|
||||
```json title="Результат"
|
||||
|
||||
{
|
||||
"spreadsheetId": "1Pu07Y5UiGVfW4fqfP7tcSQtdSX_2wdm2Ih23zlxJJwc",
|
||||
"valueRanges": [
|
||||
{
|
||||
"range": "'Лист2'!B2",
|
||||
"majorDimension": "ROWS",
|
||||
"values": [
|
||||
[
|
||||
"Это B2"
|
||||
]
|
||||
]
|
||||
},
|
||||
{
|
||||
"range": "'Лист2'!A3",
|
||||
"majorDimension": "ROWS",
|
||||
"values": [
|
||||
[
|
||||
"Это A3"
|
||||
]
|
||||
]
|
||||
},
|
||||
{
|
||||
"range": "'Лист2'!B4",
|
||||
"majorDimension": "ROWS",
|
||||
"values": [
|
||||
[
|
||||
"Это B4"
|
||||
]
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
||||
|
||||
```
|
121
docs/ru/md/Google_Sheets/Data-managment/Set-cell-values.md
Normal file
121
docs/ru/md/Google_Sheets/Data-managment/Set-cell-values.md
Normal file
@ -0,0 +1,121 @@
|
||||
---
|
||||
sidebar_position: 1
|
||||
---
|
||||
|
||||
# Установить значения ячеек
|
||||
Устанавливает значения ячеек листа
|
||||
|
||||
|
||||
*Функция УстановитьЗначенияЯчеек(Знач Токен, Знач Книга, Знач СоответствиеЗначений, Знач Лист = "", Знач ОсновноеИзмерение = "COLUMNS") Экспорт*
|
||||
|
||||
| Параметр | CLI опция | Тип | Назначение |
|
||||
|-|-|-|-|
|
||||
| Токен | --token | Строка | Токен |
|
||||
| Книга | --spreadsheet | Строка | ID книги |
|
||||
| СоответствиеЗначений | --data | Соответствие Из КлючИЗначение | Данные заполнения, где ключ это имя ячейки вида A1 |
|
||||
| Лист | --sheetname | Строка | Имя листа (первый лист по умолчанию) |
|
||||
| ОсновноеИзмерение | --dim | Строка | Основное измерение при заполнении диапазона массивом |
|
||||
|
||||
|
||||
Возвращаемое значение: Соответствие Из КлючИЗначение - сериализованный JSON ответа от Google
|
||||
|
||||
```bsl title="Пример кода"
|
||||
|
||||
|
||||
СоответствиеЗначений = Новый Соответствие;
|
||||
СоответствиеЗначений.Вставить("A1", "Это A1");
|
||||
СоответствиеЗначений.Вставить("A2", "Это A2");
|
||||
СоответствиеЗначений.Вставить("B2", "Это B2");
|
||||
СоответствиеЗначений.Вставить("B3", "Это B3");
|
||||
СоответствиеЗначений.Вставить("A3", "Это A3");
|
||||
СоответствиеЗначений.Вставить("A4", "Это A4");
|
||||
СоответствиеЗначений.Вставить("B1", "Это B1");
|
||||
СоответствиеЗначений.Вставить("B4", "Это B4");
|
||||
|
||||
Книга = "1Pu07Y5UiGVfW4fqfP7tcSQtdSX_2wdm2Ih23zlxJJwc";
|
||||
Лист = "Лист2";
|
||||
|
||||
Ответ = OPI_GoogleSheets.УстановитьЗначенияЯчеек(Токен, Книга, СоответствиеЗначений, Лист); //Соответствие
|
||||
Ответ = OPI_Инструменты.JSONСтрокой(Ответ); //JSON строка
|
||||
|
||||
|
||||
|
||||
```
|
||||
|
||||
```sh title="Пример команды CLI"
|
||||
|
||||
oint gsheets УстановитьЗначенияЯчеек --token %token% --spreadsheet "1Pu07Y5UiGVfW4fqfP7tcSQtdSX_2wdm2Ih23zlxJJwc" --data %data% --sheetname "Лист2" --dim %dim%
|
||||
|
||||
|
||||
```
|
||||
|
||||
|
||||
```json title="Результат"
|
||||
|
||||
{
|
||||
"spreadsheetId": "1Pu07Y5UiGVfW4fqfP7tcSQtdSX_2wdm2Ih23zlxJJwc",
|
||||
"totalUpdatedRows": 4,
|
||||
"totalUpdatedColumns": 2,
|
||||
"totalUpdatedCells": 8,
|
||||
"totalUpdatedSheets": 1,
|
||||
"responses": [
|
||||
{
|
||||
"spreadsheetId": "1Pu07Y5UiGVfW4fqfP7tcSQtdSX_2wdm2Ih23zlxJJwc",
|
||||
"updatedRange": "'Лист2'!A1",
|
||||
"updatedRows": 1,
|
||||
"updatedColumns": 1,
|
||||
"updatedCells": 1
|
||||
},
|
||||
{
|
||||
"spreadsheetId": "1Pu07Y5UiGVfW4fqfP7tcSQtdSX_2wdm2Ih23zlxJJwc",
|
||||
"updatedRange": "'Лист2'!A2",
|
||||
"updatedRows": 1,
|
||||
"updatedColumns": 1,
|
||||
"updatedCells": 1
|
||||
},
|
||||
{
|
||||
"spreadsheetId": "1Pu07Y5UiGVfW4fqfP7tcSQtdSX_2wdm2Ih23zlxJJwc",
|
||||
"updatedRange": "'Лист2'!B2",
|
||||
"updatedRows": 1,
|
||||
"updatedColumns": 1,
|
||||
"updatedCells": 1
|
||||
},
|
||||
{
|
||||
"spreadsheetId": "1Pu07Y5UiGVfW4fqfP7tcSQtdSX_2wdm2Ih23zlxJJwc",
|
||||
"updatedRange": "'Лист2'!B3",
|
||||
"updatedRows": 1,
|
||||
"updatedColumns": 1,
|
||||
"updatedCells": 1
|
||||
},
|
||||
{
|
||||
"spreadsheetId": "1Pu07Y5UiGVfW4fqfP7tcSQtdSX_2wdm2Ih23zlxJJwc",
|
||||
"updatedRange": "'Лист2'!A3",
|
||||
"updatedRows": 1,
|
||||
"updatedColumns": 1,
|
||||
"updatedCells": 1
|
||||
},
|
||||
{
|
||||
"spreadsheetId": "1Pu07Y5UiGVfW4fqfP7tcSQtdSX_2wdm2Ih23zlxJJwc",
|
||||
"updatedRange": "'Лист2'!A4",
|
||||
"updatedRows": 1,
|
||||
"updatedColumns": 1,
|
||||
"updatedCells": 1
|
||||
},
|
||||
{
|
||||
"spreadsheetId": "1Pu07Y5UiGVfW4fqfP7tcSQtdSX_2wdm2Ih23zlxJJwc",
|
||||
"updatedRange": "'Лист2'!B1",
|
||||
"updatedRows": 1,
|
||||
"updatedColumns": 1,
|
||||
"updatedCells": 1
|
||||
},
|
||||
{
|
||||
"spreadsheetId": "1Pu07Y5UiGVfW4fqfP7tcSQtdSX_2wdm2Ih23zlxJJwc",
|
||||
"updatedRange": "'Лист2'!B4",
|
||||
"updatedRows": 1,
|
||||
"updatedColumns": 1,
|
||||
"updatedCells": 1
|
||||
}
|
||||
]
|
||||
}
|
||||
|
||||
```
|
4
docs/ru/md/Google_Sheets/Data-managment/_category_.json
Normal file
4
docs/ru/md/Google_Sheets/Data-managment/_category_.json
Normal file
@ -0,0 +1,4 @@
|
||||
{
|
||||
"label": "Работа с данными",
|
||||
"position": "4"
|
||||
}
|
63
docs/ru/md/Google_Sheets/Working-with-sheets/Add-sheet.md
Normal file
63
docs/ru/md/Google_Sheets/Working-with-sheets/Add-sheet.md
Normal file
@ -0,0 +1,63 @@
|
||||
---
|
||||
sidebar_position: 1
|
||||
---
|
||||
|
||||
# Добавить лист
|
||||
Добавляет новый лист в книгу
|
||||
|
||||
|
||||
*Функция ДобавитьЛист(Знач Токен, Знач Книга, Знач Наименование) Экспорт*
|
||||
|
||||
| Параметр | CLI опция | Тип | Назначение |
|
||||
|-|-|-|-|
|
||||
| Токен | --token | Строка | Токен |
|
||||
| Книга | --spreadsheet | Строка | Идентификатор книги |
|
||||
| Наименование | --title | Строка | Наименование нового листа |
|
||||
|
||||
|
||||
Возвращаемое значение: Соответствие Из КлючИЗначение - сериализованный JSON ответа от Google
|
||||
|
||||
```bsl title="Пример кода"
|
||||
|
||||
|
||||
Книга = "1Pu07Y5UiGVfW4fqfP7tcSQtdSX_2wdm2Ih23zlxJJwc";
|
||||
Наименование = "Тестовый лист";
|
||||
|
||||
Ответ = OPI_GoogleSheets.ДобавитьЛист(Токен, Книга, Наименование); //Соответствие
|
||||
Ответ = OPI_Инструменты.JSONСтрокой(Ответ); //JSON строка
|
||||
|
||||
|
||||
|
||||
```
|
||||
|
||||
```sh title="Пример команды CLI"
|
||||
|
||||
oint gsheets ДобавитьЛист --token %token% --spreadsheet "1Pu07Y5UiGVfW4fqfP7tcSQtdSX_2wdm2Ih23zlxJJwc" --title "Тестовый лист"
|
||||
|
||||
|
||||
```
|
||||
|
||||
|
||||
```json title="Результат"
|
||||
|
||||
{
|
||||
"spreadsheetId": "1Pu07Y5UiGVfW4fqfP7tcSQtdSX_2wdm2Ih23zlxJJwc",
|
||||
"replies": [
|
||||
{
|
||||
"addSheet": {
|
||||
"properties": {
|
||||
"sheetId": 321892522,
|
||||
"title": "Тестовый лист",
|
||||
"index": 2,
|
||||
"sheetType": "GRID",
|
||||
"gridProperties": {
|
||||
"rowCount": 1000,
|
||||
"columnCount": 26
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
||||
|
||||
```
|
56
docs/ru/md/Google_Sheets/Working-with-sheets/Copy-sheet.md
Normal file
56
docs/ru/md/Google_Sheets/Working-with-sheets/Copy-sheet.md
Normal file
@ -0,0 +1,56 @@
|
||||
---
|
||||
sidebar_position: 3
|
||||
---
|
||||
|
||||
# Копировать лист
|
||||
Копирует лист из одной книги в другую
|
||||
|
||||
|
||||
*Функция КопироватьЛист(Знач Токен, Знач Откуда, Знач Куда, Знач Лист) Экспорт*
|
||||
|
||||
| Параметр | CLI опция | Тип | Назначение |
|
||||
|-|-|-|-|
|
||||
| Токен | --token | Строка | Токен |
|
||||
| Откуда | --from | Строка | ID книги источника |
|
||||
| Куда | --to | Строка | ID книги приемника |
|
||||
| Лист | --sheet | Строка | ID копируемого листа |
|
||||
|
||||
|
||||
Возвращаемое значение: Соответствие Из КлючИЗначение - сериализованный JSON ответа от Google
|
||||
|
||||
```bsl title="Пример кода"
|
||||
|
||||
|
||||
Откуда = "1Pu07Y5UiGVfW4fqfP7tcSQtdSX_2wdm2Ih23zlxJJwc";
|
||||
Куда = "1tPDQHmduH9NASRhy0I-a6--ebNNJ5A6wXhhTRcNhD7s";
|
||||
Лист = "25093199";
|
||||
|
||||
Ответ = OPI_GoogleSheets.КопироватьЛист(Токен, Откуда, Куда, Лист); //Соответствие
|
||||
Ответ = OPI_Инструменты.JSONСтрокой(Ответ); //JSON строка
|
||||
|
||||
|
||||
|
||||
```
|
||||
|
||||
```sh title="Пример команды CLI"
|
||||
|
||||
oint gsheets КопироватьЛист --token %token% --from "1Pu07Y5UiGVfW4fqfP7tcSQtdSX_2wdm2Ih23zlxJJwc" --to "1tPDQHmduH9NASRhy0I-a6--ebNNJ5A6wXhhTRcNhD7s" --sheet "25093199"
|
||||
|
||||
|
||||
```
|
||||
|
||||
|
||||
```json title="Результат"
|
||||
|
||||
{
|
||||
"sheetId": 1790807910,
|
||||
"title": "Лист2 (копия)",
|
||||
"index": 2,
|
||||
"sheetType": "GRID",
|
||||
"gridProperties": {
|
||||
"rowCount": 1000,
|
||||
"columnCount": 26
|
||||
}
|
||||
}
|
||||
|
||||
```
|
50
docs/ru/md/Google_Sheets/Working-with-sheets/Delete-sheet.md
Normal file
50
docs/ru/md/Google_Sheets/Working-with-sheets/Delete-sheet.md
Normal file
@ -0,0 +1,50 @@
|
||||
---
|
||||
sidebar_position: 2
|
||||
---
|
||||
|
||||
# Удалить лист
|
||||
Удаляет лист из книги
|
||||
|
||||
|
||||
*Функция УдалитьЛист(Знач Токен, Знач Книга, Знач Лист) Экспорт*
|
||||
|
||||
| Параметр | CLI опция | Тип | Назначение |
|
||||
|-|-|-|-|
|
||||
| Токен | --token | Строка | Токен |
|
||||
| Книга | --spreadsheet | Строка | Идентификатор книги |
|
||||
| Лист | --sheet | Строка | Идентификатор удаляемого листа |
|
||||
|
||||
|
||||
Возвращаемое значение: Соответствие Из КлючИЗначение - сериализованный JSON ответа от Google
|
||||
|
||||
```bsl title="Пример кода"
|
||||
|
||||
|
||||
Книга = "1Pu07Y5UiGVfW4fqfP7tcSQtdSX_2wdm2Ih23zlxJJwc";
|
||||
Лист = "1790807910";
|
||||
|
||||
Ответ = OPI_GoogleSheets.УдалитьЛист(Токен, Книга, Лист); //Соответствие
|
||||
Ответ = OPI_Инструменты.JSONСтрокой(Ответ); //JSON строка
|
||||
|
||||
|
||||
|
||||
```
|
||||
|
||||
```sh title="Пример команды CLI"
|
||||
|
||||
oint gsheets УдалитьЛист --token %token% --spreadsheet "1Pu07Y5UiGVfW4fqfP7tcSQtdSX_2wdm2Ih23zlxJJwc" --sheet "1790807910"
|
||||
|
||||
|
||||
```
|
||||
|
||||
|
||||
```json title="Результат"
|
||||
|
||||
{
|
||||
"spreadsheetId": "1Pu07Y5UiGVfW4fqfP7tcSQtdSX_2wdm2Ih23zlxJJwc",
|
||||
"replies": [
|
||||
{}
|
||||
]
|
||||
}
|
||||
|
||||
```
|
@ -0,0 +1,4 @@
|
||||
{
|
||||
"label": "Работа с листами",
|
||||
"position": "3"
|
||||
}
|
@ -0,0 +1,82 @@
|
||||
---
|
||||
sidebar_position: 3
|
||||
---
|
||||
|
||||
# Добавить внешний файл
|
||||
Добавляет новый внешний файл
|
||||
|
||||
|
||||
*Функция ДобавитьВнешнийФайл(Знач Токен, Знач URL, Знач Заголовок) Экспорт*
|
||||
|
||||
| Параметр | CLI опция | Тип | Назначение |
|
||||
|-|-|-|-|
|
||||
| Токен | --token | Строка | Токен бота |
|
||||
| URL | --url | Строка | URL к внешнему файлу |
|
||||
| Заголовок | --title | Строка | Заголовок файла для Slack |
|
||||
|
||||
|
||||
Возвращаемое значение: Соответствие Из КлючИЗначение - сериализованный JSON ответа от Slack
|
||||
|
||||
```bsl title="Пример кода"
|
||||
|
||||
|
||||
URL = https://opi.neocities.org/test_data/document.docx;
|
||||
Заголовок = "Новый файл";
|
||||
|
||||
Ответ = OPI_Slack.ДобавитьВнешнийФайл(Токен, URL, Заголовок); //Соответствие
|
||||
Ответ = OPI_Инструменты.JSONСтрокой(Ответ); //JSON строка
|
||||
|
||||
|
||||
|
||||
```
|
||||
|
||||
```sh title="Пример команды CLI"
|
||||
|
||||
oint slack ДобавитьВнешнийФайл --token %token% --url "https://opi.neocities.org/test_data/document.docx" --title %title%
|
||||
|
||||
|
||||
```
|
||||
|
||||
|
||||
```json title="Результат"
|
||||
|
||||
{
|
||||
"ok": true,
|
||||
"file": {
|
||||
"id": "F070P52CU94",
|
||||
"created": 1714146552,
|
||||
"timestamp": 1714146552,
|
||||
"name": "Novyj_fajl",
|
||||
"title": "Новый файл",
|
||||
"mimetype": "application/vnd.slack-remote",
|
||||
"filetype": "remote",
|
||||
"pretty_type": "Remote",
|
||||
"user": "U06UG1CAYH2",
|
||||
"user_team": "T06UD92BS3C",
|
||||
"editable": false,
|
||||
"size": 0,
|
||||
"mode": "external",
|
||||
"is_external": true,
|
||||
"external_type": "app",
|
||||
"is_public": false,
|
||||
"public_url_shared": false,
|
||||
"display_as_bot": false,
|
||||
"username": "",
|
||||
"url_private": "https://slack.com/api/files.remote.add",
|
||||
"media_display_type": "unknown",
|
||||
"permalink": "https://openintegrationsgroup.slack.com/files/U06UG1CAYH2/F070P52CU94/novyj_fajl",
|
||||
"comments_count": 0,
|
||||
"is_starred": false,
|
||||
"shares": {},
|
||||
"channels": [],
|
||||
"groups": [],
|
||||
"ims": [],
|
||||
"has_more_shares": false,
|
||||
"external_id": "d2a110a2-08eb-4f20-989f-8943f0816420",
|
||||
"external_url": "https://slack.com/api/files.remote.add",
|
||||
"has_rich_preview": false,
|
||||
"file_access": "visible"
|
||||
}
|
||||
}
|
||||
|
||||
```
|
@ -0,0 +1,45 @@
|
||||
---
|
||||
sidebar_position: 5
|
||||
---
|
||||
|
||||
# Удалить внешний файл
|
||||
Удаляет внешний файл из Slack
|
||||
|
||||
|
||||
*Функция УдалитьВнешнийФайл(Знач Токен, Знач ИдентификаторФайла) Экспорт*
|
||||
|
||||
| Параметр | CLI опция | Тип | Назначение |
|
||||
|-|-|-|-|
|
||||
| Токен | --token | Строка | Токен бота |
|
||||
| ИдентификаторФайла | --fileid | Строка | Идентификатор файла |
|
||||
|
||||
|
||||
Возвращаемое значение: Соответствие Из КлючИЗначение - сериализованный JSON ответа от Slack
|
||||
|
||||
```bsl title="Пример кода"
|
||||
|
||||
|
||||
ИдентификаторФайла = "F070P52CU94";
|
||||
|
||||
Ответ = OPI_Slack.УдалитьВнешнийФайл(Токен, ИдентификаторФайла); //Соответствие
|
||||
Ответ = OPI_Инструменты.JSONСтрокой(Ответ); //JSON строка
|
||||
|
||||
|
||||
|
||||
```
|
||||
|
||||
```sh title="Пример команды CLI"
|
||||
|
||||
oint slack УдалитьВнешнийФайл --token %token% --fileid "F070P52CU94"
|
||||
|
||||
|
||||
```
|
||||
|
||||
|
||||
```json title="Результат"
|
||||
|
||||
{
|
||||
"ok": true
|
||||
}
|
||||
|
||||
```
|
@ -0,0 +1,50 @@
|
||||
---
|
||||
sidebar_position: 1
|
||||
---
|
||||
|
||||
# Получить список внешних файлов
|
||||
Получает список внешних файлов пользователя или канала
|
||||
|
||||
|
||||
*Функция ПолучитьСписокВнешнихФайлов(Знач Токен, Знач Канал = "", Знач Курсор = "") Экспорт*
|
||||
|
||||
| Параметр | CLI опция | Тип | Назначение |
|
||||
|-|-|-|-|
|
||||
| Токен | --token | Строка | Токен бота |
|
||||
| Канал | --channel | Строка | Канал для отбора |
|
||||
| Курсор | --cursor | Строка | Указатель из предыдущего запроса, если строк результата > 100 |
|
||||
|
||||
|
||||
Возвращаемое значение: Соответствие Из КлючИЗначение - сериализованный JSON ответа от Slack
|
||||
|
||||
```bsl title="Пример кода"
|
||||
|
||||
|
||||
Канал = "C070VPMKN8J";
|
||||
|
||||
Ответ = OPI_Slack.ПолучитьСписокВнешнихФайлов(Токен, Канал); //Соответствие
|
||||
Ответ = OPI_Инструменты.JSONСтрокой(Ответ); //JSON строка
|
||||
|
||||
|
||||
|
||||
```
|
||||
|
||||
```sh title="Пример команды CLI"
|
||||
|
||||
oint slack ПолучитьСписокВнешнихФайлов --token %token% --channel "C070VPMKN8J" --cursor %cursor%
|
||||
|
||||
|
||||
```
|
||||
|
||||
|
||||
```json title="Результат"
|
||||
|
||||
{
|
||||
"ok": true,
|
||||
"files": [],
|
||||
"response_metadata": {
|
||||
"next_cursor": ""
|
||||
}
|
||||
}
|
||||
|
||||
```
|
Some files were not shown because too many files have changed in this diff Show More
Loading…
Reference in New Issue
Block a user