Soenneker.Porkbun.Client
11.0.527
Prefix Reserved
dotnet add package Soenneker.Porkbun.Client --version 11.0.527
NuGet\Install-Package Soenneker.Porkbun.Client -Version 11.0.527
<PackageReference Include="Soenneker.Porkbun.Client" Version="11.0.527" />
<PackageVersion Include="Soenneker.Porkbun.Client" Version="11.0.527" />
<PackageReference Include="Soenneker.Porkbun.Client" />
paket add Soenneker.Porkbun.Client --version 11.0.527
#r "nuget: Soenneker.Porkbun.Client, 11.0.527"
#:package Soenneker.Porkbun.Client@11.0.527
#addin nuget:?package=Soenneker.Porkbun.Client&version=11.0.527
#tool nuget:?package=Soenneker.Porkbun.Client&version=11.0.527
Soenneker.Porkbun.Client
Provides a cached HttpClient configured for Porkbun's domain, DNS, SSL, pricing, and account APIs.
Installation
dotnet add package Soenneker.Porkbun.Client
Configuration
{
"Porkbun": {
"ApiKey": "your-api-key",
"SecretApiKey": "your-secret-api-key"
}
}
The default base URL is https://api.porkbun.com/api/json/v3/. Override it with Porkbun:ClientBaseUrl when testing through a proxy or compatible endpoint.
Usage
using Soenneker.Porkbun.Client.Abstract;
using Soenneker.Porkbun.Client.Registrars;
services.AddPorkbunClientUtilAsSingleton();
IPorkbunClientUtil porkbun = serviceProvider
.GetRequiredService<IPorkbunClientUtil>();
HttpClient client = await porkbun.Get(cancellationToken);
HttpResponseMessage response = await client.GetAsync(
"pricing/get",
cancellationToken);
response.EnsureSuccessStatusCode();
The client sends X-API-Key and X-Secret-API-Key on every request. Use an Idempotency-Key header for writes that may be retried, and use Porkbun's dryRun request field before billable or destructive operations when the endpoint supports it.
The provider owns the cached client. Scoped provider registrations use separate cache entries, so disposing one scope does not invalidate another scope's client.
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | net11.0 is compatible. |
-
net11.0
- Soenneker.Extensions.Configuration (>= 11.0.919)
- Soenneker.Utils.HttpClientCache (>= 11.0.2164)
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 |
|---|---|---|
| 11.0.527 | 95 | 11/19/2026 |
| 11.0.526 | 100 | 11/19/2026 |
| 11.0.525 | 101 | 11/18/2026 |
| 11.0.524 | 99 | 11/18/2026 |
| 11.0.523 | 101 | 11/18/2026 |
| 11.0.521 | 120 | 11/15/2026 |
| 11.0.520 | 111 | 11/15/2026 |
| 11.0.519 | 105 | 11/11/2026 |
| 11.0.518 | 93 | 11/11/2026 |
| 11.0.517 | 94 | 11/11/2026 |
| 11.0.516 | 95 | 11/11/2026 |
| 11.0.515 | 93 | 11/11/2026 |
| 11.0.513 | 93 | 11/10/2026 |
| 11.0.512 | 145 | 11/3/2026 |
| 11.0.511 | 93 | 11/3/2026 |
| 11.0.510 | 90 | 11/3/2026 |
| 11.0.509 | 91 | 11/3/2026 |
| 11.0.508 | 89 | 11/3/2026 |
| 11.0.507 | 127 | 10/27/2026 |
| 11.0.506 | 98 | 10/27/2026 |
Updated Multiple NuGet packages