Skip to main content

Get space usage data

Gets information on the amount of used disk space

Function GetSpaceUsageData(Val Token) Export

ParameterCLI optionTypeRequiredDescription
Token--tokenStringToken

Returns: Map Of KeyAndValue - serialized JSON response from Dropbox


1C:Enterprise/OneScript code example
    Token = "sl.CBL71_21WiKphqlWV34l0tlFn8eGn_YrnPrMexNmHltofj3DkBRsnpQEFY5O5H6i-iRl3bPDBi...";

Result = OPI_Dropbox.GetSpaceUsageData(Token);
    oint dropbox GetSpaceUsageData \
--token "***"
Result
{
"used": 1477704605,
"allocation": {
".tag": "individual",
"allocated": 2147483648
}
}