GmailClient.GetInstance

GetInstance(string, string)

Gets instance of Gmail client

public static IGmailClient GetInstance(string accessToken, string defaultEmail)
ParameterTypeDescription
accessTokenStringOAuth 2.0 access token
defaultEmailStringDefault email address

Return Value

Returns instance of Gmail client

See Also


GetInstance(string, IWebProxy, string)

Gets instance of Gmail client

public static IGmailClient GetInstance(string accessToken, IWebProxy proxy, string defaultEmail)
ParameterTypeDescription
accessTokenStringOAuth 2.0 access token
proxyIWebProxyIWebProxy for Gmail client
defaultEmailStringDefault email address

Return Value

Returns instance of Gmail client

See Also


GetInstance(string, string, string, string)

Gets instance of Gmail client

public static IGmailClient GetInstance(string clientId, string clientSecret, string refreshToken, 
    string defaultEmail)
ParameterTypeDescription
clientIdStringThe client ID obtained from the Google Cloud Console during application registration.
clientSecretStringThe client secret obtained during application registration.
refreshTokenStringOAuth 2.0 refresh token
defaultEmailStringDefault email address

Return Value

Returns instance of Gmail client

See Also


GetInstance(string, string, string, IWebProxy, string)

Gets instance of Gmail client

public static IGmailClient GetInstance(string clientId, string clientSecret, string refreshToken, 
    IWebProxy proxy, string defaultEmail)
ParameterTypeDescription
clientIdStringThe client ID obtained from the Google Cloud Console during application registration.
clientSecretStringThe client secret obtained during application registration.
refreshTokenStringOAuth 2.0 refresh token
proxyIWebProxyIWebProxy for Gmail client
defaultEmailStringDefault email address

Return Value

Returns instance of Gmail client

See Also