Get account information
Gets account information
- Parameters
- Advanced call ?
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
| Parameter | Description |
|---|---|
| proxy | InternetProxy or a structure with fields Protocol, Host, Port, User, Password, UseOSAuthentication |
| timeout | Request execution timeout |
| adv_response | Formats the response as a complete HTTP structure with fields code, body, and headers |
| retries | Number of HTTP request send attempts on 5** status codes or internal client errors |
| dontwait | Creates a background job and returns its data (for 1C and OneScript only) |
1C:Enterprise/OneScript code example
Token = "sl.u.AGHisBACq5S_OZLr0m5nlPclkUHTuC7bAcgx3qLD4RSIOG5yZu6wao8-mXwEbhs-TC10gz2EnYJ0qnIbRIXAc5jF7-zCyw_9T9sJEQcuhb30g9b3M_s1gwf0Q5i2URlUF4mEJS1EpG50Dk9mH7NpV86q1Ww4P3EoF-zKI4UT6_zwhAixwV7CEDZttPL1sddquXuUIFynYHnnUlwx4W9ZYr7WuZVKBuJUnWzqdBuDnps0vABsr0lrZJtIx6xWKKyC9n3GQkJHr0jNoXx5OLPKFDLzuRK7azj57SJn4OebZ66ZyL-EpIQPaySFlu44IPvPWgi6bHJhLYPozUp3TmXdun6j4ydleevhoJcEuDfc1XuaF-Vr77ZRs6ab6NCgXufbzlim7vi2MB-GiSm6wXuBAknWqiMT4GudYhPSKCDeFJbQWk3a1tOzV0LpAaG2e3kDQTysjtQtPgQaqgw0ntx0Gmm79z76vrXP4EyXMnRsP4qJnTxROtQPBXFrsPo4n4SfYHCvJasa77mMqWeZESfwezDehGhG8Rkhw-PIJX7VaGvJZv1IR2ziy_n1toMbug6sewy1leCD2CmPZy5MOX5bWWmsiETf3rGBfB7QTFnO04J77U15tVCc53yN-1pB6HuOQB7L_xJLBUKxMJCI96oVnAP7uTP4K1VBkI6CVAVg1rIR2PT9RKTotrWhMGFmPpSrU2muAsgy6AHbalhikVFnw6JgV8t0saz...";
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/AACWH0jNi5xVzVyJcFcxNKwuP-C1XleEFQY?src=app9-2724483",
"is_paired": false,
"account_type": {
".tag": "basic"
},
"root_info": {
".tag": "user",
"root_namespace_id": "3179550035",
"home_namespace_id": "3179550035"
}
}