Abstractions.Integrations.StatensVeivesen.VeichleData.Models
4.0.5
See the version list below for details.
dotnet add package Abstractions.Integrations.StatensVeivesen.VeichleData.Models --version 4.0.5
NuGet\Install-Package Abstractions.Integrations.StatensVeivesen.VeichleData.Models -Version 4.0.5
<PackageReference Include="Abstractions.Integrations.StatensVeivesen.VeichleData.Models" Version="4.0.5" />
paket add Abstractions.Integrations.StatensVeivesen.VeichleData.Models --version 4.0.5
#r "nuget: Abstractions.Integrations.StatensVeivesen.VeichleData.Models, 4.0.5"
// Install Abstractions.Integrations.StatensVeivesen.VeichleData.Models as a Cake Addin #addin nuget:?package=Abstractions.Integrations.StatensVeivesen.VeichleData.Models&version=4.0.5 // Install Abstractions.Integrations.StatensVeivesen.VeichleData.Models as a Cake Tool #tool nuget:?package=Abstractions.Integrations.StatensVeivesen.VeichleData.Models&version=4.0.5
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. |
-
net8.0
- System.Text.Json (>= 9.0.1)
-
net9.0
- System.Text.Json (>= 9.0.1)
NuGet packages (1)
Showing the top 1 NuGet packages that depend on Abstractions.Integrations.StatensVeivesen.VeichleData.Models:
Package | Downloads |
---|---|
Abstractions.Integrations.StatensVeivesen.VeichleData
This service can be added to an asp.net application in order to look up information about veichles registered in Norway. |
GitHub repositories
This package is not used by any popular GitHub repositories.