Benutzer-Werkzeuge

Webseiten-Werkzeuge


dapnetapisendcall

Dies ist eine alte Version des Dokuments!


Send individual call via REST-API

Example for curl from linux console

General example:

curl -H "Content-Type: application/json" -X POST -u USER:PASSWORD -d '{ "text": "FUNKRUFTEXT", "callSignNames": ["RUFZEICHEN"], "transmitterGroupNames": ["SENDERGRUPPENNAME"], "emergency": false }' URL/calls

Example with real user data (login credentials not working; they have to be replaced by the real ones):

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://dapnet.afu.rwth-aachen.de/api/calls

Example for python

For a python example, have a look on the implementation from Philipp DL7FL: https://github.com/DL7FL/DAPNET/blob/master/DAPNET/senden.py

dapnetapisendcall.1515414293.txt.gz · Zuletzt geändert: 2018/01/08 13:24 von dh3wr