Package com.dropbox.core.v2.users
Class DbxUserUsersRequests
java.lang.Object
com.dropbox.core.v2.users.DbxUserUsersRequests
Routes in namespace "users".
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfeaturesGetValues(List<UserFeature> features) Get a list of feature values that may be configured for the current account.getAccount(String accountId) Get information about a user's account.getAccountBatch(List<String> accountIds) Get information about multiple user accounts.Get information about the current user's account.Get the space usage information for the current user's account.
-
Constructor Details
-
DbxUserUsersRequests
-
-
Method Details
-
featuresGetValues
public UserFeaturesGetValuesBatchResult featuresGetValues(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 anullitem and not benull.- Throws:
IllegalArgumentException- If any argument does not meet its preconditions.UserFeaturesGetValuesBatchErrorExceptionDbxException
-
getAccount
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:
IllegalArgumentException- If any argument does not meet its preconditions.GetAccountErrorExceptionDbxException
-
getAccountBatch
public List<BasicAccount> getAccountBatch(List<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 anullitem, and not benull.- Throws:
IllegalArgumentException- If any argument does not meet its preconditions.GetAccountBatchErrorExceptionDbxException
-
getCurrentAccount
Get information about the current user's account.- Returns:
- Detailed information about the current user's account.
- Throws:
DbxApiExceptionDbxException
-
getSpaceUsage
Get the space usage information for the current user's account.- Returns:
- Information about a user's space usage and quota.
- Throws:
DbxApiExceptionDbxException
-