Class CheckUserRoutes
The routes for the Dropbox.Api.Check namespace
Inheritance
Inherited Members
Namespace: Dropbox.Api.Check.Routes
Assembly: Dropbox.Api.dll
Syntax
public class CheckUserRoutes
Methods
| Improve this Doc View SourceBeginUser(EchoArg, AsyncCallback, Object)
Begins an asynchronous send to the user route.
Declaration
public IAsyncResult BeginUser(EchoArg echoArg, AsyncCallback callback, object state = null)
Parameters
Type | Name | Description |
---|---|---|
EchoArg | echoArg | 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. |
BeginUser(String, AsyncCallback, Object)
Begins an asynchronous send to the user route.
Declaration
public IAsyncResult BeginUser(string query = "", AsyncCallback callback = null, object callbackState = null)
Parameters
Type | Name | Description |
---|---|---|
System.String | query | The string that you'd like to be echoed back to you. |
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. |
EndUser(IAsyncResult)
Waits for the pending asynchronous send to the user route to complete
Declaration
public EchoResult EndUser(IAsyncResult asyncResult)
Parameters
Type | Name | Description |
---|---|---|
System.IAsyncResult | asyncResult | The reference to the pending asynchronous send request |
Returns
Type | Description |
---|---|
EchoResult | The response to the send request |
UserAsync(EchoArg)
This endpoint performs User Authentication, validating the supplied access token, and returns the supplied string, to allow you to test your code and connection to the Dropbox API. It has no other effect. If you receive an HTTP 200 response with the supplied query, it indicates at least part of the Dropbox API infrastructure is working and that the access token is valid.
Declaration
public Task<EchoResult> UserAsync(EchoArg echoArg)
Parameters
Type | Name | Description |
---|---|---|
EchoArg | echoArg | The request parameters |
Returns
Type | Description |
---|---|
System.Threading.Tasks.Task<EchoResult> | The task that represents the asynchronous send operation. The TResult parameter contains the response from the server. |
UserAsync(String)
This endpoint performs User Authentication, validating the supplied access token, and returns the supplied string, to allow you to test your code and connection to the Dropbox API. It has no other effect. If you receive an HTTP 200 response with the supplied query, it indicates at least part of the Dropbox API infrastructure is working and that the access token is valid.
Declaration
public Task<EchoResult> UserAsync(string query = "")
Parameters
Type | Name | Description |
---|---|---|
System.String | query | The string that you'd like to be echoed back to you. |
Returns
Type | Description |
---|---|
System.Threading.Tasks.Task<EchoResult> | The task that represents the asynchronous send operation. The TResult parameter contains the response from the server. |