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
Vorhergehende Überarbeitung
Nächste Überarbeitung Beide Seiten der Revision
dapnetapisendcall [2022/01/30 13:05]
dj7lc Beispiele überarbeitet
dapnetapisendcall [2022/01/30 13:13]
dj7lc [Example for python]
Zeile 4: Zeile 4:
  
 <​code>​ <​code>​
-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+curl -H "​Content-Type:​ application/​json"​ -X POST -u yourcallsign:​yourpassword -d '{ "​text":​ "this is the message",​ "​callSignNames":​ ["​destinationcallsign"​],​ "​transmitterGroupNames":​ ["​txgroup"​],​ "​emergency":​ false }' ​http://​dapnet.db0sda.ampr.org:​8080/calls
 </​code>​ </​code>​
  
-===== Example for python ​=====+===== Example for python3 ​=====
  
 <​code>​ <​code>​
Zeile 38: Zeile 38:
 <​code>​ <​code>​
 ["​group1",​ "​group2",​ "​group3"​] ["​group1",​ "​group2",​ "​group3"​]
 +</​code>​
 But be aware: If one group is invalid (does not exist, typo), the whole call is discarded. 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