iSabaya.OneSignal 1.0.0

dotnet add package iSabaya.OneSignal --version 1.0.0
                    
NuGet\Install-Package iSabaya.OneSignal -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="iSabaya.OneSignal" Version="1.0.0" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="iSabaya.OneSignal" Version="1.0.0" />
                    
Directory.Packages.props
<PackageReference Include="iSabaya.OneSignal" />
                    
Project file
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 iSabaya.OneSignal --version 1.0.0
                    
#r "nuget: iSabaya.OneSignal, 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.
#:package iSabaya.OneSignal@1.0.0
                    
#: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=iSabaya.OneSignal&version=1.0.0
                    
Install as a Cake Addin
#tool nuget:?package=iSabaya.OneSignal&version=1.0.0
                    
Install as a Cake Tool

OneSignal Logo

OneSignal-CSharp

A General purpose rest ApiClient write in C# language for the OneSignal API

Install via NuGet

PM> Install-Package iSabaya.OneSignal

How to use

var client = new OneSignalClient("ONESIGNAL_REST_API_KEY");

var options = new NotificationCreateOptions();

options.AppId = "ONESIGNAL_APP_ID";
options.IncludedSegments = new List<string> { "All" };
//options.IncludePlayerIds = new List<string>
//{
//    "81a9b7d9-6ee0-47f8-9045-318df82b1ba1"
//};
options.Headings.Add(LanguageCodes.English, "✴️ เริ่มแล้ว Promotion ฉลองเปิดระบบ (beta test) ‼️");
options.Contents.Add(LanguageCodes.English, "ด่วน ❗ เพียง 12 ทีมแรกเท่านั้น ► ชวนเพื่อนๆ รวมเป็นทีมเดียวกันตั้งแต่ 5 คนขึ้นไป รับทันทีทีมละ 5,000 Points");
options.Url = "http://the10threalm.com/";


client.Notifications.Create(options);

OneSignal Api Oficial Documentation

[OneSignal Server API] (https://documentation.onesignal.com/reference)

There are no supported framework assets in this 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 738 2/23/2019