MailBee.NET Objects 7.2

OAuth Constructor 

Initializes a new instance of OAuth object with a consumer key pair.

public OAuth(
   string consumerKey,
   string consumerSecret
);

Parameters

consumerKey
A string value with a consumer public key.
consumerSecret
A string value with a consumer secret key.

Remarks

For GMail 3-legged IMAP/SMTP OAuth you can use "anonymous", "anonymous" key pair or get a registered site for an e-mail account and specify the keys from Google "Registration for Web Applications" page. For GMail 2-legged OAuth you should register and get key pair from Google.

Exceptions

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

See Also

OAuth Class | MailBee Namespace