TemporaryEmail.Contracts
1.0.0
dotnet add package TemporaryEmail.Contracts --version 1.0.0
NuGet\Install-Package TemporaryEmail.Contracts -Version 1.0.0
<PackageReference Include="TemporaryEmail.Contracts" Version="1.0.0" />
<PackageVersion Include="TemporaryEmail.Contracts" Version="1.0.0" />
<PackageReference Include="TemporaryEmail.Contracts" />
paket add TemporaryEmail.Contracts --version 1.0.0
#r "nuget: TemporaryEmail.Contracts, 1.0.0"
#:package TemporaryEmail.Contracts@1.0.0
#addin nuget:?package=TemporaryEmail.Contracts&version=1.0.0
#tool nuget:?package=TemporaryEmail.Contracts&version=1.0.0
TemporaryEmail.Contracts
This package ships the contract models and typed client helpers used to interact with the TemporaryEmail API.
Features
- Strongly-typed request/response models for API keys, mailboxes, domains, usage, and webhooks.
- Dependency injection extensions (
RegisterTemporaryEmail) for configuring the HTTP client in ASP.NET Core. - Built-in API key handler that consistently applies the
X-Api-Keyheader required by the service.
Getting Started
services.RegisterTemporaryEmail(options =>
{
options.ApiKey = "{your-api-key}";
});
Inject ITemporaryEmailClient anywhere you need to interact with the API and call the provided methods.
BaseAddress defaults to https://api.temporaryemail.ai; override it only when pointing to another environment.
Building the Package
From the repository root you can run ./TemporaryEmail/pack-contracts.sh to produce the NuGet package in artifacts/nuget. The script forwards any extra arguments to dotnet pack, so you can append flags like --no-build if needed.
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | 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 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. |
-
net9.0
- Microsoft.Extensions.Http (>= 9.0.5)
- Microsoft.Extensions.Logging.Abstractions (>= 9.0.5)
- Microsoft.Extensions.Options.ConfigurationExtensions (>= 9.0.5)
- Refit (>= 8.0.0)
- Refit.HttpClientFactory (>= 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.
| Version | Downloads | Last Updated |
|---|---|---|
| 1.0.0 | 212 | 10/9/2025 |