Skip to content

Latest commit

 

History

History
28 lines (19 loc) · 916 Bytes

README.md

File metadata and controls

28 lines (19 loc) · 916 Bytes

OneSignal Logo

OneSignal-CSharp

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

Build status

Install via NuGet

PM> Install-Package OneSignal.CSharp.SDK

How to use

var client = new OneSignalClient("ZWM3YThlMmQtMzY1NC00ODI1LTlkYjMtMTk3MzI2OTQzMjVh");

var options = new NotificationCreateOptions();

options.AppId = "089e4845-9849-4157-8b29-71e174af3abf";
options.IncludedSegments = new List<string> { "All" };
options.Contents.Add(LanguageCodes.English, "Hello world!");

client.Notifications.Create(options);

OneSignal Api Oficial Documentation

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