public class DbxUserUsersRequests extends Object
Constructor and Description |
---|
DbxUserUsersRequests(DbxRawClientV2 client) |
Modifier and Type | Method and Description |
---|---|
BasicAccount |
getAccount(String accountId)
Get information about a user's account.
|
List<BasicAccount> |
getAccountBatch(List<String> accountIds)
Get information about multiple user accounts.
|
FullAccount |
getCurrentAccount()
Get information about the current user's account.
|
SpaceUsage |
getSpaceUsage()
Get the space usage information for the current user's account.
|
public DbxUserUsersRequests(DbxRawClientV2 client)
public BasicAccount getAccount(String accountId) throws GetAccountErrorException, DbxException
accountId
- A user's account identifier. Must have length of at
least 40, have length of at most 40, and not be null
.IllegalArgumentException
- If any argument does not meet its
preconditions.GetAccountErrorException
DbxException
public List<BasicAccount> getAccountBatch(List<String> accountIds) throws GetAccountBatchErrorException, DbxException
accountIds
- List of user account identifiers. Should not contain
any duplicate account IDs. Must contain at least 1 items, not contain
a null
item, and not be null
.IllegalArgumentException
- If any argument does not meet its
preconditions.GetAccountBatchErrorException
DbxException
public FullAccount getCurrentAccount() throws DbxApiException, DbxException
DbxApiException
DbxException
public SpaceUsage getSpaceUsage() throws DbxApiException, DbxException
DbxApiException
DbxException