2024-10-15 10:50:56 +03:00
---
2024-10-15 10:16:04 +03:00
sidebar_position: 5
2025-05-05 11:15:20 +03:00
description: Get space usage data and other functions to work with Dropbox in the Open Integration Package, a free open-source integration library for 1C:Enterprise 8, OneScript and CLI
2025-05-05 09:49:19 +03:00
keywords: [1C, 1С, 1С:Enterprise, 1С:Enterprise 8.3, API, Integration, Services, Exchange, OneScript, CLI, Dropbox]
2024-10-15 10:16:04 +03:00
---
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-10-18 23:59:34 +03:00
Token = "sl.u.AGCwn1QXsGH2fdhPkJ1YaLwuXHdke3_2-yZYWDemguCHHe0QSK4jMZu7RabWmfBho2h_jPGmkMY0CRFgJFUL0XfNFo-0K4EvK8dNfeviyIRfdRyYjhMdLMGzLmRcbAqvLME9gZBSh2SuUxwhBwGe7gk2c3cgUhoVG9PF6oppzMJDgi_Gvg7r2hcrVtTDp-9B1yOW783QnxHA-Ff7lDlttxvElHhz3Ikf7qy_cxTaWo0vGloN2mHjtrKkc86AZSjcWx24NTPWJhLfnxzYYi0SmcjM_LKJypDZ9XgNY2O7WNLcvBU7onVsZx-wZWzIOrBFfsg4AF4_5qMLi_3EY73O2TfjrmhHxIZperotiE-yrwQIKWQJuUTmz2B7U30z-wUj6_g_ILRHty_c9xH_c9wwp9Yoe-zLdShM6ZnF96QEPriyi-wu567r_BGTF1wyPdVl-FezEL7DqPYl1O4xav_ke1HSgevxympoKo3kC5_b_9jvwntOcqBQLW9a53KwgycJwsSycu9KLSI7-mxeHB2rPXat7nX1aDckDugNxgM5XrIPdTtDCTJIliHwd7S8pfvMC68yYHu1dP3NMrnK4Z08LRgNG5DKJWiI1eSqNXb_KpYw8QSa3Z98Z-F6BQJMwgQVGstN0QhEZ2KVpMKoPbb_ar676xPzJNTPzFXAn_vDgmXaW8GemZ5B4xouDiSMF67r-15Y84VSzkgU4cqTgW0xtrIkYVhy8iJ...";
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"
{
2025-09-12 20:23:31 +03:00
"used": 1813841887,
2024-10-15 10:16:04 +03:00
"allocation": {
".tag": "individual",
"allocated": 2147483648
}
}
```