1
0
mirror of https://github.com/Bayselonarrend/OpenIntegrations.git synced 2025-07-03 00:58:12 +02:00
Files
OpenIntegrations/docs/en/md/Yandex_Disk/File-and-folder-management/Get-object.mdx

79 lines
2.4 KiB
Plaintext
Raw Normal View History

2024-10-15 10:50:56 +03:00
---
2024-10-15 10:16:04 +03:00
sidebar_position: 3
---
2024-10-15 10:50:56 +03:00
import Tabs from '@theme/Tabs';
import TabItem from '@theme/TabItem';
2024-10-15 10:16:04 +03:00
# Get object
Gets information about a disk object at the specified path
`Function GetObject(Val Token, Val Path) Export`
2024-10-15 15:15:47 +03:00
| Parameter | CLI option | Type | Required | Description |
|-|-|-|-|-|
| Token | --token | String | ✔ | Token |
| Path | --path | String | ✔ | Path to folder or file |
2024-10-15 10:16:04 +03:00
Returns: Map Of KeyAndValue - serialized JSON response from Yandex
<br/>
2024-10-15 21:15:56 +03:00
```bsl title="1C:Enterprise/OneScript code example"
2024-10-15 10:16:04 +03:00
Token = "y0_AgAAAABdylaOAAs0QgAAAAD5i-a...";
2024-11-17 14:43:15 +03:00
Path = "/c65c6fc0-e0f0-49cd-94d8-46b56fd654eb.png";
2024-10-15 10:16:04 +03:00
Result = OPI_YandexDisk.GetObject(Token, Path);
```
2024-10-20 22:36:03 +03:00
<Tabs>
<TabItem value="bash" label="Bash" default>
```bash
oint yadisk GetObject \
2024-10-22 08:59:24 +03:00
--token "***" \
2024-11-17 16:09:58 +03:00
--path "/645e5103-2764-4d52-8e16-a5675bdda001.png"
2024-10-20 22:36:03 +03:00
```
</TabItem>
<TabItem value="bat" label="CMD/Bat" default>
```batch
oint yadisk GetObject ^
2024-10-22 08:59:24 +03:00
--token "***" ^
2024-11-17 16:09:58 +03:00
--path "/645e5103-2764-4d52-8e16-a5675bdda001.png"
2024-10-20 22:36:03 +03:00
```
</TabItem>
</Tabs>
2024-10-15 10:16:04 +03:00
```json title="Result"
{
"antivirus_status": "clean",
"size": 2114023,
"comment_ids": {
"private_resource": "1573541518:a08fb14f8be2310bdeb9137e587c97fd440f62116b0d5b062b23309128e8ea1c",
"public_resource": "1573541518:a08fb14f8be2310bdeb9137e587c97fd440f62116b0d5b062b23309128e8ea1c"
},
"name": "ead71493-7bac-4495-8885-412ae1f2bb2f.png",
"exif": {},
"created": "2024-10-09T09:08:01+03:00",
"resource_id": "1573541518:a08fb14f8be2310bdeb9137e587c97fd440f62116b0d5b062b23309128e8ea1c",
"modified": "2024-10-09T09:08:01+03:00",
"mime_type": "multipart",
"file": "https://downloader.disk.yandex.ru/disk/128447d518295b0fdf67c037329f3a846b7ac273d1c8c89e5e7e603994089df9/67065605/gwThwhLBKYvLhQCNnqAHij5hRQaUGDpwFbEzeIKiqA3i6iiJ6DTQ8YKof9wxzQAbxUj34HxpcU3N1SeCvBE7og%3D%3D?uid=1573541518&filename=ead71493-7bac-4495-8885-412ae1f2bb2f.png&disposition=attachment&hash=&limit=0&content_type=multipart&owner_uid=1573541518&fsize=2114023&hid=03d7263840468e281bd0b238a26e7d0d&media_type=image&tknv=v2&etag=9e0176f87f6565a22f78e0f9b39a4d78",
"path": "disk:/ead71493-7bac-4495-8885-412ae1f2bb2f.png",
"media_type": "image",
"sha256": "89f8eb42a35208a17c85036e17237b0aa0657e1841efa6171dc5acbc0dea9e18",
"type": "file",
"md5": "9e0176f87f6565a22f78e0f9b39a4d78",
"revision": 1728454081912320
}
```