Zum Inhalt springen
View in the app

A better way to browse. Learn more.

Fachinformatiker.de

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

mit c# und cURL daten senden

Empfohlene Antworten

Veröffentlicht

hallo,

ich möchte über den dienst Boxcar & Push Notifications for Twitter, Facebook, Email and more! push notifications an mein iPhone senden. laut boxcar wid dies über cURL abgehandelt.

ich habe folgende Informationen


It's easy. Here's how to do it using cURL:


curl -d "token=*****ZvCU4XNV*****" \

-d "&secret=*****8Gg8kXQW4*****4HM0A*****Y9C97D*****" \

-d "¬ification[from_screen_name]=Hello" \

-d "¬ification[message]=This+is+an+example" \

http://boxcar.io/devices/providers/*****m7*****IWG*****/notifications


Your API secret is: *****wPtQfIPGmFza*****nA0N5tS950uWy*****


Your API key is: *****m7*****IWG*****

wie muss ich das in ein c# programm einbauen?

es soll "betreff" und "Inhalt" der nachricht abfragen und dies dann abschicken.

vielen dankn schonmal im vorruas!

Also ich hab mir gerade mal das cUrl gedöns angeguckt aber keine Zeit mich mit deren Anwendung auseinander zu setzen. Wenn Du weist wie das cUrl.exe funktioniert ist das in c# ein Kinderspiel. Mit der Methode

Process.Start(string);

kannst Du einen Commandozeilen Befehl ausführen.

Process.Start("ipconfig.exe -all");

listet also die Netzwerk Configuration deines Rechners auf.

Das wirste aber nicht sehen können, da das Kommandozeilenfenster sich wieder schließt nach Ausführung.

Ist in Deinem Fall auch nicht nötig. Soweit ich das bei der cUrl.exe Dokumentation überflogen habe kannst Du mit dem Parameter -o eine Datei für den Output angeben. Die kannste dann ja in C# einlesen und Dir entsprechend des Ausgabeformates und Deines Objektmodells, da dann Instanzen von evtl. Benötigten Klassen basteln.

Archiv

Dieses Thema wurde archiviert und kann nicht mehr beantwortet werden.

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.