UnifiedTo 0.130.11
dotnet add package UnifiedTo --version 0.130.11
NuGet\Install-Package UnifiedTo -Version 0.130.11
<PackageReference Include="UnifiedTo" Version="0.130.11" />
<PackageVersion Include="UnifiedTo" Version="0.130.11" />
<PackageReference Include="UnifiedTo" />
paket add UnifiedTo --version 0.130.11
#r "nuget: UnifiedTo, 0.130.11"
#:package UnifiedTo@0.130.11
#addin nuget:?package=UnifiedTo&version=0.130.11
#tool nuget:?package=UnifiedTo&version=0.130.11
UnifiedTo
SDK Example Usage
Example
using UnifiedTo;
using UnifiedTo.Models.Components;
var sdk = new UnifiedToSDK(security: new Security() {
Jwt = "<YOUR_API_KEY_HERE>",
});
var res = await sdk.Accounting.CreateAccountingAccountAsync(
accountingAccount: new AccountingAccount() {},
connectionId: "<id>"
);
// handle response
Authentication
Per-Client Security Schemes
This SDK supports the following security scheme globally:
| Name | Type | Scheme |
|---|---|---|
Jwt |
apiKey | API key |
You can set the security parameters through the security optional parameter when initializing the SDK client instance. For example:
using UnifiedTo;
using UnifiedTo.Models.Components;
var sdk = new UnifiedToSDK(security: new Security() {
Jwt = "<YOUR_API_KEY_HERE>",
});
var res = await sdk.Accounting.CreateAccountingAccountAsync(
accountingAccount: new AccountingAccount() {},
connectionId: "<id>"
);
// handle response
Error Handling
Handling errors in this SDK should largely match your expectations. All operations return a response object or throw an exception.
By default, an API error will raise a UnifiedTo.Models.Errors.SDKException exception, which has the following properties:
| Property | Type | Description |
|---|---|---|
Message |
string | The error message |
StatusCode |
int | The HTTP status code |
RawResponse |
HttpResponseMessage | The raw HTTP response |
Body |
string | The response content |
When custom error responses are specified for an operation, the SDK may also throw their associated exceptions. You can refer to respective Errors tables in SDK docs for more details on possible exception types for each operation. For example, the CreateAccountingAccountAsync method throws the following exceptions:
| Error Type | Status Code | Content Type |
|---|---|---|
| UnifiedTo.Models.Errors.SDKException | 4XX, 5XX | */* |
Example
using UnifiedTo;
using UnifiedTo.Models.Components;
using UnifiedTo.Models.Errors;
var sdk = new UnifiedToSDK(security: new Security() {
Jwt = "<YOUR_API_KEY_HERE>",
});
try
{
var res = await sdk.Accounting.CreateAccountingAccountAsync(
accountingAccount: new AccountingAccount() {},
connectionId: "<id>"
);
// handle response
}
catch (Exception ex)
{
if (ex is UnifiedTo.Models.Errors.SDKException)
{
// Handle default exception
throw;
}
}
Server Selection
Select Server by Index
You can override the default server globally by passing a server index to the serverIndex: int optional parameter when initializing the SDK client instance. The selected server will then be used as the default on the operations that use it. This table lists the indexes associated with the available servers:
| # | Server | Description |
|---|---|---|
| 0 | https://api.unified.to |
North American data region |
| 1 | https://api-eu.unified.to |
European data region |
| 2 | https://api-au.unified.to |
Australian data region |
Example
using UnifiedTo;
using UnifiedTo.Models.Components;
var sdk = new UnifiedToSDK(
serverIndex: 2,
security: new Security() {
Jwt = "<YOUR_API_KEY_HERE>",
}
);
var res = await sdk.Accounting.CreateAccountingAccountAsync(
accountingAccount: new AccountingAccount() {},
connectionId: "<id>"
);
// handle response
Override Server URL Per-Client
The default server can also be overridden globally by passing a URL to the serverUrl: string optional parameter when initializing the SDK client instance. For example:
using UnifiedTo;
using UnifiedTo.Models.Components;
var sdk = new UnifiedToSDK(
serverUrl: "https://api-au.unified.to",
security: new Security() {
Jwt = "<YOUR_API_KEY_HERE>",
}
);
var res = await sdk.Accounting.CreateAccountingAccountAsync(
accountingAccount: new AccountingAccount() {},
connectionId: "<id>"
);
// handle response
Custom HTTP Client
The C# SDK makes API calls using an ISpeakeasyHttpClient that wraps the native
HttpClient. This
client provides the ability to attach hooks around the request lifecycle that can be used to modify the request or handle
errors and response.
The ISpeakeasyHttpClient interface allows you to either use the default SpeakeasyHttpClient that comes with the SDK,
or provide your own custom implementation with customized configuration such as custom message handlers, timeouts,
connection pooling, and other HTTP client settings.
The following example shows how to create a custom HTTP client with request modification and error handling:
using UnifiedTo;
using UnifiedTo.Utils;
using System.Net.Http;
using System.Threading;
using System.Threading.Tasks;
// Create a custom HTTP client
public class CustomHttpClient : ISpeakeasyHttpClient
{
private readonly ISpeakeasyHttpClient _defaultClient;
public CustomHttpClient()
{
_defaultClient = new SpeakeasyHttpClient();
}
public async Task<HttpResponseMessage> SendAsync(HttpRequestMessage request, CancellationToken? cancellationToken = null)
{
// Add custom header and timeout
request.Headers.Add("x-custom-header", "custom value");
request.Headers.Add("x-request-timeout", "30");
try
{
var response = await _defaultClient.SendAsync(request, cancellationToken);
// Log successful response
Console.WriteLine($"Request successful: {response.StatusCode}");
return response;
}
catch (Exception error)
{
// Log error
Console.WriteLine($"Request failed: {error.Message}");
throw;
}
}
public void Dispose()
{
_httpClient?.Dispose();
_defaultClient?.Dispose();
}
}
// Use the custom HTTP client with the SDK
var customHttpClient = new CustomHttpClient();
var sdk = new UnifiedTo(client: customHttpClient);
You can also provide a completely custom HTTP client with your own configuration:
using UnifiedTo.Utils;
using System.Net.Http;
using System.Threading;
using System.Threading.Tasks;
// Custom HTTP client with custom configuration
public class AdvancedHttpClient : ISpeakeasyHttpClient
{
private readonly HttpClient _httpClient;
public AdvancedHttpClient()
{
var handler = new HttpClientHandler()
{
MaxConnectionsPerServer = 10,
// ServerCertificateCustomValidationCallback = customCertValidation, // Custom SSL validation if needed
};
_httpClient = new HttpClient(handler)
{
Timeout = TimeSpan.FromSeconds(30)
};
}
public async Task<HttpResponseMessage> SendAsync(HttpRequestMessage request, CancellationToken? cancellationToken = null)
{
return await _httpClient.SendAsync(request, cancellationToken ?? CancellationToken.None);
}
public void Dispose()
{
_httpClient?.Dispose();
}
}
var sdk = UnifiedTo.Builder()
.WithClient(new AdvancedHttpClient())
.Build();
For simple debugging, you can enable request/response logging by implementing a custom client:
public class LoggingHttpClient : ISpeakeasyHttpClient
{
private readonly ISpeakeasyHttpClient _innerClient;
public LoggingHttpClient(ISpeakeasyHttpClient innerClient = null)
{
_innerClient = innerClient ?? new SpeakeasyHttpClient();
}
public async Task<HttpResponseMessage> SendAsync(HttpRequestMessage request, CancellationToken? cancellationToken = null)
{
// Log request
Console.WriteLine($"Sending {request.Method} request to {request.RequestUri}");
var response = await _innerClient.SendAsync(request, cancellationToken);
// Log response
Console.WriteLine($"Received {response.StatusCode} response");
return response;
}
public void Dispose() => _innerClient?.Dispose();
}
var sdk = new UnifiedTo(client: new LoggingHttpClient());
The SDK also provides built-in hook support through the SDKConfiguration.Hooks system, which automatically handles
BeforeRequestAsync, AfterSuccessAsync, and AfterErrorAsync hooks for advanced request lifecycle management.
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | net6.0 is compatible. net6.0-android was computed. net6.0-ios was computed. net6.0-maccatalyst was computed. net6.0-macos was computed. net6.0-tvos was computed. net6.0-windows was computed. net7.0 was computed. net7.0-android was computed. net7.0-ios was computed. net7.0-maccatalyst was computed. net7.0-macos was computed. net7.0-tvos was computed. net7.0-windows was computed. net8.0 was computed. net8.0-android was computed. net8.0-browser was computed. net8.0-ios was computed. net8.0-maccatalyst was computed. net8.0-macos was computed. net8.0-tvos was computed. net8.0-windows was computed. net9.0 was computed. net9.0-android was computed. net9.0-browser was computed. net9.0-ios was computed. net9.0-maccatalyst was computed. net9.0-macos was computed. net9.0-tvos was computed. net9.0-windows was computed. net10.0 was computed. net10.0-android was computed. net10.0-browser was computed. net10.0-ios was computed. net10.0-maccatalyst was computed. net10.0-macos was computed. net10.0-tvos was computed. net10.0-windows was computed. |
-
net6.0
- newtonsoft.json (>= 13.0.3)
- nodatime (>= 3.1.9)
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.
| Version | Downloads | Last Updated |
|---|---|---|
| 0.130.11 | 0 | 1/9/2026 |
| 0.130.10 | 33 | 1/7/2026 |
| 0.130.9 | 80 | 1/3/2026 |
| 0.130.8 | 84 | 1/1/2026 |
| 0.130.7 | 81 | 12/30/2025 |
| 0.130.6 | 175 | 12/22/2025 |
| 0.130.5 | 118 | 12/21/2025 |
| 0.130.4 | 261 | 12/18/2025 |
| 0.130.3 | 259 | 12/17/2025 |
| 0.130.2 | 205 | 12/15/2025 |
| 0.130.1 | 105 | 12/13/2025 |
| 0.130.0 | 420 | 12/10/2025 |
| 0.128.0 | 183 | 12/3/2025 |
| 0.126.0 | 690 | 12/3/2025 |
| 0.124.0 | 407 | 12/1/2025 |
| 0.122.0 | 172 | 11/28/2025 |
| 0.120.0 | 199 | 11/26/2025 |
| 0.118.0 | 169 | 11/25/2025 |
| 0.116.0 | 174 | 11/24/2025 |
| 0.114.0 | 238 | 11/22/2025 |
| 0.112.0 | 386 | 11/21/2025 |
| 0.110.0 | 388 | 11/20/2025 |
| 0.108.0 | 386 | 11/19/2025 |
| 0.106.0 | 187 | 11/15/2025 |
| 0.104.0 | 267 | 11/14/2025 |
| 0.102.0 | 110 | 11/8/2025 |
| 0.100.0 | 184 | 11/6/2025 |
| 0.98.0 | 182 | 11/4/2025 |
| 0.96.0 | 115 | 11/1/2025 |
| 0.94.0 | 181 | 10/30/2025 |
| 0.92.0 | 107 | 10/25/2025 |
| 0.90.0 | 174 | 10/23/2025 |
| 0.88.0 | 168 | 10/17/2025 |
| 0.86.0 | 170 | 10/14/2025 |
| 0.84.0 | 100 | 10/11/2025 |
| 0.82.0 | 192 | 10/9/2025 |
| 0.80.0 | 106 | 10/4/2025 |
| 0.78.0 | 161 | 10/1/2025 |
| 0.38.0 | 85 | 7/19/2025 |
| 0.36.0 | 172 | 7/17/2025 |
| 0.34.0 | 173 | 7/11/2025 |
| 0.32.0 | 99 | 7/5/2025 |
| 0.30.0 | 177 | 7/3/2025 |
| 0.28.0 | 128 | 6/29/2025 |
| 0.26.0 | 156 | 6/27/2025 |
| 0.24.7 | 166 | 6/24/2025 |
| 0.24.6 | 103 | 6/21/2025 |
| 0.24.5 | 191 | 6/14/2025 |
| 0.24.4 | 320 | 6/13/2025 |
| 0.24.3 | 321 | 6/11/2025 |
| 0.24.2 | 165 | 6/6/2025 |
| 0.24.1 | 169 | 6/4/2025 |
| 0.24.0 | 171 | 6/3/2025 |
| 0.23.7 | 181 | 5/28/2025 |
| 0.23.6 | 179 | 5/27/2025 |
| 0.23.5 | 182 | 5/26/2025 |
| 0.23.4 | 173 | 5/23/2025 |
| 0.23.3 | 247 | 5/16/2025 |
| 0.23.2 | 256 | 5/15/2025 |
| 0.23.1 | 179 | 5/8/2025 |
| 0.23.0 | 177 | 5/7/2025 |
| 0.22.41 | 179 | 5/6/2025 |
| 0.22.40 | 178 | 5/2/2025 |
| 0.22.39 | 122 | 4/26/2025 |
| 0.22.38 | 192 | 4/25/2025 |
| 0.22.37 | 190 | 4/24/2025 |
| 0.22.36 | 227 | 4/17/2025 |
| 0.22.35 | 215 | 4/16/2025 |
| 0.22.34 | 216 | 4/14/2025 |
| 0.22.33 | 164 | 4/13/2025 |
| 0.22.32 | 195 | 4/11/2025 |
| 0.22.31 | 208 | 4/10/2025 |
| 0.22.30 | 198 | 4/9/2025 |
| 0.22.29 | 197 | 4/4/2025 |
| 0.22.28 | 193 | 4/3/2025 |
| 0.22.27 | 193 | 4/1/2025 |
| 0.22.26 | 148 | 3/29/2025 |
| 0.22.25 | 148 | 3/28/2025 |
| 0.22.24 | 192 | 3/23/2025 |
| 0.22.23 | 176 | 3/18/2025 |
| 0.22.22 | 250 | 3/6/2025 |
| 0.22.21 | 249 | 3/5/2025 |
| 0.22.20 | 127 | 3/3/2025 |
| 0.22.19 | 135 | 2/27/2025 |
| 0.22.18 | 133 | 2/26/2025 |
| 0.22.17 | 152 | 2/25/2025 |
| 0.22.16 | 125 | 2/24/2025 |
| 0.22.15 | 131 | 2/22/2025 |
| 0.22.14 | 149 | 2/19/2025 |
| 0.22.13 | 142 | 2/11/2025 |
| 0.22.12 | 128 | 2/9/2025 |
| 0.22.11 | 125 | 2/8/2025 |
| 0.22.10 | 125 | 2/6/2025 |
| 0.22.9 | 138 | 2/5/2025 |
| 0.22.8 | 146 | 2/2/2025 |
| 0.22.7 | 131 | 1/24/2025 |
| 0.22.6 | 139 | 1/23/2025 |
| 0.22.5 | 138 | 1/21/2025 |
| 0.22.4 | 128 | 1/19/2025 |
| 0.22.3 | 126 | 1/17/2025 |
| 0.22.2 | 98 | 1/15/2025 |
| 0.22.1 | 132 | 1/12/2025 |
| 0.22.0 | 137 | 1/9/2025 |
| 0.21.22 | 131 | 1/6/2025 |
| 0.21.21 | 137 | 1/3/2025 |
| 0.21.20 | 142 | 1/2/2025 |
| 0.21.14 | 143 | 12/14/2024 |
| 0.21.13 | 143 | 12/13/2024 |
| 0.21.12 | 132 | 12/11/2024 |
| 0.21.11 | 136 | 12/7/2024 |
| 0.21.10 | 137 | 12/6/2024 |
| 0.21.9 | 115 | 12/5/2024 |
| 0.21.8 | 135 | 11/25/2024 |
| 0.21.7 | 145 | 11/23/2024 |
| 0.21.6 | 121 | 11/16/2024 |
| 0.21.5 | 127 | 11/14/2024 |
| 0.21.4 | 131 | 11/13/2024 |
| 0.21.3 | 135 | 11/11/2024 |
| 0.21.2 | 131 | 11/9/2024 |
| 0.21.1 | 144 | 11/7/2024 |
| 0.21.0 | 130 | 11/1/2024 |
| 0.20.4 | 133 | 10/23/2024 |
| 0.20.3 | 120 | 10/16/2024 |
| 0.20.2 | 131 | 10/15/2024 |
| 0.20.1 | 127 | 10/12/2024 |
| 0.20.0 | 141 | 10/1/2024 |
| 0.19.49 | 152 | 9/13/2024 |
| 0.19.48 | 165 | 9/11/2024 |
| 0.19.47 | 146 | 9/6/2024 |
| 0.19.46 | 137 | 8/31/2024 |
| 0.19.45 | 141 | 8/29/2024 |
| 0.19.44 | 130 | 8/28/2024 |
| 0.19.43 | 138 | 8/24/2024 |
| 0.19.42 | 168 | 8/22/2024 |
| 0.19.41 | 149 | 8/20/2024 |
| 0.19.40 | 160 | 8/18/2024 |
| 0.19.39 | 153 | 8/14/2024 |
| 0.19.38 | 137 | 8/10/2024 |
| 0.19.37 | 136 | 8/9/2024 |
| 0.19.36 | 112 | 8/1/2024 |
| 0.19.35 | 111 | 7/31/2024 |
| 0.19.34 | 134 | 7/27/2024 |
| 0.19.33 | 134 | 7/26/2024 |
| 0.19.32 | 117 | 7/23/2024 |
| 0.19.31 | 159 | 7/22/2024 |
| 0.19.30 | 126 | 7/17/2024 |
| 0.19.29 | 180 | 7/15/2024 |
| 0.19.28 | 133 | 7/15/2024 |
| 0.19.27 | 130 | 7/14/2024 |
| 0.19.26 | 116 | 7/11/2024 |
| 0.19.25 | 144 | 7/10/2024 |
| 0.19.24 | 158 | 7/6/2024 |
| 0.19.23 | 152 | 7/5/2024 |
| 0.19.22 | 146 | 7/3/2024 |
| 0.19.21 | 128 | 6/30/2024 |
| 0.19.20 | 133 | 6/29/2024 |
| 0.19.19 | 145 | 6/28/2024 |
| 0.19.18 | 138 | 6/27/2024 |
| 0.19.17 | 151 | 6/22/2024 |
| 0.19.15 | 166 | 6/19/2024 |
| 0.19.14 | 164 | 6/18/2024 |
| 0.19.13 | 177 | 6/16/2024 |
| 0.19.12 | 176 | 6/15/2024 |
| 0.19.11 | 164 | 6/14/2024 |
| 0.19.10 | 155 | 6/13/2024 |
| 0.19.9 | 1,552 | 6/12/2024 |
| 0.19.8 | 164 | 6/10/2024 |
| 0.19.7 | 172 | 6/8/2024 |
| 0.19.6 | 182 | 6/5/2024 |
| 0.19.5 | 153 | 6/4/2024 |
| 0.19.4 | 149 | 6/1/2024 |
| 0.19.3 | 170 | 5/30/2024 |
| 0.19.2 | 171 | 5/30/2024 |
| 0.19.1 | 161 | 5/28/2024 |
| 0.19.0 | 178 | 5/25/2024 |
| 0.18.7 | 173 | 5/24/2024 |
| 0.18.6 | 162 | 5/22/2024 |
| 0.18.5 | 170 | 5/22/2024 |
| 0.18.4 | 142 | 5/19/2024 |
| 0.18.3 | 148 | 5/18/2024 |
| 0.18.2 | 160 | 5/18/2024 |
| 0.18.1 | 132 | 5/17/2024 |
| 0.18.0 | 182 | 5/10/2024 |
| 0.17.4 | 203 | 5/7/2024 |
| 0.17.3 | 147 | 5/3/2024 |
| 0.17.2 | 137 | 5/2/2024 |
| 0.17.1 | 177 | 4/30/2024 |
| 0.17.0 | 173 | 4/26/2024 |
| 0.16.1 | 186 | 4/19/2024 |
| 0.16.0 | 179 | 4/18/2024 |
| 0.15.4 | 173 | 4/16/2024 |
| 0.15.3 | 190 | 4/13/2024 |
| 0.15.2 | 167 | 4/12/2024 |
| 0.15.1 | 176 | 4/12/2024 |
| 0.15.0 | 179 | 4/11/2024 |
| 0.14.1 | 200 | 4/4/2024 |
| 0.14.0 | 185 | 4/2/2024 |
| 0.13.2 | 199 | 3/29/2024 |
| 0.13.1 | 200 | 3/29/2024 |
| 0.13.0 | 189 | 3/28/2024 |
| 0.12.7 | 204 | 3/24/2024 |
| 0.12.6 | 201 | 3/20/2024 |
| 0.12.5 | 167 | 3/14/2024 |
| 0.12.4 | 181 | 3/7/2024 |
| 0.12.3 | 177 | 3/5/2024 |
| 0.12.2 | 190 | 3/2/2024 |
| 0.12.1 | 187 | 2/28/2024 |
| 0.12.0 | 187 | 2/27/2024 |
| 0.11.1 | 214 | 2/26/2024 |
| 0.11.0 | 191 | 2/25/2024 |
| 0.10.2 | 192 | 2/23/2024 |
| 0.10.1 | 193 | 2/23/2024 |
| 0.10.0 | 187 | 2/22/2024 |
| 0.9.11 | 196 | 2/22/2024 |
| 0.9.10 | 175 | 2/21/2024 |
| 0.9.9 | 177 | 2/17/2024 |
| 0.9.8 | 186 | 2/16/2024 |
| 0.9.7 | 197 | 2/15/2024 |
| 0.9.6 | 180 | 2/15/2024 |
| 0.9.5 | 177 | 2/14/2024 |
| 0.9.4 | 181 | 2/13/2024 |
| 0.9.3 | 189 | 2/12/2024 |
| 0.9.2 | 182 | 2/7/2024 |
| 0.9.1 | 194 | 2/7/2024 |
| 0.9.0 | 187 | 2/6/2024 |
| 0.8.0 | 191 | 2/6/2024 |
| 0.7.0 | 191 | 2/5/2024 |
| 0.6.1 | 186 | 2/1/2024 |
| 0.6.0 | 175 | 2/1/2024 |
| 0.5.15 | 177 | 1/31/2024 |
| 0.5.14 | 556 | 1/30/2024 |
| 0.5.13 | 185 | 1/26/2024 |
| 0.5.12 | 179 | 1/25/2024 |
| 0.5.11 | 171 | 1/23/2024 |
| 0.5.10 | 185 | 1/23/2024 |
| 0.5.9 | 191 | 1/22/2024 |
| 0.5.8 | 192 | 1/19/2024 |
| 0.5.7 | 166 | 1/19/2024 |
| 0.5.6 | 162 | 1/18/2024 |
| 0.5.5 | 192 | 1/16/2024 |
| 0.5.4 | 187 | 1/15/2024 |
| 0.5.3 | 189 | 1/13/2024 |
| 0.5.2 | 191 | 1/11/2024 |
| 0.5.1 | 191 | 1/10/2024 |
| 0.5.0 | 199 | 1/9/2024 |
| 0.4.2 | 179 | 1/9/2024 |
| 0.4.1 | 182 | 1/9/2024 |