YahooClient RefreshToken Method (AccessToken, String)Nemiro.OAuth
Sends a request to refresh the access token.

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

public AccessToken RefreshToken(
	AccessToken accessToken,
	string returnUrl
)

Parameters

accessToken
Type: Nemiro.OAuth AccessToken
May contain an access token, which should be refreshed.
returnUrl
Type: System String
Callback address that was used in obtaining the access token.

Return Value

Type: AccessToken
Exceptions

ExceptionCondition
NotSupportedException

Provider does not support refreshing the access token, or the method is not implemented.

Use the property SupportRefreshToken, to check the possibility of calling this method.

AccessTokenException

Access token is not found or is not specified.

-or-

refresh_token value is empty.

RequestExceptionError during execution of a web request.
ArgumentNullExceptionAn exception occurs if there is no authorization code.
Remarks

If accessToken parameter is not specified, it will use the current access token from the same property of the current class instance.

Token must contain the refresh_token, which was received together with the access token.

(!)To update the access token, you must specify the return address that was used in obtaining the access token.
See Also