packet:bpq
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
packet:bpq [2024/04/04 12:24] – Added tx/rx parameter information mm0uhr | packet:bpq [2024/04/30 15:24] (current) – g7taj | ||
---|---|---|---|
Line 141: | Line 141: | ||
BPQ has a simple and evolving HTTP REST API. | BPQ has a simple and evolving HTTP REST API. | ||
+ | It is used though the HTTPPORT (in this example is port 9122) | ||
endpoints: (note older versions were prefixed with ' | endpoints: (note older versions were prefixed with ' | ||
+ | < | ||
/ | / | ||
/api/ports | /api/ports | ||
Line 149: | Line 151: | ||
/api/users | /api/users | ||
/api/info | /api/info | ||
+ | /api/links | ||
/ | / | ||
+ | </ | ||
Requested like so: | Requested like so: | ||
Line 163: | Line 167: | ||
< | < | ||
{" | {" | ||
+ | |||
+ | |||
+ | ===== Events ===== | ||
+ | BPQ can fire an executable on certain events. | ||
+ | * new message | ||
+ | * message read | ||
+ | * user joining chat | ||
+ | |||
+ | In bpq32.cfg | ||
+ | < | ||
+ | |||
+ | For mail events: | ||
+ | |||
+ | On the web interface, MailMgmt/ | ||
+ | < | ||
+ | |||
+ | This will call the following in the bpq directory (For Windows add .exe to the filename) | ||
+ | |||
+ | < | ||
+ | |||
+ | |||
+ | It will run the following on a message being read: | ||
+ | < | ||
+ | |||
+ | |||
+ | The format of the output is as a string of arguments to the program: | ||
+ | |||
+ | < | ||
+ | |||
+ | |||
+ | Chat events: | ||
+ | This needs to be configured on the chat Web interface page. | ||
+ | |||
+ | < | ||
+ | |||
+ | Arguments: | ||
+ | |||
+ | '' | ||
+ | 240408-G7TAJ : Steve %%*%%%%*%%%%*%% Joined Chat, Topic General | ||
+ | '' | ||
+ | |||
packet/bpq.1712233467.txt.gz · Last modified: 2024/04/04 12:24 by mm0uhr