Benutzer-Werkzeuge

Webseiten-Werkzeuge


dapnetapisendcall

Unterschiede

Hier werden die Unterschiede zwischen zwei Versionen angezeigt.

Link zu dieser Vergleichsansicht

Beide Seiten der vorigen Revision Vorhergehende Überarbeitung
Nächste Überarbeitung Beide Seiten der Revision
dapnetapisendcall [2022/01/30 13:00]
dj7lc [calls to more than one callsign]
dapnetapisendcall [2022/01/30 13:05]
dj7lc Beispiele überarbeitet
Zeile 3: Zeile 3:
 ===== Example for curl from linux console ===== ===== Example for curl from linux console =====
  
-General example: 
 <​code>​ <​code>​
-curl -H "​Content-Type:​ application/​json"​ -X POST -u USER:PASSWORD ​-d '{ "​text":​ "FUNKRUFTEXT", "​callSignNames":​ ["RUFZEICHEN"], "​transmitterGroupNames":​ ["SENDERGRUPPENNAME"], "​emergency":​ false }' URL/calls +curl -H "​Content-Type:​ application/​json"​ -X POST -u yourcallsign:yourpassword ​-d '{ "​text":​ "this is the message", "​callSignNames":​ ["destinationcallsign"], "​transmitterGroupNames":​ ["txgroup"], "​emergency":​ false }' URL/calls
-</​code>​ +
- +
- +
-Example with real user data (login credentials not working; they have to be replaced by the real ones): +
-<​code>​ +
-curl -H "​Content-Type:​ application/​json"​ -X POST -u dl1acb:​sehrgeheimespasswort -d '{ "​text":​ "​DL1ABC:​ Das ist eine Sendung über die REST-API",​ "​callSignNames":​ ["​dh1xyz"​],​ "​transmitterGroupNames":​ ["​dl-bw"​],​ "​emergency":​ false }' http://​http://​www.hampager.de:​8080/calls+
 </​code>​ </​code>​
  
Zeile 39: Zeile 32:
 But be aware: If one call sign fails (not registered, typo), the whole call is discarded. But be aware: If one call sign fails (not registered, typo), the whole call is discarded.
  
 +===== calls to more than one tx group =====
 +
 +The tx groups have to be comma separated.
 +
 +<​code>​
 +["​group1",​ "​group2",​ "​group3"​]
 +But be aware: If one group is invalid (does not exist, typo), the whole call is discarded.
dapnetapisendcall.txt · Zuletzt geändert: 2023/11/12 19:03 von pe2kmv