UsersRoutes
public class UsersRoutes : DropboxTransportClientOwning
Routes for the users namespace For Objective-C compatible routes see DBUsersRoutes
-
Get a list of feature values that may be configured for the current account.
scope: account_info.read
Declaration
Swift
@discardableResult public func featuresGetValues(features: [Users.UserFeature]) -> RpcRequest<Users.UserFeaturesGetValuesBatchResultSerializer, Users.UserFeaturesGetValuesBatchErrorSerializer>Parameters
featuresA list of features in UserFeature. If the list is empty, this route will return UserFeaturesGetValuesBatchError.
Return Value
Through the response callback, the caller will receive a
Users.UserFeaturesGetValuesBatchResultobject on success or aUsers.UserFeaturesGetValuesBatchErrorobject on failure. -
Get information about a user’s account.
scope: sharing.read
Declaration
Swift
@discardableResult public func getAccount(accountId: String) -> RpcRequest<Users.BasicAccountSerializer, Users.GetAccountErrorSerializer>Parameters
accountIdA user’s account identifier.
Return Value
Through the response callback, the caller will receive a
Users.BasicAccountobject on success or aUsers.GetAccountErrorobject on failure. -
Get information about multiple user accounts. At most 300 accounts may be queried per request.
scope: sharing.read
Declaration
Swift
@discardableResult public func getAccountBatch(accountIds: [String]) -> RpcRequest<ArraySerializer<Users.BasicAccountSerializer>, Users.GetAccountBatchErrorSerializer>Parameters
accountIdsList of user account identifiers. Should not contain any duplicate account IDs.
Return Value
Through the response callback, the caller will receive a
Array<Users.BasicAccount>object on success or aUsers.GetAccountBatchErrorobject on failure. -
Get information about the current user’s account.
scope: account_info.read
Declaration
Swift
@discardableResult public func getCurrentAccount() -> RpcRequest<Users.FullAccountSerializer, VoidSerializer>Return Value
Through the response callback, the caller will receive a
Users.FullAccountobject on success or aVoidobject on failure. -
Get the space usage information for the current user’s account.
scope: account_info.read
Declaration
Swift
@discardableResult public func getSpaceUsage() -> RpcRequest<Users.SpaceUsageSerializer, VoidSerializer>Return Value
Through the response callback, the caller will receive a
Users.SpaceUsageobject on success or aVoidobject on failure.
View on GitHub
UsersRoutes Class Reference