TokenProvider.GetInstance
TokenProvider.GetInstance method
Gets an instance of the OutlookTokenProvider for defined parameters.
public static TokenProvider GetInstance(string requestUrl, string clientId, string clientSecret,
string refreshToken)
| Parameter | Type | Description |
|---|---|---|
| requestUrl | String | The url to obtain access token. |
| clientId | String | The client ID obtained from the Microsoft account Developer Center during application registration. |
| clientSecret | String | The client secret obtained during application registration. |
| refreshToken | String | OAuth 2.0 refresh token |
Return Value
Returns an instance of the OutlookTokenProvider for defined parameters.
See Also
- class TokenProvider
- namespace Aspose.Email.Clients
- assembly Aspose.Email