Click or drag to resize
TokenClientExtensionsRequestTokenFromCodeAsync Method
RequestTokenFromCodeAsync call

Namespace:  Intuit.Ipp.OAuth2PlatformClient
Assembly:  Intuit.Ipp.OAuth2PlatformClient (in Intuit.Ipp.OAuth2PlatformClient.dll) Version: 4.0.0.0 (4.0.0.0)
Syntax
C#
public static Task<TokenResponse> RequestTokenFromCodeAsync(
	this TokenClient client,
	string code,
	string redirectUri,
	string codeVerifier = null,
	Object extra = null,
	CancellationToken cancellationToken = null
)

Parameters

client
Type: Intuit.Ipp.OAuth2PlatformClientTokenClient
client
code
Type: SystemString
code
redirectUri
Type: SystemString
redirectUri
codeVerifier (Optional)
Type: SystemString
codeVerifier
extra (Optional)
Type: SystemObject
extra
cancellationToken (Optional)
Type: System.ThreadingCancellationToken
cancellationToken

Return Value

Type: TaskTokenResponse
task of TokenResponse

Usage Note

In Visual Basic and C#, you can call this method as an instance method on any object of type TokenClient. When you use instance method syntax to call this method, omit the first parameter. For more information, see Extension Methods (Visual Basic) or Extension Methods (C# Programming Guide).
See Also