Click or drag to resize

DropboxOAuth2HelperProcessCodeFlowAsync Method (String, String, String, String, HttpClient)

Processes the second half of the OAuth 2.0 code flow.

Namespace:  Dropbox.Api
Assembly:  Dropbox.Api (in Dropbox.Api.dll) Version: 4.0
Syntax
public static Task<OAuth2Response> ProcessCodeFlowAsync(
	string code,
	string appKey,
	string appSecret,
	string redirectUri = null,
	HttpClient client = null
)

Parameters

code
Type: SystemString
The code acquired in the query parameters of the redirect from the initial authorize url.
appKey
Type: SystemString
The application key, found in the App Console.
appSecret
Type: SystemString
The application secret, found in the App Console.
redirectUri (Optional)
Type: SystemString
The redirect URI that was provided in the initial authorize URI, this is only used to validate that it matches the original request, it is not used to redirect again.
client (Optional)
Type: System.Net.HttpHttpClient
An optional http client instance used to make requests.

Return Value

Type: TaskOAuth2Response
The authorization response, containing the access token and uid of the authorized user
See Also