Class UsersUserRoutes
The routes for the Dropbox.Api.Users namespace
Inheritance
Inherited Members
Namespace: Dropbox.Api.Users.Routes
Assembly: Dropbox.Api.dll
Syntax
public class UsersUserRoutes
Methods
| Improve this Doc View SourceBeginFeaturesGetValues(UserFeaturesGetValuesBatchArg, AsyncCallback, Object)
Begins an asynchronous send to the features get values route.
Declaration
public IAsyncResult BeginFeaturesGetValues(UserFeaturesGetValuesBatchArg userFeaturesGetValuesBatchArg, AsyncCallback callback, object state = null)
Parameters
Type | Name | Description |
---|---|---|
UserFeaturesGetValuesBatchArg | userFeaturesGetValuesBatchArg | The request parameters. |
System.AsyncCallback | callback | The method to be called when the asynchronous send is completed. |
System.Object | state | A user provided object that distinguished this send from other send requests. |
Returns
Type | Description |
---|---|
System.IAsyncResult | An object that represents the asynchronous send request. |
BeginFeaturesGetValues(IEnumerable<UserFeature>, AsyncCallback, Object)
Begins an asynchronous send to the features get values route.
Declaration
public IAsyncResult BeginFeaturesGetValues(IEnumerable<UserFeature> features, AsyncCallback callback, object callbackState = null)
Parameters
Type | Name | Description |
---|---|---|
System.Collections.Generic.IEnumerable<UserFeature> | features | A list of features in UserFeature. If the list is empty, this route will return UserFeaturesGetValuesBatchError. |
System.AsyncCallback | callback | The method to be called when the asynchronous send is completed. |
System.Object | callbackState | A user provided object that distinguished this send from other send requests. |
Returns
Type | Description |
---|---|
System.IAsyncResult | An object that represents the asynchronous send request. |
BeginGetAccount(GetAccountArg, AsyncCallback, Object)
Begins an asynchronous send to the get account route.
Declaration
public IAsyncResult BeginGetAccount(GetAccountArg getAccountArg, AsyncCallback callback, object state = null)
Parameters
Type | Name | Description |
---|---|---|
GetAccountArg | getAccountArg | The request parameters. |
System.AsyncCallback | callback | The method to be called when the asynchronous send is completed. |
System.Object | state | A user provided object that distinguished this send from other send requests. |
Returns
Type | Description |
---|---|
System.IAsyncResult | An object that represents the asynchronous send request. |
BeginGetAccount(String, AsyncCallback, Object)
Begins an asynchronous send to the get account route.
Declaration
public IAsyncResult BeginGetAccount(string accountId, AsyncCallback callback, object callbackState = null)
Parameters
Type | Name | Description |
---|---|---|
System.String | accountId | A user's account identifier. |
System.AsyncCallback | callback | The method to be called when the asynchronous send is completed. |
System.Object | callbackState | A user provided object that distinguished this send from other send requests. |
Returns
Type | Description |
---|---|
System.IAsyncResult | An object that represents the asynchronous send request. |
BeginGetAccountBatch(GetAccountBatchArg, AsyncCallback, Object)
Begins an asynchronous send to the get account batch route.
Declaration
public IAsyncResult BeginGetAccountBatch(GetAccountBatchArg getAccountBatchArg, AsyncCallback callback, object state = null)
Parameters
Type | Name | Description |
---|---|---|
GetAccountBatchArg | getAccountBatchArg | The request parameters. |
System.AsyncCallback | callback | The method to be called when the asynchronous send is completed. |
System.Object | state | A user provided object that distinguished this send from other send requests. |
Returns
Type | Description |
---|---|
System.IAsyncResult | An object that represents the asynchronous send request. |
BeginGetAccountBatch(IEnumerable<String>, AsyncCallback, Object)
Begins an asynchronous send to the get account batch route.
Declaration
public IAsyncResult BeginGetAccountBatch(IEnumerable<string> accountIds, AsyncCallback callback, object callbackState = null)
Parameters
Type | Name | Description |
---|---|---|
System.Collections.Generic.IEnumerable<System.String> | accountIds | List of user account identifiers. Should not contain any duplicate account IDs. |
System.AsyncCallback | callback | The method to be called when the asynchronous send is completed. |
System.Object | callbackState | A user provided object that distinguished this send from other send requests. |
Returns
Type | Description |
---|---|
System.IAsyncResult | An object that represents the asynchronous send request. |
BeginGetCurrentAccount(AsyncCallback, Object)
Begins an asynchronous send to the get current account route.
Declaration
public IAsyncResult BeginGetCurrentAccount(AsyncCallback callback, object state = null)
Parameters
Type | Name | Description |
---|---|---|
System.AsyncCallback | callback | The method to be called when the asynchronous send is completed. |
System.Object | state | A user provided object that distinguished this send from other send requests. |
Returns
Type | Description |
---|---|
System.IAsyncResult | An object that represents the asynchronous send request. |
BeginGetSpaceUsage(AsyncCallback, Object)
Begins an asynchronous send to the get space usage route.
Declaration
public IAsyncResult BeginGetSpaceUsage(AsyncCallback callback, object state = null)
Parameters
Type | Name | Description |
---|---|---|
System.AsyncCallback | callback | The method to be called when the asynchronous send is completed. |
System.Object | state | A user provided object that distinguished this send from other send requests. |
Returns
Type | Description |
---|---|
System.IAsyncResult | An object that represents the asynchronous send request. |
EndFeaturesGetValues(IAsyncResult)
Waits for the pending asynchronous send to the features get values route to complete
Declaration
public UserFeaturesGetValuesBatchResult EndFeaturesGetValues(IAsyncResult asyncResult)
Parameters
Type | Name | Description |
---|---|---|
System.IAsyncResult | asyncResult | The reference to the pending asynchronous send request |
Returns
Type | Description |
---|---|
UserFeaturesGetValuesBatchResult | The response to the send request |
Exceptions
Type | Condition |
---|---|
ApiException<TError> | Thrown if there is an error processing the request; This will contain a UserFeaturesGetValuesBatchError. |
EndGetAccount(IAsyncResult)
Waits for the pending asynchronous send to the get account route to complete
Declaration
public BasicAccount EndGetAccount(IAsyncResult asyncResult)
Parameters
Type | Name | Description |
---|---|---|
System.IAsyncResult | asyncResult | The reference to the pending asynchronous send request |
Returns
Type | Description |
---|---|
BasicAccount | The response to the send request |
Exceptions
Type | Condition |
---|---|
ApiException<TError> | Thrown if there is an error processing the request; This will contain a GetAccountError. |
EndGetAccountBatch(IAsyncResult)
Waits for the pending asynchronous send to the get account batch route to complete
Declaration
public List<BasicAccount> EndGetAccountBatch(IAsyncResult asyncResult)
Parameters
Type | Name | Description |
---|---|---|
System.IAsyncResult | asyncResult | The reference to the pending asynchronous send request |
Returns
Type | Description |
---|---|
System.Collections.Generic.List<BasicAccount> | The response to the send request |
Exceptions
Type | Condition |
---|---|
ApiException<TError> | Thrown if there is an error processing the request; This will contain a GetAccountBatchError. |
EndGetCurrentAccount(IAsyncResult)
Waits for the pending asynchronous send to the get current account route to complete
Declaration
public FullAccount EndGetCurrentAccount(IAsyncResult asyncResult)
Parameters
Type | Name | Description |
---|---|---|
System.IAsyncResult | asyncResult | The reference to the pending asynchronous send request |
Returns
Type | Description |
---|---|
FullAccount | The response to the send request |
EndGetSpaceUsage(IAsyncResult)
Waits for the pending asynchronous send to the get space usage route to complete
Declaration
public SpaceUsage EndGetSpaceUsage(IAsyncResult asyncResult)
Parameters
Type | Name | Description |
---|---|---|
System.IAsyncResult | asyncResult | The reference to the pending asynchronous send request |
Returns
Type | Description |
---|---|
SpaceUsage | The response to the send request |
FeaturesGetValuesAsync(UserFeaturesGetValuesBatchArg)
Get a list of feature values that may be configured for the current account.
Declaration
public Task<UserFeaturesGetValuesBatchResult> FeaturesGetValuesAsync(UserFeaturesGetValuesBatchArg userFeaturesGetValuesBatchArg)
Parameters
Type | Name | Description |
---|---|---|
UserFeaturesGetValuesBatchArg | userFeaturesGetValuesBatchArg | The request parameters |
Returns
Type | Description |
---|---|
System.Threading.Tasks.Task<UserFeaturesGetValuesBatchResult> | The task that represents the asynchronous send operation. The TResult parameter contains the response from the server. |
Exceptions
Type | Condition |
---|---|
ApiException<TError> | Thrown if there is an error processing the request; This will contain a UserFeaturesGetValuesBatchError. |
FeaturesGetValuesAsync(IEnumerable<UserFeature>)
Get a list of feature values that may be configured for the current account.
Declaration
public Task<UserFeaturesGetValuesBatchResult> FeaturesGetValuesAsync(IEnumerable<UserFeature> features)
Parameters
Type | Name | Description |
---|---|---|
System.Collections.Generic.IEnumerable<UserFeature> | features | A list of features in UserFeature. If the list is empty, this route will return UserFeaturesGetValuesBatchError. |
Returns
Type | Description |
---|---|
System.Threading.Tasks.Task<UserFeaturesGetValuesBatchResult> | The task that represents the asynchronous send operation. The TResult parameter contains the response from the server. |
Exceptions
Type | Condition |
---|---|
ApiException<TError> | Thrown if there is an error processing the request; This will contain a UserFeaturesGetValuesBatchError. |
GetAccountAsync(GetAccountArg)
Get information about a user's account.
Declaration
public Task<BasicAccount> GetAccountAsync(GetAccountArg getAccountArg)
Parameters
Type | Name | Description |
---|---|---|
GetAccountArg | getAccountArg | The request parameters |
Returns
Type | Description |
---|---|
System.Threading.Tasks.Task<BasicAccount> | The task that represents the asynchronous send operation. The TResult parameter contains the response from the server. |
Exceptions
Type | Condition |
---|---|
ApiException<TError> | Thrown if there is an error processing the request; This will contain a GetAccountError. |
GetAccountAsync(String)
Get information about a user's account.
Declaration
public Task<BasicAccount> GetAccountAsync(string accountId)
Parameters
Type | Name | Description |
---|---|---|
System.String | accountId | A user's account identifier. |
Returns
Type | Description |
---|---|
System.Threading.Tasks.Task<BasicAccount> | The task that represents the asynchronous send operation. The TResult parameter contains the response from the server. |
Exceptions
Type | Condition |
---|---|
ApiException<TError> | Thrown if there is an error processing the request; This will contain a GetAccountError. |
GetAccountBatchAsync(GetAccountBatchArg)
Get information about multiple user accounts. At most 300 accounts may be queried per request.
Declaration
public Task<List<BasicAccount>> GetAccountBatchAsync(GetAccountBatchArg getAccountBatchArg)
Parameters
Type | Name | Description |
---|---|---|
GetAccountBatchArg | getAccountBatchArg | The request parameters |
Returns
Type | Description |
---|---|
System.Threading.Tasks.Task<System.Collections.Generic.List<BasicAccount>> | The task that represents the asynchronous send operation. The TResult parameter contains the response from the server. |
Exceptions
Type | Condition |
---|---|
ApiException<TError> | Thrown if there is an error processing the request; This will contain a GetAccountBatchError. |
GetAccountBatchAsync(IEnumerable<String>)
Get information about multiple user accounts. At most 300 accounts may be queried per request.
Declaration
public Task<List<BasicAccount>> GetAccountBatchAsync(IEnumerable<string> accountIds)
Parameters
Type | Name | Description |
---|---|---|
System.Collections.Generic.IEnumerable<System.String> | accountIds | List of user account identifiers. Should not contain any duplicate account IDs. |
Returns
Type | Description |
---|---|
System.Threading.Tasks.Task<System.Collections.Generic.List<BasicAccount>> | The task that represents the asynchronous send operation. The TResult parameter contains the response from the server. |
Exceptions
Type | Condition |
---|---|
ApiException<TError> | Thrown if there is an error processing the request; This will contain a GetAccountBatchError. |
GetCurrentAccountAsync()
Get information about the current user's account.
Declaration
public Task<FullAccount> GetCurrentAccountAsync()
Returns
Type | Description |
---|---|
System.Threading.Tasks.Task<FullAccount> | The task that represents the asynchronous send operation. The TResult parameter contains the response from the server. |
GetSpaceUsageAsync()
Get the space usage information for the current user's account.
Declaration
public Task<SpaceUsage> GetSpaceUsageAsync()
Returns
Type | Description |
---|---|
System.Threading.Tasks.Task<SpaceUsage> | The task that represents the asynchronous send operation. The TResult parameter contains the response from the server. |