Package com.dropbox.core.v2.users
Class DbxUserUsersRequests
- java.lang.Object
-
- com.dropbox.core.v2.users.DbxUserUsersRequests
-
public class DbxUserUsersRequests extends java.lang.ObjectRoutes in namespace "users".
-
-
Constructor Summary
Constructors Constructor Description DbxUserUsersRequests(DbxRawClientV2 client)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description UserFeaturesGetValuesBatchResultfeaturesGetValues(java.util.List<UserFeature> features)Get a list of feature values that may be configured for the current account.BasicAccountgetAccount(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.FullAccountgetCurrentAccount()Get information about the current user's account.SpaceUsagegetSpaceUsage()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 anullitem and not benull.- Throws:
java.lang.IllegalArgumentException- If any argument does not meet its preconditions.UserFeaturesGetValuesBatchErrorExceptionDbxException
-
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.GetAccountErrorExceptionDbxException
-
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 anullitem, and not benull.- Throws:
java.lang.IllegalArgumentException- If any argument does not meet its preconditions.GetAccountBatchErrorExceptionDbxException
-
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:
DbxApiExceptionDbxException
-
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:
DbxApiExceptionDbxException
-
-