1
0
mirror of https://github.com/Bayselonarrend/OpenIntegrations.git synced 2025-05-19 22:33:07 +02:00

42 lines
692 B
Markdown
Raw Normal View History

---
sidebar_position: 5
---
# Get space usage data
Gets information on the amount of used disk space
2024-07-10 13:58:29 +03:00
`Function GetSpaceUsageData(Val Token) Export`
| Parameter | CLI option | Type | Description |
|-|-|-|-|
| Token | --token | String | Token |
Returns: Map Of KeyAndValue - serialized JSON response from Dropbox
2024-07-10 14:05:58 +03:00
<br/>
2024-07-10 13:58:29 +03:00
```bsl title="Code example"
2024-10-15 10:07:27 +03:00
Token = "sl.B-uquz3utwEHepKzyqLBfnFvmY1EWTYDus5LDjT5ux5srp9PJRtr7CvMv20nVl2rRGC3K4J_X5...";
2024-08-13 16:47:32 +03:00
Result = OPI_Dropbox.GetSpaceUsageData(Token);
```
2024-10-15 09:53:37 +03:00
```json title="Result"
2024-08-14 09:06:31 +03:00
{
2024-10-06 16:55:08 +03:00
"used": 1477704605,
"allocation": {
".tag": "individual",
"allocated": 2147483648
2024-10-06 16:55:08 +03:00
}
}
```