Package com.dropbox.core.v2.users
Class DbxUserUsersRequests
- java.lang.Object
-
- com.dropbox.core.v2.users.DbxUserUsersRequests
-
public class DbxUserUsersRequests extends java.lang.Object
Routes in namespace "users".
-
-
Constructor Summary
Constructors Constructor Description DbxUserUsersRequests(DbxRawClientV2 client)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description UserFeaturesGetValuesBatchResult
featuresGetValues(java.util.List<UserFeature> features)
Get a list of feature values that may be configured for the current account.BasicAccount
getAccount(java.lang.String accountId)
Get information about a user's account.java.util.List<BasicAccount>
getAccountBatch(java.util.List<java.lang.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.
-
-
-
Constructor Detail
-
DbxUserUsersRequests
public DbxUserUsersRequests(DbxRawClientV2 client)
-
-
Method Detail
-
featuresGetValues
public UserFeaturesGetValuesBatchResult featuresGetValues(java.util.List<UserFeature> features) throws UserFeaturesGetValuesBatchErrorException, DbxException
Get a list of feature values that may be configured for the current account.- Parameters:
features
- A list of features inUserFeature
. If the list is empty, this route will returnUserFeaturesGetValuesBatchError
. Must not contain anull
item and not benull
.- Throws:
java.lang.IllegalArgumentException
- If any argument does not meet its preconditions.UserFeaturesGetValuesBatchErrorException
DbxException
-
getAccount
public BasicAccount getAccount(java.lang.String accountId) throws GetAccountErrorException, DbxException
Get information about a user's account.- Parameters:
accountId
- A user's account identifier. Must have length of at least 40, have length of at most 40, and not benull
.- Returns:
- Basic information about any account.
- Throws:
java.lang.IllegalArgumentException
- If any argument does not meet its preconditions.GetAccountErrorException
DbxException
-
getAccountBatch
public java.util.List<BasicAccount> getAccountBatch(java.util.List<java.lang.String> accountIds) throws GetAccountBatchErrorException, DbxException
Get information about multiple user accounts. At most 300 accounts may be queried per request.- Parameters:
accountIds
- List of user account identifiers. Should not contain any duplicate account IDs. Must contain at least 1 items, not contain anull
item, and not benull
.- Throws:
java.lang.IllegalArgumentException
- If any argument does not meet its preconditions.GetAccountBatchErrorException
DbxException
-
getCurrentAccount
public FullAccount getCurrentAccount() throws DbxApiException, DbxException
Get information about the current user's account.- Returns:
- Detailed information about the current user's account.
- Throws:
DbxApiException
DbxException
-
getSpaceUsage
public SpaceUsage getSpaceUsage() throws DbxApiException, DbxException
Get the space usage information for the current user's account.- Returns:
- Information about a user's space usage and quota.
- Throws:
DbxApiException
DbxException
-
-