Get object
Gets information about a disk object at the specified path
Function GetObject(Val Token, Val Path) Export
Parameter | CLI option | Type | Required | Description |
---|---|---|---|---|
Token | --token | String | ✔ | Token |
Path | --path | String | ✔ | Path to folder or file |
Returns: Map Of KeyAndValue - serialized JSON response from Yandex
1C:Enterprise/OneScript code example
Token = "y0_AgAAAABdylaOAAs0QgAAAAD5i-a...";
Path = "/3d9a10b0-786e-4bc0-a05a-2de706bb0969.png";
Result = OPI_YandexDisk.GetObject(Token, Path);
- Bash
- CMD/Bat
oint yadisk GetObject \
--token "***" \
--path "/68c85926-1894-440b-9356-e0cdc75b177d.png"
oint yadisk GetObject ^
--token "***" ^
--path "/68c85926-1894-440b-9356-e0cdc75b177d.png"
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
}