User Tools

Site Tools


bpq_api

This is an old revision of the document!


BPQ has a simple and evolving api

endpoints: (note these may change and lose the 'get')

/api/request_token /api/getports /api/getnodes /api/getusers /api/getinfo /api/getmheardport/<port#>

Requested like so:

curl 127.0.0.1:9122/api/request_token

Output:

{"access_token":"OSTWFHSGAPKZWMZORFEFWOFIHMOZUMJK", "expires_in":3600, "scope":"create"}

Example of MH for Port 1:

curl 127.0.0.1:9122/api/getmheardport/1 -H "Authorization: Bearer OSTWFHSGAPKZWMZORFEFWOFIHMOZUMJK"

Output:

{"callSign": "G7TAJ-15", "port": "1", "packets": 10, "lastHeard": "2024-3-6 17:14:01"  },
{"callSign": "G7TAJ", "port": "1", "packets": 5, "lastHeard": "2024-3-3 15:46:07"  }
bpq_api.1711541618.txt.gz · Last modified: 2024/03/27 12:13 by g7taj