You've already forked OpenIntegrations
mirror of
https://github.com/Bayselonarrend/OpenIntegrations.git
synced 2025-12-21 23:57:40 +02:00
71 lines
1.9 KiB
Plaintext
Vendored
71 lines
1.9 KiB
Plaintext
Vendored
---
|
|
sidebar_position: 3
|
|
description: Get information about file and other functions to work with VKTeams in the Open Integration Package, a free open-source integration library for 1C:Enterprise 8, OneScript and CLI
|
|
keywords: [1C, 1С, 1С:Enterprise, 1С:Enterprise 8.3, API, Integration, Services, Exchange, OneScript, CLI, VKTeams]
|
|
---
|
|
|
|
import Tabs from '@theme/Tabs';
|
|
import TabItem from '@theme/TabItem';
|
|
|
|
# Get information about file
|
|
Gets information about a file by ID
|
|
|
|
|
|
|
|
`Function GetFileInformation(Val Token, Val FileID) Export`
|
|
|
|
| Parameter | CLI option | Type | Required | Description |
|
|
|-|-|-|-|-|
|
|
| Token | --token | String | ✔ | Bot token |
|
|
| FileID | --fileid | String, Number | ✔ | File ID |
|
|
|
|
|
|
Returns: Map Of KeyAndValue - serialized JSON response from VK Teams
|
|
|
|
<br/>
|
|
|
|
:::tip
|
|
Method at API documentation: [GET /files/getInfo](https://teams.vk.com/botapi/#/files/get_files_getInfo)
|
|
:::
|
|
<br/>
|
|
|
|
|
|
|
|
```bsl title="1C:Enterprise/OneScript code example"
|
|
Token = "001.3501506236.091...";
|
|
FileID = "cpn1c1fb5o0jJs4XqMX1vy68b5cf5e1bd";
|
|
|
|
Result = OPI_VKTeams.GetFileInformation(Token, FileID);
|
|
```
|
|
|
|
|
|
<Tabs>
|
|
|
|
<TabItem value="bash" label="Bash" default>
|
|
```bash
|
|
oint vkteams GetFileInformation \
|
|
--token "***" \
|
|
--fileid "wLbUKimcNR6sqV0fEpJJdp687691e21bd"
|
|
```
|
|
</TabItem>
|
|
|
|
<TabItem value="bat" label="CMD/Bat" default>
|
|
```batch
|
|
oint vkteams GetFileInformation ^
|
|
--token "***" ^
|
|
--fileid "wLbUKimcNR6sqV0fEpJJdp687691e21bd"
|
|
```
|
|
</TabItem>
|
|
</Tabs>
|
|
|
|
|
|
```json title="Result"
|
|
{
|
|
"filename": "ImportantDocument.docx",
|
|
"size": 24071,
|
|
"type": "application",
|
|
"url": "https://ub.icq.net/files/get/UevBEtxoDvTP9STM9cQIqD3cQIsU2jgGpNtxbSBlFdSiwSsu7INUFnIi7yRznGcZOvYiRHvmcGjlSRRIBSLheI78aN9IU8MS2Gcl8eGiMBiIii9BTFH1d8iCYIsl8bhIP5PnwS47uAEIC9JZb18v40xImk9cQI/ImportantDocument.docx",
|
|
"ok": true
|
|
}
|
|
```
|