C# Beispielcode

Pushsafer make it easy and safe to get push-notifications in real time on your Android or Windows mobile device, iPhone, iPad and Desktop!

Mit Pushsafer kann man in Echtzeit, einfach und sicher, Push-Benachrichtigungen auf sein iPhone, iPad, Android oder Windows Gerät sowie auf den Desktop senden lassen!

======================
Google Play
App Store
Windows Store
Homepage
MuratB35
Posts: 5
Joined: 7. Sep 2021, 08:55

C# Beispielcode

Postby MuratB35 » 7. Sep 2021, 08:58

Sehr geehrte Mitglieder,

ich bin noch relativ neu in PushNotification services. Ich wollte über einen C# Script an meine Geräte Notifications via WebRequest schicken,
jedoch kann ich mit dem Beispielcode auf der Website nicht viel anfangen. Hat jemand einen kompletten Beispielcode für ein C# Script?

Vielen Dank im Voraus !

User avatar
admin
Site Admin
Posts: 943
Joined: 1. Dec 2014, 12:41
Location: Germany

Re: C# Beispielcode

Postby admin » 7. Sep 2021, 12:49

hier ein Beispiel, welches sofort funktionieren sollte:

Code: Select all

using System.Net;
using System.Collections.Specialized;
var options= new NameValueCollection {
		{ "t", "Mein Titel" },
		{ "m", "Meine Nachricht" },
		{ "s", "5" },
		{ "v", "3" },
		{ "i", "15" },
		{ "c", "#FF0000" },
		{ "d", "a" },
		{ "u", "https://www.pushsafer.com" },
		{ "ut", "Open Pushsafer" },
		{ "k", "PrivateKey" }
};
using (var client = new WebClient())
{
    client.UploadValues("https://www.pushsafer.com/api", options);
}
Pushsafer DE: Dir gefällt Service und Support! Dann freuen wir uns auf deine Bewertung!
Pushsafer EN: You like Service and Support! Then we look forward to your review!

Pushsafer.com Website - iOS - Android - Windows 10

MuratB35
Posts: 5
Joined: 7. Sep 2021, 08:55

Re: C# Beispielcode

Postby MuratB35 » 7. Sep 2021, 20:22

Super danke dir !


Who is online

Users browsing this forum: No registered users and 23 guests