IMultipleServicesTokenProviderGetAccessToken Method (Boolean, String)

Gets oAuth access token.

Namespace:  Aspose.Email.Clients
Assembly:  Aspose.Email (in Aspose.Email.dll) Version: 21.6
Syntax
OAuthToken GetAccessToken(
	bool ignoreExistingToken,
	string service
)

Parameters

ignoreExistingToken
Type: SystemBoolean
If ignoreExistingToken is true, requests new token from a server. Otherwise behaviour is depended on whether token exists or not. If token exists and its expiration date is not expired returns current token, otherwise requests new token from a server.
service
Type: SystemString
Services that this access token applies to.

Return Value

Type: OAuthToken
Returns oAuth access token
See Also