Apigen.Transip.Client
6.53.0
I decided to change the package and namespace name to TransIp (coming from Transip).
See the version list below for details.
dotnet add package Apigen.Transip.Client --version 6.53.0
NuGet\Install-Package Apigen.Transip.Client -Version 6.53.0
<PackageReference Include="Apigen.Transip.Client" Version="6.53.0" />
<PackageVersion Include="Apigen.Transip.Client" Version="6.53.0" />
<PackageReference Include="Apigen.Transip.Client" />
paket add Apigen.Transip.Client --version 6.53.0
#r "nuget: Apigen.Transip.Client, 6.53.0"
#:package Apigen.Transip.Client@6.53.0
#addin nuget:?package=Apigen.Transip.Client&version=6.53.0
#tool nuget:?package=Apigen.Transip.Client&version=6.53.0
Apigen.Transip
Generated C# client for the TransIP REST API v6.
Installation
dotnet add package Apigen.Transip.Client
Quick start
using Apigen.Transip.Client;
string privateKeyPem = File.ReadAllText("transip.pem");
// Singleton-friendly: returns a TransipApiClient whose HttpClient
// automatically acquires & refreshes JWTs.
TransipApiClient client = TransipAuthTokenProvider.CreateClient(
login: "your-username",
privateKeyPem: privateKeyPem,
label: "my-app");
var domains = await client.Domains.ListAllDomainsAsync();
Custom HttpClient pipeline
TransipTokenAccessor accessor = TransipAuthTokenProvider.CreateAccessor(login, privateKeyPem);
HttpClient http = new(new TransipBearerHandler(accessor, new HttpClientHandler()))
{
BaseAddress = new Uri("https://api.transip.nl/v6/"),
};
var client = new TransipApiClient(http);
Bring your own token storage
TransipTokenAccessor is a delegate — implement it to persist the JWT wherever
you like (file, database, Vault, etc.). Default storage is in-memory only.
With a pre-obtained Bearer token
var client = TransipApiClient.WithBearer("eyJ0eXAi...");
Authentication options
CreateClient, CreateAccessor, and GetBearerTokenAsync accept:
login— your TransIP account nameprivateKeyPem— the PKCS#8 PEM key obtained from the control panellabel— token label (must be unique per active token; auto-generated if omitted)readOnly— request a read-only token (defaultfalse)expirationTime— e.g."30 minutes","1 hour","1 day"(default"1 day")globalKey— allow use from any IP address (defaultfalse)baseUrl— override the API base URLrefreshBefore— re-auth this far before expiry (default 5 minutes)
Versioning
Package versions follow the upstream API version: the major.minor matches
the TransIP API version, and the patch is our client revision. For example,
package 6.53.0 was built against API version 6.53.x.
License
MIT
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | 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. |
-
net10.0
- Microsoft.Extensions.Logging.Abstractions (>= 8.0.0)
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.