Base class for Gmail client More...
Inherits Aspose::Email::Clients::Google::IBaseGmailClient.
Public Member Functions | |
virtual ASPOSE_EMAIL_SHARED_API System::String | get_DefaultEmail () |
Gets default email address More... | |
virtual ASPOSE_EMAIL_SHARED_API void | set_DefaultEmail (System::String value) |
Sets default email address More... | |
virtual ASPOSE_EMAIL_SHARED_API System::String | get_AccessToken () |
Gets OAuth 2.0 access token In case if refresh token is set, access token is generated automatically. More... | |
virtual ASPOSE_EMAIL_SHARED_API void | set_AccessToken (System::String value) |
Sets OAuth 2.0 access token In case if refresh token is set, access token is generated automatically. More... | |
virtual ASPOSE_EMAIL_SHARED_API System::SharedPtr< System::Net::IWebProxy > | get_Proxy () |
Gets the proxy. More... | |
virtual ASPOSE_EMAIL_SHARED_API void | set_Proxy (System::SharedPtr< System::Net::IWebProxy > value) |
Sets the proxy. More... | |
virtual ASPOSE_EMAIL_SHARED_API int32_t | get_Timeout () |
Gets the number of milliseconds to wait before the operation times out. The default value is 100,000 milliseconds (100 seconds). More... | |
virtual ASPOSE_EMAIL_SHARED_API void | set_Timeout (int32_t value) |
Sets the number of milliseconds to wait before the operation times out. The default value is 100,000 milliseconds (100 seconds). More... | |
ASPOSE_EMAIL_SHARED_API | GmailClient (System::String clientId, System::String clientSecret, System::String refreshToken) |
Initializes a new instance of the GmailClient based class More... | |
ASPOSE_EMAIL_SHARED_API | GmailClient (System::String clientId, System::String clientSecret, System::String refreshToken, System::SharedPtr< System::Net::IWebProxy > proxy) |
Initializes a new instance of the GmailClient based class More... | |
ASPOSE_EMAIL_SHARED_API | GmailClient (System::String accessToken) |
Initializes a new instance of the GmailClient based class More... | |
ASPOSE_EMAIL_SHARED_API | GmailClient (System::String accessToken, System::SharedPtr< System::Net::IWebProxy > proxy) |
Initializes a new instance of the GmailClient based class More... | |
ASPOSE_EMAIL_SHARED_API | GmailClient (System::String clientId, System::String clientSecret, System::String refreshToken, System::String defaultEmail) |
Initializes a new instance of the GmailClient based class More... | |
ASPOSE_EMAIL_SHARED_API | GmailClient (System::String clientId, System::String clientSecret, System::String refreshToken, System::SharedPtr< System::Net::IWebProxy > proxy, System::String defaultEmail) |
Initializes a new instance of the GmailClient based class More... | |
ASPOSE_EMAIL_SHARED_API | GmailClient (System::String accessToken, System::String defaultEmail) |
Initializes a new instance of the GmailClient based class More... | |
ASPOSE_EMAIL_SHARED_API | GmailClient (System::String accessToken, System::SharedPtr< System::Net::IWebProxy > proxy, System::String defaultEmail) |
Initializes a new instance of the GmailClient based class More... | |
virtual ASPOSE_EMAIL_SHARED_API void | RefreshToken () |
Refresh access token More... | |
virtual ASPOSE_EMAIL_SHARED_API void | Dispose () |
Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources. More... | |
Static Public Member Functions | |
static ASPOSE_EMAIL_SHARED_API int32_t | get_DefaultTimeout () |
Gets the default timeout value for ActiveSync client instances The default value is 100,000 milliseconds (100 seconds). More... | |
static ASPOSE_EMAIL_SHARED_API void | set_DefaultTimeout (int32_t value) |
Sets the default timeout value for ActiveSync client instances The default value is 100,000 milliseconds (100 seconds). More... | |
static ASPOSE_EMAIL_SHARED_API System::SharedPtr< IGmailClient > | GetInstance (System::String accessToken, System::String defaultEmail) |
Gets instance of Gmail client More... | |
static ASPOSE_EMAIL_SHARED_API System::SharedPtr< IGmailClient > | GetInstance (System::String accessToken, System::SharedPtr< System::Net::IWebProxy > proxy, System::String defaultEmail) |
Gets instance of Gmail client More... | |
static ASPOSE_EMAIL_SHARED_API System::SharedPtr< IGmailClient > | GetInstance (System::String clientId, System::String clientSecret, System::String refreshToken, System::String defaultEmail) |
Gets instance of Gmail client More... | |
static ASPOSE_EMAIL_SHARED_API System::SharedPtr< IGmailClient > | GetInstance (System::String clientId, System::String clientSecret, System::String refreshToken, System::SharedPtr< System::Net::IWebProxy > proxy, System::String defaultEmail) |
Gets instance of Gmail client More... | |
Friends | |
class | Aspose::Email::Clients::Google::GmailClient_v3 |
Base class for Gmail client
ASPOSE_EMAIL_SHARED_API Aspose::Email::Clients::Google::GmailClient::GmailClient | ( | System::String | clientId, |
System::String | clientSecret, | ||
System::String | refreshToken | ||
) |
Initializes a new instance of the GmailClient based class
clientId | The client ID obtained from the Google Cloud Console during application registration. |
clientSecret | The client secret obtained during application registration. |
refreshToken | OAuth 2.0 refresh token |
ASPOSE_EMAIL_SHARED_API Aspose::Email::Clients::Google::GmailClient::GmailClient | ( | System::String | clientId, |
System::String | clientSecret, | ||
System::String | refreshToken, | ||
System::SharedPtr< System::Net::IWebProxy > | proxy | ||
) |
Initializes a new instance of the GmailClient based class
clientId | The client ID obtained from the Google Cloud Console during application registration. |
clientSecret | The client secret obtained during application registration. |
refreshToken | OAuth 2.0 refresh token |
proxy | IWebProxy for Gmail client |
ASPOSE_EMAIL_SHARED_API Aspose::Email::Clients::Google::GmailClient::GmailClient | ( | System::String | accessToken | ) |
Initializes a new instance of the GmailClient based class
accessToken | OAuth 2.0 access token |
ASPOSE_EMAIL_SHARED_API Aspose::Email::Clients::Google::GmailClient::GmailClient | ( | System::String | accessToken, |
System::SharedPtr< System::Net::IWebProxy > | proxy | ||
) |
Initializes a new instance of the GmailClient based class
accessToken | OAuth 2.0 access token |
proxy | IWebProxy for Gmail client |
ASPOSE_EMAIL_SHARED_API Aspose::Email::Clients::Google::GmailClient::GmailClient | ( | System::String | clientId, |
System::String | clientSecret, | ||
System::String | refreshToken, | ||
System::String | defaultEmail | ||
) |
Initializes a new instance of the GmailClient based class
clientId | The client ID obtained from the Google Cloud Console during application registration. |
clientSecret | The client secret obtained during application registration. |
refreshToken | OAuth 2.0 refresh token |
defaultEmail | Default email address |
ASPOSE_EMAIL_SHARED_API Aspose::Email::Clients::Google::GmailClient::GmailClient | ( | System::String | clientId, |
System::String | clientSecret, | ||
System::String | refreshToken, | ||
System::SharedPtr< System::Net::IWebProxy > | proxy, | ||
System::String | defaultEmail | ||
) |
Initializes a new instance of the GmailClient based class
clientId | The client ID obtained from the Google Cloud Console during application registration. |
clientSecret | The client secret obtained during application registration. |
refreshToken | OAuth 2.0 refresh token |
proxy | IWebProxy for Gmail client |
defaultEmail | Default email address |
ASPOSE_EMAIL_SHARED_API Aspose::Email::Clients::Google::GmailClient::GmailClient | ( | System::String | accessToken, |
System::String | defaultEmail | ||
) |
Initializes a new instance of the GmailClient based class
accessToken | OAuth 2.0 access token |
defaultEmail | Default email address |
ASPOSE_EMAIL_SHARED_API Aspose::Email::Clients::Google::GmailClient::GmailClient | ( | System::String | accessToken, |
System::SharedPtr< System::Net::IWebProxy > | proxy, | ||
System::String | defaultEmail | ||
) |
Initializes a new instance of the GmailClient based class
accessToken | OAuth 2.0 access token |
proxy | IWebProxy for Gmail client |
defaultEmail | Default email address |
|
virtual |
Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.
|
virtual |
Gets OAuth 2.0 access token In case if refresh token is set, access token is generated automatically.
Implements Aspose::Email::Clients::Google::IBaseGmailClient.
|
virtual |
Gets default email address
Implements Aspose::Email::Clients::Google::IBaseGmailClient.
|
static |
Gets the default timeout value for ActiveSync client instances The default value is 100,000 milliseconds (100 seconds).
|
virtual |
Gets the proxy.
Implements Aspose::Email::Clients::Google::IBaseGmailClient.
|
virtual |
Gets the number of milliseconds to wait before the operation times out. The default value is 100,000 milliseconds (100 seconds).
Implements Aspose::Email::Clients::Google::IBaseGmailClient.
|
static |
Gets instance of Gmail client
accessToken | OAuth 2.0 access token |
proxy | IWebProxy for Gmail client |
defaultEmail | Default email address |
|
static |
Gets instance of Gmail client
accessToken | OAuth 2.0 access token |
defaultEmail | Default email address |
|
static |
Gets instance of Gmail client
clientId | The client ID obtained from the Google Cloud Console during application registration. |
clientSecret | The client secret obtained during application registration. |
refreshToken | OAuth 2.0 refresh token |
proxy | IWebProxy for Gmail client |
defaultEmail | Default email address |
|
static |
Gets instance of Gmail client
clientId | The client ID obtained from the Google Cloud Console during application registration. |
clientSecret | The client secret obtained during application registration. |
refreshToken | OAuth 2.0 refresh token |
defaultEmail | Default email address |
|
virtual |
Refresh access token
Implements Aspose::Email::Clients::Google::IBaseGmailClient.
|
virtual |
Sets OAuth 2.0 access token In case if refresh token is set, access token is generated automatically.
Implements Aspose::Email::Clients::Google::IBaseGmailClient.
|
virtual |
Sets default email address
|
static |
Sets the default timeout value for ActiveSync client instances The default value is 100,000 milliseconds (100 seconds).
|
virtual |
Sets the proxy.
Implements Aspose::Email::Clients::Google::IBaseGmailClient.
|
virtual |
Sets the number of milliseconds to wait before the operation times out. The default value is 100,000 milliseconds (100 seconds).
Implements Aspose::Email::Clients::Google::IBaseGmailClient.
|
friend |