OAuthBase.GetSpecifiedTokenOrCurrent Method
OAuthBase GetSpecifiedTokenOrCurrent Method Nemiro.OAuth
Returns the specified access token or the current access token.

Namespace: Nemiro.OAuth
Assembly: Nemiro.OAuth (in Nemiro.OAuth.dll) Version: 1.9.4.725 (1.9.4.725)
Syntax

protected AccessToken GetSpecifiedTokenOrCurrent(
	AccessToken value,
	bool refreshTokenRequired = false
)

Parameters

value
Type: Nemiro.OAuth AccessToken
May contain an access token, which will be refunded.
refreshTokenRequired (Optional)
Type: System Boolean
Indicates the need to check the parameter refresh_token in the access token. Default: false.

Return Value

Type: AccessToken
Exceptions

ExceptionCondition
AccessTokenException

Access token is not found or is not specified.

-or-

refresh_token value is empty.

See Also