Click or drag to resize
IEmailOAuthProviderCompleteAuthorization Method
Trades the provided authorizationCode for the access token. Stores the access token, token expiration and a refresh token into credentials.

Namespace: CMS.EmailEngine
Assembly: CMS.EmailEngine (in CMS.EmailEngine.dll) Version: 13.0.131
Syntax
C#
void CompleteAuthorization(
	string authorizationCode,
	string redirectUrl,
	EmailOAuthCredentialsInfo credentials
)

Parameters

authorizationCode
Type: SystemString
Authorization code which was obtained during OAuth flow.
redirectUrl
Type: SystemString
The same "redirect_uri" value that was used to acquire the authorizationCode.
credentials
Type: CMS.EmailEngineEmailOAuthCredentialsInfo
Credentials which were used during the OAuth flow. Access token will be stored in it.
See Also