Class AuthAppRoutes
The routes for the Dropbox.
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 |
---|---|---|
Token |
tokenFromOAuth1Arg | The request parameters. |
System. |
callback | The method to be called when the asynchronous send is completed. |
System. |
state | A user provided object that distinguished this send from other send requests. |
Returns
Type | Description |
---|---|
System. |
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. |
oauth1Token | The supplied OAuth 1.0 access token. |
System. |
oauth1TokenSecret | The token secret associated with the supplied access token. |
System. |
callback | The method to be called when the asynchronous send is completed. |
System. |
callbackState | A user provided object that distinguished this send from other send requests. |
Returns
Type | Description |
---|---|
System. |
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. |
asyncResult | The reference to the pending asynchronous send request |
Returns
Type | Description |
---|---|
Token |
The response to the send request |
Exceptions
Type | Condition |
---|---|
Api |
Thrown if there is an error
processing the request; This will contain a Token |
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 |
---|---|---|
Token |
tokenFromOAuth1Arg | The request parameters |
Returns
Type | Description |
---|---|
System. |
The task that represents the asynchronous send operation. The TResult parameter contains the response from the server. |
Exceptions
Type | Condition |
---|---|
Api |
Thrown if there is an error
processing the request; This will contain a Token |
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. |
oauth1Token | The supplied OAuth 1.0 access token. |
System. |
oauth1TokenSecret | The token secret associated with the supplied access token. |
Returns
Type | Description |
---|---|
System. |
The task that represents the asynchronous send operation. The TResult parameter contains the response from the server. |
Exceptions
Type | Condition |
---|---|
Api |
Thrown if there is an error
processing the request; This will contain a Token |