User Tools

Site Tools


bpq_api

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Next revision
Previous revision
bpq_api [2024/03/27 12:13] – created g7tajbpq_api [2024/03/27 12:39] (current) m0lte
Line 1: Line 1:
-BPQ has a simple and evolving api +Migrated to [[packet:bpq#rest_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: +
-<code>curl 127.0.0.1:9122/api/request_token</code> +
- +
-Output: +
-<code>{"access_token":"OSTWFHSGAPKZWMZORFEFWOFIHMOZUMJK", "expires_in":3600, "scope":"create"}</code> +
- +
-Example of MH for Port 1: +
-<code>curl 127.0.0.1:9122/api/getmheardport/1 -H "Authorization: Bearer OSTWFHSGAPKZWMZORFEFWOFIHMOZUMJK"</code> +
- +
-Output: +
-<code>{"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"  }</code> +
- +
bpq_api.1711541618.txt.gz · Last modified: 2024/03/27 12:13 by g7taj