﻿---
sidebar_position: 3
description: Get object and other functions to work with Yandex Disk 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, Yandex Disk]
---

import Tabs from '@theme/Tabs';
import TabItem from '@theme/TabItem';

# 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 | &#x2714; | Token |
  | Path | --path | String | &#x2714; | Path to folder or file |

  
  Returns:  Map Of KeyAndValue - serialized JSON response from Yandex

<br/>




```bsl title="1C:Enterprise/OneScript code example"
    Token = "y0_AgAAAABdylaOAAs0QgAAAAD5i-a...";
    Path  = "/379ae74a-4ddd-43e9-8b7b-7245ef089d89.png";

    Result = OPI_YandexDisk.GetObject(Token, Path);
```
 

 <Tabs>
  
    <TabItem value="bash" label="Bash" default>
        ```bash
            oint yadisk GetObject \
             --token "***" \
             --path "/ea5e7a0d-9a57-44db-abc0-cfad2aeeeab0.png"
        ```
    </TabItem>
  
    <TabItem value="bat" label="CMD/Bat" default>
        ```batch
            oint yadisk GetObject ^
             --token "***" ^
             --path "/ea5e7a0d-9a57-44db-abc0-cfad2aeeeab0.png"
        ```
    </TabItem>
</Tabs>


```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
}
```
