IMultipleServicesTokenProviderGetAccessToken Method (Boolean, String)

Gets oAuth access token.

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


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.
Type: SystemString
Services that this access token applies to.

Return Value

Type: OAuthToken
Returns oAuth access token
See Also