1
0
mirror of https://github.com/Bayselonarrend/OpenIntegrations.git synced 2025-03-29 21:57:16 +02:00

47 lines
848 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 | Destination |
|-|-|-|-|
| 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-07-10 14:24:11 +03:00
Token = "sl.B2ieEHcB9I9BTwJFjbf_MQtoZMKjGYgkpBqzQkvBfuSz41Qpy5r3d7a4ax22I5ILWhd9KLbN5L...";
Result = OPI_Dropbox.GetSpaceUsageData(Token);
```
```sh title="CLI command example"
oint dropbox GetSpaceUsageData --token "sl.B2ieEHcB9I9BTwJFjbf_MQtoZMKjGYgkpBqzQkvBfuSz41Qpy5r3d7a4ax22I5ILWhd9KLbN5L..."
```
```json title="Result"
2024-07-10 14:11:17 +03:00
{
"used": 1477493597,
"allocation": {
".tag": "individual",
"allocated": 2147483648
}
}
```