GetInstance

GmailClient.GetInstance method (1 of 4)

Gets instance of Gmail client

public static IGmailClient GetInstance(string accessToken, string defaultEmail)
Parameter Type Description
accessToken String OAuth 2.0 access token
defaultEmail String Default email address

Return Value

Returns instance of Gmail client

See Also


GmailClient.GetInstance method (2 of 4)

Gets instance of Gmail client

public static IGmailClient GetInstance(string accessToken, IWebProxy proxy, string defaultEmail)
Parameter Type Description
accessToken String OAuth 2.0 access token
proxy IWebProxy IWebProxy for Gmail client
defaultEmail String Default email address

Return Value

Returns instance of Gmail client

See Also


GmailClient.GetInstance method (3 of 4)

Gets instance of Gmail client

public static IGmailClient GetInstance(string clientId, string clientSecret, string refreshToken, 
    string defaultEmail)
Parameter Type Description
clientId String The client ID obtained from the Google Cloud Console during application registration.
clientSecret String The client secret obtained during application registration.
refreshToken String OAuth 2.0 refresh token
defaultEmail String Default email address

Return Value

Returns instance of Gmail client

See Also


GmailClient.GetInstance method (4 of 4)

Gets instance of Gmail client

public static IGmailClient GetInstance(string clientId, string clientSecret, string refreshToken, 
    IWebProxy proxy, string defaultEmail)
Parameter Type Description
clientId String The client ID obtained from the Google Cloud Console during application registration.
clientSecret String The client secret obtained during application registration.
refreshToken String OAuth 2.0 refresh token
proxy IWebProxy IWebProxy for Gmail client
defaultEmail String Default email address

Return Value

Returns instance of Gmail client

See Also