Class AuthAppRoutes
The routes for the Dropbox.Api.Auth namespace
Inheritance
Inherited Members
Namespace: Dropbox.Api.Auth.Routes
Assembly: Dropbox.Api.dll
Syntax
public class AuthAppRoutes
Methods
| Improve this Doc View SourceBeginTokenFromOauth1(TokenFromOAuth1Arg, AsyncCallback, Object)
Begins an asynchronous send to the token from oauth1 route.
Declaration
public IAsyncResult BeginTokenFromOauth1(TokenFromOAuth1Arg tokenFromOAuth1Arg, AsyncCallback callback, object state = null)
Parameters
Type | Name | Description |
---|---|---|
TokenFromOAuth1Arg | tokenFromOAuth1Arg | 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. |
BeginTokenFromOauth1(String, String, AsyncCallback, Object)
Begins an asynchronous send to the token from oauth1 route.
Declaration
public IAsyncResult BeginTokenFromOauth1(string oauth1Token, string oauth1TokenSecret, AsyncCallback callback, object callbackState = null)
Parameters
Type | Name | Description |
---|---|---|
System.String | oauth1Token | The supplied OAuth 1.0 access token. |
System.String | oauth1TokenSecret | The token secret associated with the supplied access token. |
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. |
EndTokenFromOauth1(IAsyncResult)
Waits for the pending asynchronous send to the token from oauth1 route to complete
Declaration
public TokenFromOAuth1Result EndTokenFromOauth1(IAsyncResult asyncResult)
Parameters
Type | Name | Description |
---|---|---|
System.IAsyncResult | asyncResult | The reference to the pending asynchronous send request |
Returns
Type | Description |
---|---|
TokenFromOAuth1Result | The response to the send request |
Exceptions
Type | Condition |
---|---|
ApiException<TError> | Thrown if there is an error processing the request; This will contain a TokenFromOAuth1Error. |
TokenFromOauth1Async(TokenFromOAuth1Arg)
Creates an OAuth 2.0 access token from the supplied OAuth 1.0 access token.
Declaration
public Task<TokenFromOAuth1Result> TokenFromOauth1Async(TokenFromOAuth1Arg tokenFromOAuth1Arg)
Parameters
Type | Name | Description |
---|---|---|
TokenFromOAuth1Arg | tokenFromOAuth1Arg | The request parameters |
Returns
Type | Description |
---|---|
System.Threading.Tasks.Task<TokenFromOAuth1Result> | 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 TokenFromOAuth1Error. |
TokenFromOauth1Async(String, String)
Creates an OAuth 2.0 access token from the supplied OAuth 1.0 access token.
Declaration
public Task<TokenFromOAuth1Result> TokenFromOauth1Async(string oauth1Token, string oauth1TokenSecret)
Parameters
Type | Name | Description |
---|---|---|
System.String | oauth1Token | The supplied OAuth 1.0 access token. |
System.String | oauth1TokenSecret | The token secret associated with the supplied access token. |
Returns
Type | Description |
---|---|
System.Threading.Tasks.Task<TokenFromOAuth1Result> | 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 TokenFromOAuth1Error. |