1
0
mirror of https://github.com/Bayselonarrend/OpenIntegrations.git synced 2025-05-27 23:07:37 +02:00
Vitaly the Alpaca (bot) 4c77b0ecc4 Main build (Jenkins)
2024-10-27 14:30:57 +03:00

61 lines
1.1 KiB
Plaintext

---
sidebar_position: 5
---
import Tabs from '@theme/Tabs';
import TabItem from '@theme/TabItem';
# Get space usage data
Gets information on the amount of used disk space
`Function GetSpaceUsageData(Val Token) Export`
| Parameter | CLI option | Type | Required | Description |
|-|-|-|-|-|
| Token | --token | String | ✔ | Token |
Returns: Map Of KeyAndValue - serialized JSON response from Dropbox
<br/>
```bsl title="1C:Enterprise/OneScript code example"
Token = "sl.B_msgdiPWezavqeIij7xO0CoH6lFDkcxzp9wOv6yyW7dixfCrQAW21oFDnvVjkfZa4UegdzdP0...";
Result = OPI_Dropbox.GetSpaceUsageData(Token);
```
<Tabs>
<TabItem value="bash" label="Bash" default>
```bash
oint dropbox GetSpaceUsageData \
--token "***"
```
</TabItem>
<TabItem value="bat" label="CMD/Bat" default>
```batch
oint dropbox GetSpaceUsageData ^
--token "***"
```
</TabItem>
</Tabs>
```json title="Result"
{
"used": 1477704605,
"allocation": {
".tag": "individual",
"allocated": 2147483648
}
}
```