OneSignal.RestAPIv3.Client 1.2.0

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

// Install OneSignal.RestAPIv3.Client as a Cake Tool
#tool nuget:?package=OneSignal.RestAPIv3.Client&version=1.2.0                

OneSignal Logo

OneSignal.RestApiv3.Client

A General purpose REST Api Client written in C# language for the OneSignal API v3 that support Async

Build status

Install via NuGet

PM> Install-Package OneSignal.RestAPIv3.Client

OneSignal.RestApiv3.Client package targets both .NET standard 2.0 and .NET Framework 4.5.2.

How to use

var client = new OneSignalClient(""); // Use your Api Key

            var options = new NotificationCreateOptions
            {
                AppId = new Guid(""),   // Use your AppId
                IncludePlayerIds = new List<string>()
            {
                "00000000-0000-0000-0000-000000000000" // Use your playerId
            }
            };
            options.Headings.Add(LanguageCodes.English, "New Notification!");
            options.Contents.Add(LanguageCodes.English, "This will push a real notification directly to your device.");

            client.Notifications.Create(options);

OneSignal Api Official Documentation

OneSignal Server API Documentation

Contributing

For additional support for .Net Core 1 or additionnal .Net framework platforms, feel free to fork this repository and submit a merge request!! 😃

This is a fork of mundipagg OneSignal-CSharp-SDK repository.

Product Compatible and additional computed target framework versions.
.NET net5.0 was computed.  net5.0-windows was computed.  net6.0 was computed.  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. 
.NET Core netcoreapp2.0 was computed.  netcoreapp2.1 was computed.  netcoreapp2.2 was computed.  netcoreapp3.0 was computed.  netcoreapp3.1 was computed. 
.NET Standard netstandard2.0 is compatible.  netstandard2.1 was computed. 
.NET Framework net452 is compatible.  net46 was computed.  net461 was computed.  net462 was computed.  net463 was computed.  net47 was computed.  net471 was computed.  net472 was computed.  net48 was computed.  net481 was computed. 
MonoAndroid monoandroid was computed. 
MonoMac monomac was computed. 
MonoTouch monotouch was computed. 
Tizen tizen40 was computed.  tizen60 was computed. 
Xamarin.iOS xamarinios was computed. 
Xamarin.Mac xamarinmac was computed. 
Xamarin.TVOS xamarintvos was computed. 
Xamarin.WatchOS xamarinwatchos was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

NuGet packages (2)

Showing the top 2 NuGet packages that depend on OneSignal.RestAPIv3.Client:

Package Downloads
Service.App.Shared

Package Description

Corex.PushSender.Derived.OneSignal

Package Description

GitHub repositories (1)

Showing the top 1 popular GitHub repositories that depend on OneSignal.RestAPIv3.Client:

Repository Stars
SharebookBR/sharebook-backend
Projeto backend de código livre para o app Sharebook.
Version Downloads Last updated
1.2.0 130,735 10/8/2021
1.1.3 84,328 12/3/2020
1.1.2 107,004 4/15/2020
1.1.1 42,477 10/26/2019
1.1.0 1,014 10/3/2019
1.0.3 40,412 11/19/2017

Fixes the exception throwing mechanism