User Tools

Site Tools


bpq_api

This is an old revision of the document!


BPQ has a simple and evolving api

endpoints: (note older versions were prefixed with 'get' (except request_token)

/api/request_token /api/ports /api/nodes /api/users /api/info /api/mheardport/<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.1711542546.txt.gz · Last modified: 2024/03/27 12:29 by g7taj