IMultipleServicesTokenProvider.GetAccessToken
Contents
[
Hide
]GetAccessToken(string)
Gets oAuth access token. If token exists and its expiration date is not expired returns current token, otherwise requests new token from a server.
public OAuthToken GetAccessToken(string service)
Parameter | Type | Description |
---|---|---|
service | String | Services that this access token applies to. |
Return Value
Returns oAuth access token
See Also
- class OAuthToken
- interface IMultipleServicesTokenProvider
- namespace Aspose.Email.Clients
- assembly Aspose.Email
GetAccessToken(bool, string)
Gets oAuth access token.
public OAuthToken GetAccessToken(bool ignoreExistingToken, string service)
Parameter | Type | Description |
---|---|---|
ignoreExistingToken | Boolean | 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 | String | Services that this access token applies to. |
Return Value
Returns oAuth access token
See Also
- class OAuthToken
- interface IMultipleServicesTokenProvider
- namespace Aspose.Email.Clients
- assembly Aspose.Email