OAuthAccessToken Method (String, String)
Fetches Request Access from the specified URI

Namespace: MailBee
Assembly: MailBee.NET (in MailBee.NET.dll) Version: 11.2.0 build 590 for .NET 4.5
Syntax
public void AccessToken(
	string uri,
	string key
)

Parameters

uri
Type: SystemString
A URI for sending HTTP request.
key
Type: SystemString
A string with the verification code from the end user's browser authentication process.
Exceptions
ExceptionCondition
MailBeeInvalidArgumentExceptionuri or key is a null reference (Nothing in Visual Basic) or an empty string.
MailBeeDataParsingExceptionA URI has incorrect format.
MailBeeStreamExceptionA stream error occurred.
MailBeeWebExceptionHTTP connection error occurred.
MailBeeInvalidStateExceptionAuthorizeToken(String) should be called first.
Examples
See OAuth topic for the example.
See Also