2024-06-05 12:19:46 +02:00
|
|
|
---
|
|
|
|
sidebar_position: 4
|
|
|
|
---
|
|
|
|
|
|
|
|
# Get account information
|
|
|
|
Gets account information
|
|
|
|
|
|
|
|
|
2024-07-10 10:59:55 +02:00
|
|
|
|
|
|
|
|
|
|
|
<br/>
|
|
|
|
|
|
|
|
|
2024-06-05 12:19:46 +02:00
|
|
|
*Function GetAccountInformation(Val Token, Val Account = "") Export*
|
|
|
|
|
|
|
|
| Parameter | CLI option | Type | Destination |
|
|
|
|
|-|-|-|-|
|
|
|
|
| Token | --token | String | Token |
|
|
|
|
| Account | --account | String | Account ID. Current token account if not filled |
|
|
|
|
|
|
|
|
|
2024-06-06 14:33:52 +02:00
|
|
|
Returns: Map Of KeyAndValue - serialized JSON response from Dropbox
|
2024-06-05 12:19:46 +02:00
|
|
|
|
2024-07-10 10:59:55 +02:00
|
|
|
|
2024-06-05 12:19:46 +02:00
|
|
|
```bsl title="Code example"
|
|
|
|
Token = "sl.B2ieEHcB9I9BTwJFjbf_MQtoZMKjGYgkpBqzQkvBfuSz41Qpy5r3d7a4ax22I5ILWhd9KLbN5L...";
|
|
|
|
|
|
|
|
Result = OPI_Dropbox.GetAccountInformation(Token);
|
|
|
|
```
|
2024-07-10 10:59:55 +02:00
|
|
|
|
|
|
|
|
2024-06-05 12:19:46 +02:00
|
|
|
|
|
|
|
```sh title="CLI command example"
|
|
|
|
|
|
|
|
oint dropbox GetAccountInformation --token "sl.B2ieEHcB9I9BTwJFjbf_MQtoZMKjGYgkpBqzQkvBfuSz41Qpy5r3d7a4ax22I5ILWhd9KLbN5L..." --account %account%
|
|
|
|
|
|
|
|
```
|
|
|
|
|
|
|
|
```json title="Result"
|
2024-07-10 10:59:55 +02:00
|
|
|
{
|
2024-06-05 12:19:46 +02:00
|
|
|
"account_id": "dbid:AAA4WKMCfgoW5LwuNQFeLOyp-X4omQiNDhE",
|
|
|
|
"name": {
|
|
|
|
"given_name": "Anton",
|
|
|
|
"surname": "Titovets",
|
|
|
|
"familiar_name": "Anton",
|
|
|
|
"display_name": "Anton Titovets",
|
2024-07-10 10:59:55 +02:00
|
|
|
"abbreviated_name": "AT"
|
2024-06-05 12:19:46 +02:00
|
|
|
},
|
|
|
|
"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"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
```
|