1
0
mirror of https://github.com/Bayselonarrend/OpenIntegrations.git synced 2024-12-21 01:50:24 +02:00
OpenIntegrations/docs/en/md/Yandex_Disk/File-and-folder-management/Get-object.md
2024-06-05 13:35:05 +03:00

7.3 KiB

sidebar_position
3

Get object

Gets information about a disk object at the specified path

Function GetObject(Val Token, Val Path) Export

Parameter CLI option Type Destination
Token --token String Token
Path --path String Path to folder or file

Returns: Key-Value Pair - serialized JSON response from Yandex

	
 
 Token = "y0_AgAAAABdylaOAA...";
 Path = "/Alpaca.png"
 Response = OPI_YandexDisk.GetObject(Token, Path); //Map
 Response = OPI_Tools.JSONString(Response); //String
 
 
	
 
 oint yadisk GetObject --token "y0_AgAAAABdylaOAA..." --path "/Alpaca.png"



{
 "md5": "8d7bf7d7ee61113f9044f3a28496e458",
 "sha256": "f7607461b40164d5064d1d5085cbe1e94ecb1326e7ff8db857931b2ccd14b7f8",
 "revision": 1707464146094880,
 "media_type": "image",
 "file": "https://downloader.disk.yandex.ru/disk/dde91b59521a82943bf471bd567cbfc5d1743e47c070612cb12142b1539dee31/65c60e42/gwThwhLBKYvLhQCNnqAHipkvjZhVNNxGTNig_llGPhLRP5nDBmXsdEg4Fhk78dfjZAaSvO2bMDHgtfB5lLZkXQ%3D%3D?uid=1573541518&filename=%D0%90%D0%BB%D1%8C%D0%BF%D0%B0%D0%BA%D0%B0.png&disposition=attachment&hash=&limit=0&content_type=image%2Fpng&owner_uid=1573541518&fsize=440431&hid=0e9b208e1aea0dbd58b4b43ccdc3ad5a&media_type=image&tknv=v2&etag=8d7bf7d7ee61113f9044f3a28496e458",
 "modified": "2024-02-09T07:35:46+00:00",
 "sizes": [
 {
 "name": "ORIGINAL",
 "url": "https://downloader.disk.yandex.ru/disk/30f5ad2a163156a249c62177447abd5e88c7dc54491b67cd378c354abf67d7e5/65c60e42/gwThwhLBKYvLhQCNnqAHipkvjZhVNNxGTNig_llGPhLRP5nDBmXsdEg4Fhk78dfjZAaSvO2bMDHgtfB5lLZkXQ%3D%3D?uid=1573541518&filename=%D0%90%D0%BB%D1%8C%D0%BF%D0%B0%D0%BA%D0%B0.png&disposition=inline&hash=&limit=0&content_type=image%2Fpng&owner_uid=1573541518&fsize=440431&hid=0e9b208e1aea0dbd58b4b43ccdc3ad5a&media_type=image&tknv=v2&etag=8d7bf7d7ee61113f9044f3a28496e458"
 },
 {
 "name": "DEFAULT",
 "url": "https://downloader.disk.yandex.ru/preview/69709cc2cbb959f6e2d0c73114daf31bb0c928fee1ac6fa07ad49d6880a45bb0/inf/C_BTcM66RTR0fZaok1Kn-da5QIF3lhb76OqICnyTAmG6ZHxPEuwL760R39ZLYBuZNUGPqM-Xip6PIzqzAs2hpg%3D%3D?uid=1573541518&filename=%D0%90%D0%BB%D1%8C%D0%BF%D0%B0%D0%BA%D0%B0.png&disposition=inline&hash=&limit=0&content_type=image%2Fpng&owner_uid=1573541518&tknv=v2"
 },
 {
 "name": "XXXS",
 "url": "https://downloader.disk.yandex.ru/preview/69709cc2cbb959f6e2d0c73114daf31bb0c928fee1ac6fa07ad49d6880a45bb0/inf/C_BTcM66RTR0fZaok1Kn-da5QIF3lhb76OqICnyTAmG6ZHxPEuwL760R39ZLYBuZNUGPqM-Xip6PIzqzAs2hpg%3D%3D?uid=1573541518&filename=%D0%90%D0%BB%D1%8C%D0%BF%D0%B0%D0%BA%D0%B0.png&disposition=inline&hash=&limit=0&content_type=image%2Fpng&owner_uid=1573541518&tknv=v2&size=XXXS&crop=0"
 },
 {
 "name": "XXS",
 "url": "https://downloader.disk.yandex.ru/preview/69709cc2cbb959f6e2d0c73114daf31bb0c928fee1ac6fa07ad49d6880a45bb0/inf/C_BTcM66RTR0fZaok1Kn-da5QIF3lhb76OqICnyTAmG6ZHxPEuwL760R39ZLYBuZNUGPqM-Xip6PIzqzAs2hpg%3D%3D?uid=1573541518&filename=%D0%90%D0%BB%D1%8C%D0%BF%D0%B0%D0%BA%D0%B0.png&disposition=inline&hash=&limit=0&content_type=image%2Fpng&owner_uid=1573541518&tknv=v2&size=XXS&crop=0"
 },
 {
 "name": "XS",
 "url": "https://downloader.disk.yandex.ru/preview/69709cc2cbb959f6e2d0c73114daf31bb0c928fee1ac6fa07ad49d6880a45bb0/inf/C_BTcM66RTR0fZaok1Kn-da5QIF3lhb76OqICnyTAmG6ZHxPEuwL760R39ZLYBuZNUGPqM-Xip6PIzqzAs2hpg%3D%3D?uid=1573541518&filename=%D0%90%D0%BB%D1%8C%D0%BF%D0%B0%D0%BA%D0%B0.png&disposition=inline&hash=&limit=0&content_type=image%2Fpng&owner_uid=1573541518&tknv=v2&size=XS&crop=0"
 },
 {
 "name": "S",
 "url": "https://downloader.disk.yandex.ru/preview/69709cc2cbb959f6e2d0c73114daf31bb0c928fee1ac6fa07ad49d6880a45bb0/inf/C_BTcM66RTR0fZaok1Kn-da5QIF3lhb76OqICnyTAmG6ZHxPEuwL760R39ZLYBuZNUGPqM-Xip6PIzqzAs2hpg%3D%3D?uid=1573541518&filename=%D0%90%D0%BB%D1%8C%D0%BF%D0%B0%D0%BA%D0%B0.png&disposition=inline&hash=&limit=0&content_type=image%2Fpng&owner_uid=1573541518&tknv=v2&size=S&crop=0"
 },
 {
 "name": "M",
 "url": "https://downloader.disk.yandex.ru/preview/69709cc2cbb959f6e2d0c73114daf31bb0c928fee1ac6fa07ad49d6880a45bb0/inf/C_BTcM66RTR0fZaok1Kn-da5QIF3lhb76OqICnyTAmG6ZHxPEuwL760R39ZLYBuZNUGPqM-Xip6PIzqzAs2hpg%3D%3D?uid=1573541518&filename=%D0%90%D0%BB%D1%8C%D0%BF%D0%B0%D0%BA%D0%B0.png&disposition=inline&hash=&limit=0&content_type=image%2Fpng&owner_uid=1573541518&tknv=v2&size=M&crop=0"
 },
 {
 "name": "L",
 "url": "https://downloader.disk.yandex.ru/preview/69709cc2cbb959f6e2d0c73114daf31bb0c928fee1ac6fa07ad49d6880a45bb0/inf/C_BTcM66RTR0fZaok1Kn-da5QIF3lhb76OqICnyTAmG6ZHxPEuwL760R39ZLYBuZNUGPqM-Xip6PIzqzAs2hpg%3D%3D?uid=1573541518&filename=%D0%90%D0%BB%D1%8C%D0%BF%D0%B0%D0%BA%D0%B0.png&disposition=inline&hash=&limit=0&content_type=image%2Fpng&owner_uid=1573541518&tknv=v2&size=L&crop=0"
 },
 {
 "name": "XL",
 "url": "https://downloader.disk.yandex.ru/preview/69709cc2cbb959f6e2d0c73114daf31bb0c928fee1ac6fa07ad49d6880a45bb0/inf/C_BTcM66RTR0fZaok1Kn-da5QIF3lhb76OqICnyTAmG6ZHxPEuwL760R39ZLYBuZNUGPqM-Xip6PIzqzAs2hpg%3D%3D?uid=1573541518&filename=%D0%90%D0%BB%D1%8C%D0%BF%D0%B0%D0%BA%D0%B0.png&disposition=inline&hash=&limit=0&content_type=image%2Fpng&owner_uid=1573541518&tknv=v2&size=XL&crop=0"
 },
 {
 "name": "XXL",
 "url": "https://downloader.disk.yandex.ru/preview/69709cc2cbb959f6e2d0c73114daf31bb0c928fee1ac6fa07ad49d6880a45bb0/inf/C_BTcM66RTR0fZaok1Kn-da5QIF3lhb76OqICnyTAmG6ZHxPEuwL760R39ZLYBuZNUGPqM-Xip6PIzqzAs2hpg%3D%3D?uid=1573541518&filename=%D0%90%D0%BB%D1%8C%D0%BF%D0%B0%D0%BA%D0%B0.png&disposition=inline&hash=&limit=0&content_type=image%2Fpng&owner_uid=1573541518&tknv=v2&size=XXL&crop=0"
 },
 {
 "name": "XXXL",
 "url": "https://downloader.disk.yandex.ru/preview/69709cc2cbb959f6e2d0c73114daf31bb0c928fee1ac6fa07ad49d6880a45bb0/inf/C_BTcM66RTR0fZaok1Kn-da5QIF3lhb76OqICnyTAmG6ZHxPEuwL760R39ZLYBuZNUGPqM-Xip6PIzqzAs2hpg%3D%3D?uid=1573541518&filename=%D0%90%D0%BB%D1%8C%D0%BF%D0%B0%D0%BA%D0%B0.png&disposition=inline&hash=&limit=0&content_type=image%2Fpng&owner_uid=1573541518&tknv=v2&size=XXXL&crop=0"
 },
 {
 "name": "C",
 "url": "https://downloader.disk.yandex.ru/preview/69709cc2cbb959f6e2d0c73114daf31bb0c928fee1ac6fa07ad49d6880a45bb0/inf/C_BTcM66RTR0fZaok1Kn-da5QIF3lhb76OqICnyTAmG6ZHxPEuwL760R39ZLYBuZNUGPqM-Xip6PIzqzAs2hpg%3D%3D?uid=1573541518&filename=%D0%90%D0%BB%D1%8C%D0%BF%D0%B0%D0%BA%D0%B0.png&disposition=inline&hash=&limit=0&content_type=image%2Fpng&owner_uid=1573541518&tknv=v2&size=S&crop=0"
 }
 ],
 "resource_id": "1573541518:0c7e8321400e442148c5dedba88c043536e0fdafbb005577de3aba090a4b21eb",
 "preview": "https://downloader.disk.yandex.ru/preview/69709cc2cbb959f6e2d0c73114daf31bb0c928fee1ac6fa07ad49d6880a45bb0/inf/C_BTcM66RTR0fZaok1Kn-da5QIF3lhb76OqICnyTAmG6ZHxPEuwL760R39ZLYBuZNUGPqM-Xip6PIzqzAs2hpg%3D%3D?uid=1573541518&filename=%D0%90%D0%BB%D1%8C%D0%BF%D0%B0%D0%BA%D0%B0.png&disposition=inline&hash=&limit=0&content_type=image%2Fpng&owner_uid=1573541518&tknv=v2&size=S&crop=0",
 "created": "2024-02-08T10:56:19+00:00",
 "exif": {},
 "name": "Alpaca.png",
 "type": "file",
 "size": 440431,
 "path": "disk:/Alpaca.png",
 "antivirus_status": "clean",
 "comment_ids": {
 "public_resource": "1573541518:0c7e8321400e442148c5dedba88c043536e0fdafbb005577de3aba090a4b21eb",
 "private_resource": "1573541518:0c7e8321400e442148c5dedba88c043536e0fdafbb005577de3aba090a4b21eb"
 },
 "mime_type": "image/png"
 }