1
0
mirror of https://github.com/Bayselonarrend/OpenIntegrations.git synced 2025-11-27 22:18:36 +02:00
Files
OpenIntegrations/docs/en/md/Dropbox/Account-and-authorization/Get-space-usage-data.mdx

61 lines
1.7 KiB
Plaintext
Raw Normal View History

2024-10-15 10:50:56 +03:00
---
2024-10-15 10:16:04 +03:00
sidebar_position: 5
---
2024-10-15 10:50:56 +03:00
import Tabs from '@theme/Tabs';
import TabItem from '@theme/TabItem';
2024-10-15 10:16:04 +03:00
# Get space usage data
Gets information on the amount of used disk space
`Function GetSpaceUsageData(Val Token) Export`
2024-10-15 15:15:47 +03:00
| Parameter | CLI option | Type | Required | Description |
|-|-|-|-|-|
| Token | --token | String | ✔ | Token |
2024-10-15 10:16:04 +03:00
Returns: Map Of KeyAndValue - serialized JSON response from Dropbox
<br/>
2024-10-15 21:15:56 +03:00
```bsl title="1C:Enterprise/OneScript code example"
2025-04-06 17:14:16 +03:00
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...";
2024-10-15 10:16:04 +03:00
Result = OPI_Dropbox.GetSpaceUsageData(Token);
```
2024-10-20 22:36:03 +03:00
<Tabs>
<TabItem value="bash" label="Bash" default>
```bash
oint dropbox GetSpaceUsageData \
2024-10-22 08:59:24 +03:00
--token "***"
2024-10-20 22:36:03 +03:00
```
</TabItem>
<TabItem value="bat" label="CMD/Bat" default>
```batch
oint dropbox GetSpaceUsageData ^
2024-10-22 08:59:24 +03:00
--token "***"
2024-10-20 22:36:03 +03:00
```
</TabItem>
</Tabs>
2024-10-15 10:16:04 +03:00
```json title="Result"
{
"used": 1477704605,
"allocation": {
".tag": "individual",
"allocated": 2147483648
}
}
```