IBaseGmailClient

All Implemented Interfaces: com.aspose.ms.System.IDisposable, java.io.Closeable

public interface IBaseGmailClient extends System.IDisposable, Closeable

Interface for base class of Gmail client

Methods

Method Description
getAccessToken() Gets or sets OAuth 2.0 bearer token
setAccessToken(String value) Gets or sets OAuth 2.0 bearer token
getProxy() Gets or sets the proxy.
setProxy(System.Net.IWebProxy value) Gets or sets the proxy.
getTimeout() Gets or sets the number of milliseconds to wait before the operation times out.
setTimeout(int value) Gets or sets the number of milliseconds to wait before the operation times out.
refreshToken() Refresh access token
getDefaultEmail() Gets default email address
close()

getAccessToken()

public abstract String getAccessToken()

Gets or sets OAuth 2.0 bearer token

Returns: java.lang.String

setAccessToken(String value)

public abstract void setAccessToken(String value)

Gets or sets OAuth 2.0 bearer token

Parameters:

Parameter Type Description
value java.lang.String

getProxy()

public abstract System.Net.IWebProxy getProxy()

Gets or sets the proxy.

Returns: com.aspose.ms.System.Net.IWebProxy

setProxy(System.Net.IWebProxy value)

public abstract void setProxy(System.Net.IWebProxy value)

Gets or sets the proxy.

Parameters:

Parameter Type Description
value com.aspose.ms.System.Net.IWebProxy

getTimeout()

public abstract int getTimeout()

Gets or sets the number of milliseconds to wait before the operation times out. The default value is 100,000 milliseconds (100 seconds).

Returns: int

setTimeout(int value)

public abstract void setTimeout(int value)

Gets or sets the number of milliseconds to wait before the operation times out. The default value is 100,000 milliseconds (100 seconds).

Parameters:

Parameter Type Description
value int

refreshToken()

public abstract void refreshToken()

Refresh access token

getDefaultEmail()

public abstract String getDefaultEmail()

Gets default email address

Returns: java.lang.String

close()

public abstract void close()