Altairis.Pushover.Client 1.0.0

dotnet add package Altairis.Pushover.Client --version 1.0.0                
NuGet\Install-Package Altairis.Pushover.Client -Version 1.0.0                
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="Altairis.Pushover.Client" Version="1.0.0" />                
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add Altairis.Pushover.Client --version 1.0.0                
#r "nuget: Altairis.Pushover.Client, 1.0.0"                
#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 Altairis.Pushover.Client as a Cake Addin
#addin nuget:?package=Altairis.Pushover.Client&version=1.0.0

// Install Altairis.Pushover.Client as a Cake Tool
#tool nuget:?package=Altairis.Pushover.Client&version=1.0.0                

NuGet Status

Pushover API Client

Pushover is simple notification service and mobile device application. For sending notifications (messages) if offers a web API.

The API is quite weird combination of REST-like approach and old-school HTTP POST form emulation and I was not able to find any .NET client that would seem to be maintained and actually working.

So, I wrote one, with fairly modern approach.

Getting started

// API token obtained from app registration
var myApiToken = "axxxxxxxxxxxxxxxxxxxxxxxxxxxxx";

// User ID obtained from recipient user registration
var myUserId = "uxxxxxxxxxxxxxxxxxxxxxxxxxxxxx";

// Create client class
var client = new PushoverClient(myApiToken);

// Create a message
var message = new PushoverMessage(myUserId, "This is a test message") {
    Title = "Test message"
};

// Send message
var result = await client.SendMessage(message);

// Check for success
if (result.Status) {
    Console.WriteLine("Message sent successfully!");
} else {
    Console.WriteLine("Message send failed!");
}

Documentation

API reference documentation can be found in wiki.

Product Compatible and additional computed target framework versions.
.NET net6.0 is compatible.  net6.0-android was computed.  net6.0-ios was computed.  net6.0-maccatalyst was computed.  net6.0-macos was computed.  net6.0-tvos was computed.  net6.0-windows was computed.  net7.0 was computed.  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.

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 1,758 2/13/2023