1
0
mirror of https://github.com/Bayselonarrend/OpenIntegrations.git synced 2025-11-25 22:12:29 +02:00
Files
OpenIntegrations/docs/en/md/Dropbox/Account-and-authorization/Get-space-usage-data.mdx
Vitaly the Alpaca (bot) 2ec373a899 Main build (Jenkins)
2025-04-06 17:14:16 +03:00

61 lines
1.7 KiB
Plaintext
Vendored

---
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.u.AFqxiRQ0oE35VqPcFWFoY9tqb72YL2OJdLQkfZq3pA9VEbNTArU8XR84mJBpncI6FB8-NUEtea8GCW60cyHmWsr6VacAsuH_PrE8OKLTSwcIOIPKyjyoqmYJuvJNRuycwTZqfmaoeVgoJTXDSYWXGjnMjjt_1iONE_HzBRb1fR2mwnaKsn836EKte1xf9SgyLdzIpZADlgyTlWyVohORC_awdb7wMu0Yt6qifW3R0waIHLMDBzNkC2frUhAvtpWKAMPmYDQfG6ztL4zM76ywvlLM5ecYCTaa9rkBcnQxNgc0f18j-U9eG15cxm-Pm7f_aPWu7HNOLeJni6os-fi5N0t1z-egf69nqW5e6XKShCroynuo8oMs7P6ALP3j5r8UvKhMptkPOHw5s0ILC9KVnD_uazsb7Ve-SQxMK69DOx0Xsbjmvl4jICU_bWKVurH-t21wQS6XjQ5cTa8hrQmjsKPdBYoQv2-3auVoXIHROAGlheC549DUnEpgJzCtQGcf5zs8bE1-9B9pbVFf-_Jm1T90bP556yh0xox83bkHcjCDGI8VTeKm_yKhX-SKBH-4P-zfCsUXWNv-DKcQMZyjxEfylWtlvW3b9-lxsqz5aC7wFborQBOGtg3GQ7XLkvMAwyjP5IaxCaQI7nq_5Px4KUfjhngmfnpV_9xtnJHJG_s6iqKvul6MAKg0PXDI8cbLbkTCLo2aAZ7TGDO8ms8mqIkMJRrI01I...";
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
}
}
```