Get account information
Gets account information
Function GetAccountInformation(Val Token, Val Account = "") Export
Parameter | CLI option | Type | Required | Description |
---|---|---|---|---|
Token | --token | String | ✔ | Token |
Account | --account | String | ✖ | Account ID. Current token account if not filled |
Returns: Map Of KeyAndValue - serialized JSON response from Dropbox
1C:Enterprise/OneScript code example
Token = "sl.CBL71_21WiKphqlWV34l0tlFn8eGn_YrnPrMexNmHltofj3DkBRsnpQEFY5O5H6i-iRl3bPDBi...";
Result = OPI_Dropbox.GetAccountInformation(Token);
- Bash
- CMD/Bat
oint dropbox GetAccountInformation \
--token "***" \
--account "dbid:AAA4WKMCfgoW5LwuNQFeLOyp-X4omQiNDhE"
oint dropbox GetAccountInformation ^
--token "***" ^
--account "dbid:AAA4WKMCfgoW5LwuNQFeLOyp-X4omQiNDhE"
Result
{
"account_id": "dbid:AAA4WKMCfgoW5LwuNQFeLOyp-X4omQiNDhE",
"name": {
"given_name": "Антон",
"surname": "Титовец",
"familiar_name": "Антон",
"display_name": "Антон Титовец",
"abbreviated_name": "АТ"
},
"email": "bayselonarrend@gmail.com",
"email_verified": true,
"disabled": false,
"country": "BY",
"locale": "en",
"referral_link": "https://www.dropbox.com/referrals/AADQceVD6l02CM1dzgLM7s_o8gdaPXKc7oM?src=app9-2724483",
"is_paired": false,
"account_type": {
".tag": "basic"
},
"root_info": {
".tag": "user",
"root_namespace_id": "3179550035",
"home_namespace_id": "3179550035"
}
}