Skip to main content

Get download link for public object

Gets a direct link to download the public object

Function GetDownloadLinkForPublicObject(Val Token, Val URL, Val Path = "") Export

ParameterCLI optionTypeRequiredDescription
Token--tokenStringToken
URL--urlStringObject address
Path--pathStringPath inside the object
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.GetDownloadLinkForPublicObject(Token, URL);
oint yadisk GetDownloadLinkForPublicObject \
--token "***" \
--url "https://yadi.sk/d/B-mJxgwE6rZhdw"
Result
{
"method": "GET",
"href": "https://downloader.disk.yandex.ru/disk/133eea02177727d34f29982b5b0f3e224f1419db8ef2972813a9da89aa746...",
"templated": false
}