TokenProvider.Outlook.GetInstance

TokenProvider.Outlook.GetInstance method

Gets an instance of the TokenProvider for Outlook mail server

public static TokenProvider GetInstance(string clientId, string clientSecret, string refreshToken)
ParameterTypeDescription
clientIdStringThe client ID obtained from the Microsoft account Developer Center during application registration.
clientSecretStringThe client secret obtained during application registration.
refreshTokenStringOAuth 2.0 refresh token

Return Value

Returns an instance of the OutlookTokenProvider for defined parameters.

See Also