
## GetInstance {#getinstance}

Gets an instance of the OutlookTokenProvider for defined parameters.

**Returns:** Returns an instance of the OutlookTokenProvider for defined parameters.

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

| Parameter | Description |
| --- | --- |
| requestUrl | The url to obtain access token. |
| clientId | The client ID obtained from the Microsoft account Developer Center during application registration. |
| clientSecret | The client secret obtained during application registration. |
| refreshToken | OAuth 2.0 refresh token |

