mirror of
https://github.com/Mibew/mibew-operator-status-plugin.git
synced 2025-01-22 10:00:30 +03:00
add group support document
This commit is contained in:
parent
ecc448482e
commit
638cfea943
11
README.md
11
README.md
@ -5,15 +5,20 @@ Plugin for Mibew, get statement based on the availability of operators.
|
|||||||
|
|
||||||
1. Get any operators online status:
|
1. Get any operators online status:
|
||||||
|
|
||||||
* request URL:`<MIBEW-BASE-URL>/opstatus`.
|
* request URL: `<MIBEW-BASE-URL>/opstatus`.
|
||||||
* return `true` when any operators is online and `false` when not.
|
* return `true` when any operators is online and `false` when not.
|
||||||
|
|
||||||
2. Get an operator online status by operator code:
|
2. Get any operators online status in specificed group:
|
||||||
|
|
||||||
|
* request URL: `<MIBEW-BASE-URL>/opstatus/group/<GROUP-ID>`.
|
||||||
|
* return `true` when any operators in this group is online and `false` when not.
|
||||||
|
|
||||||
|
3. Get an operator online status by operator code:
|
||||||
|
|
||||||
* Request URL: `<MIBEW-BASE-URL>/opstatus/<OPERATOR-CODE>`.
|
* Request URL: `<MIBEW-BASE-URL>/opstatus/<OPERATOR-CODE>`.
|
||||||
* return `true` when operator is online or `false` when not.
|
* return `true` when operator is online or `false` when not.
|
||||||
|
|
||||||
3. Use callback parameter:
|
4. Use callback parameter:
|
||||||
|
|
||||||
Just inset `<script>` tag and set `src` to URL above and add `callback` parameter
|
Just inset `<script>` tag and set `src` to URL above and add `callback` parameter
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user