Zammad.Client.SystemTextJson
2.4.0
dotnet add package Zammad.Client.SystemTextJson --version 2.4.0
NuGet\Install-Package Zammad.Client.SystemTextJson -Version 2.4.0
<PackageReference Include="Zammad.Client.SystemTextJson" Version="2.4.0" />
<PackageVersion Include="Zammad.Client.SystemTextJson" Version="2.4.0" />
<PackageReference Include="Zammad.Client.SystemTextJson" />
paket add Zammad.Client.SystemTextJson --version 2.4.0
#r "nuget: Zammad.Client.SystemTextJson, 2.4.0"
#:package Zammad.Client.SystemTextJson@2.4.0
#addin nuget:?package=Zammad.Client.SystemTextJson&version=2.4.0
#tool nuget:?package=Zammad.Client.SystemTextJson&version=2.4.0
Zammad.Client.SystemTextJson
A hard fork of Zammad.Client with support for System.Text.Json instead of
Newtonsoft.Json.
This library provides a .NET client for interacting with the Zammad helpdesk system API.
Installation
dotnet add package Zammad.Client.SystemTextJson
Usage
Basic example:
var httpClient = new HttpClient();
var client = new ZammadClient(
httpClient,
Options.Create(new ZammadOptions
{
BaseUrl = new Uri("https://zammad.example.com/"),
Token = "your_token_here",
})
);
var user = await client.GetUserMeAsync();
Console.WriteLine($"Signed in as {user.FirstName} {user.LastName} ({user.Email})");
Dependency Injection
Install the extensions package:
dotnet add package Zammad.Client.SystemTextJson.Extensions
Configure the client:
builder.Services.AddZammadClient(options =>
{
options.BaseUrl = new Uri("https://zammad.example.com/");
options.Token = "your_token_here";
});
Alternatively, use a configuration section:
builder.Services.AddZammadClient(builder.Configuration.GetSection("Zammad"));
Then inject the client:
public class MyService(IZammadClient client)
{
public async Task DoSomething()
{
var user = await client.GetUserMeAsync();
Console.WriteLine($"Signed in as {user.FirstName} {user.LastName} ({user.Email})");
}
}
HttpClient Customization
The AddZammadClient method returns an IHttpClientBuilder, allowing further customization of the underlying
HttpClient. For example, to add a resilience handler:
dotnet add package Microsoft.Extensions.Http.Resilience
builder.Services.AddZammadClient(builder.Configuration.GetSection("Zammad"))
.AddStandardResilienceHandler();
This configuration will automatically handle transient errors, making your application more robust.
Contributing
Pull requests are welcome. Please use Conventional Commits to keep commit messages consistent.
Please consider adding tests for any new features or bug fixes.
Acknowledgements
- Zammad API Documentation
- The original Zammad.Client library by @S3bt3r
License
Distributed under the Apache License 2.0. See LICENSE for more
information.
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | net5.0 was computed. net5.0-windows was computed. net6.0 was computed. 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 is compatible. 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 is compatible. 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 is compatible. 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. |
| .NET Core | netcoreapp2.0 was computed. netcoreapp2.1 was computed. netcoreapp2.2 was computed. netcoreapp3.0 was computed. netcoreapp3.1 was computed. |
| .NET Standard | netstandard2.0 is compatible. netstandard2.1 was computed. |
| .NET Framework | net461 was computed. net462 was computed. net463 was computed. net47 was computed. net471 was computed. net472 was computed. net48 was computed. net481 was computed. |
| MonoAndroid | monoandroid was computed. |
| MonoMac | monomac was computed. |
| MonoTouch | monotouch was computed. |
| Tizen | tizen40 was computed. tizen60 was computed. |
| Xamarin.iOS | xamarinios was computed. |
| Xamarin.Mac | xamarinmac was computed. |
| Xamarin.TVOS | xamarintvos was computed. |
| Xamarin.WatchOS | xamarinwatchos was computed. |
-
.NETStandard 2.0
- Microsoft.Extensions.Options (>= 10.0.3)
- System.Net.Http.Json (>= 10.0.3)
- System.Text.Json (>= 10.0.3)
-
net10.0
- Microsoft.Extensions.Options (>= 10.0.3)
-
net8.0
- Microsoft.Extensions.Options (>= 10.0.3)
- System.Text.Json (>= 10.0.3)
-
net9.0
- Microsoft.Extensions.Options (>= 10.0.3)
- System.Text.Json (>= 10.0.3)
NuGet packages (1)
Showing the top 1 NuGet packages that depend on Zammad.Client.SystemTextJson:
| Package | Downloads |
|---|---|
|
Zammad.Client.SystemTextJson.Extensions
Extensions for Zammad.Client.SystemTextJson |
GitHub repositories
This package is not used by any popular GitHub repositories.
| Version | Downloads | Last Updated |
|---|---|---|
| 2.4.0 | 99 | 3/3/2026 |
| 2.3.0 | 497 | 11/14/2025 |
| 2.2.0 | 326 | 11/13/2025 |
| 2.1.0 | 286 | 10/17/2025 |
| 2.0.0 | 233 | 10/16/2025 |
| 2.0.0-alpha.42 | 165 | 10/15/2025 |
| 2.0.0-alpha.38 | 154 | 10/14/2025 |
| 2.0.0-alpha.37 | 161 | 10/13/2025 |
| 2.0.0-alpha.35 | 152 | 10/13/2025 |
| 2.0.0-alpha.29 | 111 | 10/10/2025 |
| 2.0.0-alpha.13 | 150 | 10/9/2025 |
| 2.0.0-alpha.10 | 154 | 10/9/2025 |