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