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:00] – [calls to more than one callsign] dj7lc | dapnetapisendcall [2026/01/30 13:06] (aktuell) – Fix urls dj7lc | ||
|---|---|---|---|
| Zeile 3: | Zeile 3: | ||
| ===== Example for curl from linux console ===== | ===== Example for curl from linux console ===== | ||
| - | General example: | + | ===== HAMNET ===== |
| < | < | ||
| - | curl -H " | + | curl -H " |
| </ | </ | ||
| + | ===== INTERNET ===== | ||
| - | Example with real user data (login credentials not working; they have to be replaced by the real ones): | ||
| < | < | ||
| - | curl -H " | + | curl -H " |
| </ | </ | ||
| - | ===== Example for python | + | |
| + | ===== Example for python3 | ||
| < | < | ||
| import requests | import requests | ||
| + | |||
| + | # HAMNET | ||
| + | url = ' | ||
| + | |||
| + | # INTERNET | ||
| + | #url = ' | ||
| headers = {' | headers = {' | ||
| Zeile 25: | 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 39: | Zeile 53: | ||
| 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 and quoted. | ||
| + | |||
| + | < | ||
| + | [" | ||
| + | </ | ||
| + | But be aware: If one group is invalid (does not exist, typo), the whole call is discarded. | ||
dapnetapisendcall.1643544000.txt.gz · Zuletzt geändert: 2022/01/30 12:00 von dj7lc