Abstractions.Integrations.StatensVeivesen.VeichleData
4.0.11
dotnet add package Abstractions.Integrations.StatensVeivesen.VeichleData --version 4.0.11
NuGet\Install-Package Abstractions.Integrations.StatensVeivesen.VeichleData -Version 4.0.11
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="Abstractions.Integrations.StatensVeivesen.VeichleData" Version="4.0.11" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="Abstractions.Integrations.StatensVeivesen.VeichleData" Version="4.0.11" />
<PackageReference Include="Abstractions.Integrations.StatensVeivesen.VeichleData" />
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add Abstractions.Integrations.StatensVeivesen.VeichleData --version 4.0.11
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#r "nuget: Abstractions.Integrations.StatensVeivesen.VeichleData, 4.0.11"
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
#:package Abstractions.Integrations.StatensVeivesen.VeichleData@4.0.11
#:package directive can be used in C# file-based apps starting in .NET 10 preview 4. Copy this into a .cs file before any lines of code to reference the package.
#addin nuget:?package=Abstractions.Integrations.StatensVeivesen.VeichleData&version=4.0.11
#tool nuget:?package=Abstractions.Integrations.StatensVeivesen.VeichleData&version=4.0.11
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
Introduction
This library allows lookup of information about veichles registered in Norway. The library requires an API key from Statens Veivesen.
The API key can be created using this link.
Installation
Add the NuGet package
dotnet add package Abstractions.Integrations.StatensVeivesen.VeichleData
Configure API Key
The library will automatically look for a configuration section named VeichleLookupService. To use a different name, configure the options manually.
{
"VeichleLookupService":
{
"ApiKey": "..."
}
}
Add service to application in Program.cs
// add the service
builder.AddVeichleLookupService();
// or
builder.Services.AddVeichleLookupService();
Usage
To perform a lookup, retrieve an IVeichleLookupService instance from dependency injection, and
var response = await veichleLookupService.LookupLicensePlateAsync("XX00000");
// this object contains the entire graph from Statens Veivesen, and is quite verbose
var veichle = response.Veichles[0];
// to get a more light-weight object containing key information, get the summary
var summary = veichle.Summary;
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | 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 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. |
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.
-
net8.0
- Abstractions.Extensions.AspNetCore.OptionsConfiguration (>= 4.0.19)
- Abstractions.Integrations.StatensVeivesen.VeichleData.Models (>= 4.0.11)
- Microsoft.Extensions.Http (>= 9.0.1)
- Microsoft.Extensions.Logging.Abstractions (>= 9.0.1)
- Microsoft.Extensions.Options (>= 9.0.1)
- System.Text.Json (>= 9.0.1)
-
net9.0
- Abstractions.Extensions.AspNetCore.OptionsConfiguration (>= 4.0.19)
- Abstractions.Integrations.StatensVeivesen.VeichleData.Models (>= 4.0.11)
- Microsoft.Extensions.Http (>= 9.0.1)
- Microsoft.Extensions.Logging.Abstractions (>= 9.0.1)
- Microsoft.Extensions.Options (>= 9.0.1)
- System.Text.Json (>= 9.0.1)
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.