2024-05-28 21:30:51 +02:00
|
|
|
---
|
|
|
|
sidebar_position: 1
|
|
|
|
---
|
|
|
|
|
|
|
|
# Опубликовать папку
|
|
|
|
Переводит каталог в режим публичного доступа
|
|
|
|
|
|
|
|
|
|
|
|
*Функция ОпубликоватьПапку(Знач Токен, Знач Путь) Экспорт*
|
|
|
|
|
|
|
|
| Параметр | CLI опция | Тип | Назначение |
|
|
|
|
|-|-|-|-|
|
|
|
|
| Токен | --token | Строка | Токен |
|
|
|
|
| Путь | --path | Строка | Путь к целевому каталогу |
|
|
|
|
|
|
|
|
|
2024-06-04 20:55:01 +02:00
|
|
|
Возвращаемое значение: Соответствие Из КлючИЗначение - сериализованный JSON ответа от Dropbox
|
2024-05-28 21:30:51 +02:00
|
|
|
|
|
|
|
```bsl title="Пример кода"
|
|
|
|
|
2024-06-04 20:55:01 +02:00
|
|
|
Токен = "sl.B2ieEHcB9I9BTwJFjbf_MQtoZMKjGYgkpBqzQkvBfuSz41Qpy5r3d7a4ax22I5ILWhd9KLbN5L...";
|
2024-05-28 21:30:51 +02:00
|
|
|
Путь = "/New";
|
|
|
|
|
|
|
|
Результат = OPI_Dropbox.ОпубликоватьПапку(Токен, Путь);
|
|
|
|
|
|
|
|
|
|
|
|
```
|
|
|
|
|
2024-06-04 20:55:01 +02:00
|
|
|
```sh title="Пример команды CLI"
|
2024-05-28 21:30:51 +02:00
|
|
|
|
2024-06-04 20:55:01 +02:00
|
|
|
oint dropbox ОпубликоватьПапку --token "sl.B2ieEHcB9I9BTwJFjbf_MQtoZMKjGYgkpBqzQkvBfuSz41Qpy5r3d7a4ax22I5ILWhd9KLbN5L..." --path "/New"
|
2024-05-28 21:30:51 +02:00
|
|
|
|
|
|
|
```
|
|
|
|
|
|
|
|
|
|
|
|
```json title="Результат"
|
|
|
|
|
2024-05-31 11:35:14 +02:00
|
|
|
{
|
|
|
|
".tag": "complete",
|
|
|
|
"access_type": {
|
|
|
|
".tag": "owner"
|
|
|
|
},
|
|
|
|
"is_inside_team_folder": false,
|
|
|
|
"is_team_folder": false,
|
|
|
|
"path_display": "/New",
|
|
|
|
"path_lower": "/new",
|
|
|
|
"name": "New",
|
|
|
|
"policy": {
|
|
|
|
"acl_update_policy": {
|
|
|
|
".tag": "editors"
|
|
|
|
},
|
|
|
|
"shared_link_policy": {
|
|
|
|
".tag": "anyone"
|
|
|
|
},
|
|
|
|
"viewer_info_policy": {
|
|
|
|
".tag": "enabled"
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"preview_url": "https://www.dropbox.com/scl/fo/0eu3zz5f05vymefoq6yyl/h?dl=0",
|
|
|
|
"shared_folder_id": "5009428129",
|
|
|
|
"time_invited": "2024-05-30T12:35:34Z",
|
|
|
|
"access_inheritance": {
|
|
|
|
".tag": "inherit"
|
|
|
|
},
|
|
|
|
"folder_id": "id:kJU6-a-pT48AAAAAAAABXw"
|
|
|
|
}
|
2024-05-28 21:30:51 +02:00
|
|
|
|
|
|
|
```
|