N2C.VismaNET.NotificationHandler
1.0.1
dotnet add package N2C.VismaNET.NotificationHandler --version 1.0.1
NuGet\Install-Package N2C.VismaNET.NotificationHandler -Version 1.0.1
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="N2C.VismaNET.NotificationHandler" Version="1.0.1" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add N2C.VismaNET.NotificationHandler --version 1.0.1
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#r "nuget: N2C.VismaNET.NotificationHandler, 1.0.1"
#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 N2C.VismaNET.NotificationHandler as a Cake Addin #addin nuget:?package=N2C.VismaNET.NotificationHandler&version=1.0.1 // Install N2C.VismaNET.NotificationHandler as a Cake Tool #tool nuget:?package=N2C.VismaNET.NotificationHandler&version=1.0.1
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
Visma NET Notification Handler
This package contains the NotificationHandler for the Visma.NET API. The NotificationHandler is used to receive and handle notifications from the Visma.NET API Webhooks.
Getting Started
You need to have a valid token to be able to use the API. You can get a token by using the Visma.net API Authentication. You can use the N2C.VismaNET.Token package.
You will also need the tenantId for the Visma.net API. This is the same tenantId that you use for the Visma.net API Authentication.
Prerequisites
- N2C.VismaNET.Token
- N2C.VismaNET.DTOs
Usage
- GetNotificationsAsync retrieves notifications from the Visma.net API.
- GetFailedNotificationsAsync retrieves failed notifications from the Visma.net API.
// Create a new instance of the NotificationHandler
var handler = new NotificationHandler(bearerToken, tenantId);
// Get notifications from the Visma.net API
var notifications = await handler.GetNotificationsAsync();
foreach (var notification in notifications)
{
// Handle the notification
// ...
}
// Get failed notifications from the Visma.net API
var failedNotifications = await handler.GetFailedNotificationsAsync();
foreach (var notification in failedNotifications)
{
// Handle the failed notification
// ...
}
Product | Versions Compatible and additional computed target framework versions. |
---|---|
.NET | net7.0 is compatible. net7.0-android was computed. net7.0-ios was computed. net7.0-maccatalyst was computed. net7.0-macos was computed. net7.0-tvos was computed. net7.0-windows was computed. net8.0 was computed. 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. |
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.
-
net7.0
- N2C.VismaNET.DTOs (>= 1.0.8)
- N2C.VismaNET.HttpBase (>= 1.0.4)
- N2C.VismaNET.Interfaces (>= 1.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.1 | 143 | 2/2/2024 |