MailBee.NET Objects 7.2

OAuth.AccessToken Method (String, String, StringDictionary)

Fetches Request Access from the specified URI passing extra parameters in that URI.

public void AccessToken(
   string uri,
   string key,
   StringDictionary parameters
);

Parameters

uri
An URI for sending HTTP request.
key
A string with the verification code from the end user's browser authentication process.
parameters
A StringDictionary object with the parameters list.

Exceptions

Exception Type Condition
MailBeeInvalidArgumentException uri or key is a null reference (Nothing in Visual Basic) or an empty string.
MailBeeDataParsingException A URI has incorrect format.
MailBeeStreamException A stream error occurred.
MailBeeWebException HTTP connection error occurred.
MailBeeInvalidStateException AuthorizeToken should be called first.

Example

See OAuth topic for the example.

See Also

OAuth Class | MailBee Namespace | OAuth.AccessToken Overload List