Class AuthAppRoutes
The routes for the Dropbox.Api.Auth namespace
Inherited Members
Namespace: Dropbox.Api.Auth.Routes
Assembly: Dropbox.Api.dll
Syntax
public class AuthAppRoutes
Methods
View SourceBeginTokenFromOauth1(TokenFromOAuth1Arg, AsyncCallback, object)
Begins an asynchronous send to the token from oauth1 route.
Declaration
[Obsolete("This function is deprecated")]
public IAsyncResult BeginTokenFromOauth1(TokenFromOAuth1Arg tokenFromOAuth1Arg, AsyncCallback callback, object state = null)
Parameters
| Type | Name | Description |
|---|---|---|
| TokenFromOAuth1Arg | tokenFromOAuth1Arg | The request parameters. |
| AsyncCallback | callback | The method to be called when the asynchronous send is completed. |
| object | state | A user provided object that distinguished this send from other send requests. |
Returns
| Type | Description |
|---|---|
| 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
[Obsolete("This function is deprecated")]
public IAsyncResult BeginTokenFromOauth1(string oauth1Token, string oauth1TokenSecret, AsyncCallback callback, object callbackState = null)
Parameters
| Type | Name | Description |
|---|---|---|
| string | oauth1Token | The supplied OAuth 1.0 access token. |
| string | oauth1TokenSecret | The token secret associated with the supplied access token. |
| AsyncCallback | callback | The method to be called when the asynchronous send is completed. |
| object | callbackState | A user provided object that distinguished this send from other send requests. |
Returns
| Type | Description |
|---|---|
| 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
[Obsolete("This function is deprecated")]
public TokenFromOAuth1Result EndTokenFromOauth1(IAsyncResult asyncResult)
Parameters
| Type | Name | Description |
|---|---|---|
| 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
[Obsolete("This function is deprecated")]
public Task<TokenFromOAuth1Result> TokenFromOauth1Async(TokenFromOAuth1Arg tokenFromOAuth1Arg)
Parameters
| Type | Name | Description |
|---|---|---|
| TokenFromOAuth1Arg | tokenFromOAuth1Arg | The request parameters |
Returns
| Type | Description |
|---|---|
| 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
[Obsolete("This function is deprecated")]
public Task<TokenFromOAuth1Result> TokenFromOauth1Async(string oauth1Token, string oauth1TokenSecret)
Parameters
| Type | Name | Description |
|---|---|---|
| string | oauth1Token | The supplied OAuth 1.0 access token. |
| string | oauth1TokenSecret | The token secret associated with the supplied access token. |
Returns
| Type | Description |
|---|---|
| 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. |