Skip to main content

Save public object to disk

Saves the public object to your disk

Function SavePublicObjectToDisk(Val Token, Val URL, From = "", Target = "") Export

ParameterCLI optionTypeRequiredDescription
Token--tokenStringToken
URL--urlStringObject address
From--fromStringPath within public catalog (folders only)
Target--toStringFile save path
Returns

Map Of KeyAndValue - serialized JSON response from Yandex

1C:Enterprise/OneScript code example
Token = "y0__xCOranuBRj1uTsgs8z_iRV...";
URL = "https://yadi.sk/d/n0QfpfP48V7piQ";

Result = OPI_YandexDisk.SavePublicObjectToDisk(Token, URL);
oint yadisk SavePublicObjectToDisk \
--token "***" \
--url "https://yadi.sk/d/OitH_6Db6ggdRw"
Result
{
"path": "disk:/Загрузки/b00c92b7-db3b-400e-b0d2-accf2e1e2230.png",
"type": "file",
"name": "b00c92b7-db3b-400e-b0d2-accf2e1e2230.png",
"created": "2026-07-19T17:12:13+00:00",
"modified": "2026-07-19T17:12:12+00:00",
"size": 2114023,
"mime_type": "multipart",
"md5": "9e0176f87f6565a22f78e0f9b39a4d78",
"sha256": "89f8eb42a35208a17c85036e17237b0aa0657e1841efa6171dc5acbc0dea9e18",
"media_type": "image",
"resource_id": "1573541518:e0b1c545f8092a237cbaa927151ff453e216f51089ff62353fd8b3a79464e26e",
"revision": 1784481133233513,
"comment_ids": {
"public_resource": "1573541518:e0b1c545f8092a237cbaa927151ff453e216f51089ff62353fd8b3a79464e26e",
"private_resource": "1573541518:e0b1c545f8092a237cbaa927151ff453e216f51089ff62353fd8b3a79464e26e"
},
"exif": {},
"antivirus_status": "clean",
"file": "https://downloader.disk.yandex.ru/disk/8bb6e6e19653498b61e9abe2a66f8bc557f411602458e06b065003b74a1decdc/6a5d3dae/Kdpe3dFisZLPovVA4r-aBmpkby3AOQiLsayEHYapOMw2ylFGSbZZrsWtGPTvHxG_-QDrqSGFBOOsS3b3gKT1zA%3D%3D?uid=1573541518&filename=b00c92b7-db3b-400e-b0d2-accf2e1e2230.png&disposition=attachment&hash=&limit=0&content_type=multipart&owner_uid=1573541518&fsize=2114023&hid=03d7263840468e281bd0b238a26e7d0d&media_type=image&tknv=v3&is_direct_zip_experiment=1&etag=9e0176f87f6565a22f78e0f9b39a4d78"
}