OneSignal.RestAPIv3.Client
1.1.1
See the version list below for details.
dotnet add package OneSignal.RestAPIv3.Client --version 1.1.1
NuGet\Install-Package OneSignal.RestAPIv3.Client -Version 1.1.1
<PackageReference Include="OneSignal.RestAPIv3.Client" Version="1.1.1" />
paket add OneSignal.RestAPIv3.Client --version 1.1.1
#r "nuget: OneSignal.RestAPIv3.Client, 1.1.1"
// Install OneSignal.RestAPIv3.Client as a Cake Addin #addin nuget:?package=OneSignal.RestAPIv3.Client&version=1.1.1 // Install OneSignal.RestAPIv3.Client as a Cake Tool #tool nuget:?package=OneSignal.RestAPIv3.Client&version=1.1.1
OneSignal.RestApiv3.Client
A General purpose REST Api Client written in C# language for the OneSignal API v3 that support Async
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 Oficial 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 | Versions 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. |
-
.NETFramework 4.5.2
- Newtonsoft.Json (>= 10.0.3)
- RestSharp (>= 106.0.1)
-
.NETStandard 2.0
- Newtonsoft.Json (>= 10.0.3)
- RestSharp (>= 106.0.1)
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.
|
Fixes the exception throwing mechanism