OAuth2GetXOAuthKey Method
Fetches XOAuth key for the specified e-mail address.

Namespace: MailBee
Assembly: MailBee.NET (in MailBee.NET.dll) Version: 12.4 build 677 for .NET 4.5
Syntax
public string GetXOAuthKey(
	string email,
	string accessToken
)

Parameters

email
Type: SystemString
E-mail address, like user@domain.com.
accessToken
Type: SystemString
Access token (GetAccessToken method in the code example creates it).

Return Value

Type: String
A string with URI for XOAuth authentication process for IMAP/SMTP.
Exceptions
ExceptionCondition
MailBeeInvalidArgumentExceptionemail or accessToken is a null reference (Nothing in Visual Basic) or an empty string.
Examples
See OAuth2 topic for the example.
See Also