
## GetInstance (1 of 4) {#getinstance_1}

Gets instance of Gmail client

**Returns:** Returns instance of Gmail client

```cpp
GetInstance(System::String accessToken, System::SharedPtr < System::Net::IWebProxy > proxy, System::String defaultEmail)
```

| Parameter | Description |
| --- | --- |
| accessToken | OAuth 2.0 access token |
| proxy | IWebProxy for Gmail client |
| defaultEmail | Default email address |

---

## GetInstance (2 of 4) {#getinstance_2}

Gets instance of Gmail client

**Returns:** Returns instance of Gmail client

```cpp
GetInstance(System::String accessToken, System::String defaultEmail)
```

| Parameter | Description |
| --- | --- |
| accessToken | OAuth 2.0 access token |
| defaultEmail | Default email address |

---

## GetInstance (3 of 4) {#getinstance_3}

Gets instance of Gmail client

**Returns:** Returns instance of Gmail client

```cpp
GetInstance(System::String clientId, System::String clientSecret, System::String refreshToken, System::SharedPtr < System::Net::IWebProxy > proxy, System::String defaultEmail)
```

| Parameter | Description |
| --- | --- |
| 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 |

---

## GetInstance (4 of 4) {#getinstance_4}

Gets instance of Gmail client

**Returns:** Returns instance of Gmail client

```cpp
GetInstance(System::String clientId, System::String clientSecret, System::String refreshToken, System::String defaultEmail)
```

| Parameter | Description |
| --- | --- |
| 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 |

