dapnetapisendcall
Unterschiede
Hier werden die Unterschiede zwischen zwei Versionen angezeigt.
| Beide Seiten der vorigen RevisionVorhergehende ÜberarbeitungNächste Überarbeitung | Vorhergehende Überarbeitung | ||
| dapnetapisendcall [2022/01/30 12:13] – [Example for python] dj7lc | dapnetapisendcall [2026/01/30 13:06] (aktuell) – Fix urls dj7lc | ||
|---|---|---|---|
| Zeile 2: | Zeile 2: | ||
| ===== Example for curl from linux console ===== | ===== Example for curl from linux console ===== | ||
| + | |||
| + | ===== HAMNET ===== | ||
| < | < | ||
| - | curl -H " | + | curl -H " |
| </ | </ | ||
| + | |||
| + | ===== INTERNET ===== | ||
| + | |||
| + | < | ||
| + | curl -H " | ||
| + | </ | ||
| + | |||
| ===== Example for python3 ===== | ===== Example for python3 ===== | ||
| Zeile 11: | Zeile 20: | ||
| < | < | ||
| import requests | import requests | ||
| + | |||
| + | # HAMNET | ||
| + | url = ' | ||
| + | |||
| + | # INTERNET | ||
| + | #url = ' | ||
| headers = {' | headers = {' | ||
| Zeile 18: | Zeile 33: | ||
| data = data.encode(' | data = data.encode(' | ||
| - | response = requests.post(' | + | response = requests.post(url, headers=headers, |
| print(response) | print(response) | ||
| </ | </ | ||
| + | |||
| + | ===== make sure to select the correct DAPNET server ===== | ||
| + | When you are connected to HAMNET (either through the air or via VPN) you can use the HAMNET node http:// | ||
| + | |||
| + | If you're not connected to HAMNET please use the server connected to the public internet http:// | ||
| + | |||
| ===== calls to more than one callsign ===== | ===== calls to more than one callsign ===== | ||
| - | It is also possible to hand over more than one call sign to the API. The call signs then have to be comma separated. | + | It is also possible to hand over more than one call sign to the API. The call signs then have to be comma separated |
| < | < | ||
| Zeile 34: | Zeile 55: | ||
| ===== calls to more than one tx group ===== | ===== calls to more than one tx group ===== | ||
| - | The tx groups have to be comma separated. | + | The tx groups have to be comma separated |
| < | < | ||
dapnetapisendcall.1643544781.txt.gz · Zuletzt geändert: 2022/01/30 12:13 von dj7lc