Abstractions.Integrations.StatensVeivesen.VeichleData
4.0.7
There is a newer version of this package available.
See the version list below for details.
See the version list below for details.
dotnet add package Abstractions.Integrations.StatensVeivesen.VeichleData --version 4.0.7
NuGet\Install-Package Abstractions.Integrations.StatensVeivesen.VeichleData -Version 4.0.7
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.7" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add Abstractions.Integrations.StatensVeivesen.VeichleData --version 4.0.7
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#r "nuget: Abstractions.Integrations.StatensVeivesen.VeichleData, 4.0.7"
#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.
// Install Abstractions.Integrations.StatensVeivesen.VeichleData as a Cake Addin #addin nuget:?package=Abstractions.Integrations.StatensVeivesen.VeichleData&version=4.0.7 // Install Abstractions.Integrations.StatensVeivesen.VeichleData as a Cake Tool #tool nuget:?package=Abstractions.Integrations.StatensVeivesen.VeichleData&version=4.0.7
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. |
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.7)
- 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.7)
- 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.