MailBee.NET Objects 7.2

OAuth.GetXOAuthKey Method (String, StringDictionary)

Fetches XOAuth key from the specified URI passing extra parameters in that URI.

public string GetXOAuthKey(
   string uri,
   StringDictionary parameters
);

Parameters

uri
A URI for producing XOAuth key string.
parameters
A StringDictionary object with parameters list.

Return Value

A string with the URI for XOAuth authentication process for IMAP/SMTP.

Remarks

The return value of this method is what you then supply as a password when calling Login method of IMAP or SMTP component. Moreover, this value can be used not only with MailBee, you can pass it as OAuth key to any implementation of XOAUTH authentication.

Exceptions

Exception Type Condition
MailBeeInvalidArgumentException uri is a null reference (Nothing in Visual Basic) or an empty string.

Example

See OAuth topic for the example.

See Also

OAuth Class | MailBee Namespace | OAuth.GetXOAuthKey Overload List