OneSignal.RestAPIv3.Client 1.1.3

One signal client targeting .Net Framework 4.5.2 and .Net Standard for .Net Core 2.0+ support.

Feel Free to contribute! :)

Install-Package OneSignal.RestAPIv3.Client -Version 1.1.3
dotnet add package OneSignal.RestAPIv3.Client --version 1.1.3
<PackageReference Include="OneSignal.RestAPIv3.Client" Version="1.1.3" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add OneSignal.RestAPIv3.Client --version 1.1.3
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#r "nuget: OneSignal.RestAPIv3.Client, 1.1.3"
#r directive can be used in F# Interactive, C# scripting and .NET Interactive. 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.1.3

// Install OneSignal.RestAPIv3.Client as a Cake Tool
#tool nuget:?package=OneSignal.RestAPIv3.Client&version=1.1.3
The NuGet Team does not provide support for this client. Please contact its maintainers for support.

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.

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.

Release Notes

Fixes the exception throwing mechanism

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 History

Version Downloads Last updated
1.1.3 17,147 12/3/2020
1.1.2 61,402 4/15/2020
1.1.1 24,975 10/26/2019
1.1.0 652 10/3/2019
1.0.3 28,900 11/19/2017