GmailClient.GetInstanceAsync

GetInstanceAsync(string, string)

Gets instance of Gmail client for asynchronous operation.

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

Return Value

Returns instance of Gmail client

See Also


GetInstanceAsync(string, IWebProxy, string)

Gets instance of Gmail client for asynchronous operation.

public static IGmailClientAsync GetInstanceAsync(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


GetInstanceAsync(string, string, string, string)

Gets instance of Gmail client for asynchronous operation.

public static IGmailClientAsync GetInstanceAsync(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


GetInstanceAsync(string, string, string, IWebProxy, string)

Gets instance of Gmail client for asynchronous operation.

public static IGmailClientAsync GetInstanceAsync(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