1
0
mirror of https://github.com/Bayselonarrend/OpenIntegrations.git synced 2025-06-10 23:57:41 +02:00

89 lines
2.8 KiB
Markdown
Raw Normal View History

---
sidebar_position: 2
---
# Get list of folder files
Gets the list of the first files in the directory or continues getting the next ones when the cursor is specified
2024-07-10 13:58:29 +03:00
`Function GetListOfFolderFiles(Val Token, Val Path = "", Val Detailed = False, Val Cursor = "") Export`
| Parameter | CLI option | Type | Description |
|-|-|-|-|
| Token | --token | String | Token |
| Path | --path | String | Path to the directory. Optional if the cursor is specified |
| Detailed | --detail | Boolean | Add information fields for mediafiles |
| Cursor | --cursor | String | Cursor from the previous request to get the next set of files |
Returns: HTTPResponse - Get list of folder files
2024-07-10 14:05:58 +03:00
<br/>
2024-07-10 13:58:29 +03:00
```bsl title="Code example"
Path = "/New";
Token = "sl.B6AQWp9MlZlz4iaf41whVKxX9-MXeCiQhPRe4YIRxFmZ3zHsdjmOAatzgaWVhqmlIOvDD6WIUQ...";
Result = OPI_Dropbox.GetListOfFolderFiles(Token, Path, True);
```
```sh title="CLI command example"
oint dropbox GetListOfFolderFiles --token "sl.B6AQWp9MlZlz4iaf41whVKxX9-MXeCiQhPRe4YIRxFmZ3zHsdjmOAatzgaWVhqmlIOvDD6WIUQ..." --path %path% --detail %detail% --cursor %cursor%
```
```json title="Result"
2024-08-14 09:06:31 +03:00
{
2024-10-06 16:55:08 +03:00
"entries": [
{
2024-10-06 16:55:08 +03:00
".tag": "file",
"name": "Dogs.mp3",
"path_lower": "/new/dogs.mp3",
"path_display": "/New/Dogs.mp3",
"id": "id:kJU6-a-pT48AAAAAAAAACA",
"client_modified": "2024-05-15T16:58:30Z",
"server_modified": "2024-10-05T15:04:01Z",
"rev": "623bc190c7105bd841553",
"size": 9229352,
"is_downloadable": true,
"content_hash": "376f728ef041d9cef08406f16debc12de89d83130e69c66a817fd834d2d82dc2"
},
{
2024-10-06 16:55:08 +03:00
".tag": "file",
"name": "url_doc (1).docx",
"path_lower": "/new/url_doc (1).docx",
"path_display": "/New/url_doc (1).docx",
"id": "id:kJU6-a-pT48AAAAAAAALvg",
"client_modified": "2024-07-15T17:40:28Z",
"server_modified": "2024-10-05T15:04:01Z",
"rev": "623bc190c7106bd841553",
"size": 24069,
"is_downloadable": true,
"content_hash": "8d63c5989ceec1a90f3fde2ffaa76efcd2c050191e6b55a1761e4e352590bd8c"
},
{
".tag": "file",
"name": "mydoc.docx",
"path_lower": "/new/mydoc.docx",
"path_display": "/New/mydoc.docx",
"id": "id:kJU6-a-pT48AAAAAAAAABw",
"client_modified": "2024-05-14T16:49:41Z",
"server_modified": "2024-10-05T15:04:01Z",
"rev": "623bc190c7107bd841553",
"size": 24069,
"is_downloadable": true,
"content_hash": "8d63c5989ceec1a90f3fde2ffaa76efcd2c050191e6b55a1761e4e352590bd8c"
}
2024-10-06 16:55:08 +03:00
],
"cursor": "AAGRDQUkM6QeETzLTnJTQOy0K2Kfjtbr9z2lWDO4g9Q09r7UJWRJmAs6lR2PuZeI674yeyowKt8Z4jDDg2bJN7VV4owzhP0DnajCmqPJt7ooOtVq9m9L52vZ1TtDng9WNnwllqsitCpbXHXyF2rP2Vp_8eLxl8Bqz0Dy8u6O7qI2ngsBsZ5pBari5YMe8taR79CrMapzrYp6DZXAgp4_jGkh",
"has_more": false
}
```