This shows you the differences between two versions of the page.
| Both sides previous revision Previous revision Next revision | Previous revision | ||
|
api [2026/05/18 15:07] nightfly |
api [2026/05/19 01:45] (current) nightfly [Read-only clients apps API] |
||
|---|---|---|---|
| Line 317: | Line 317: | ||
| We hope it is clear how it works. You can also check out a sample implementation of this API at [[https:// | We hope it is clear how it works. You can also check out a sample implementation of this API at [[https:// | ||
| + | |||
| + | |||
| + | ====== Read-only clients apps API ====== | ||
| + | |||
| + | Works same way, but requires only login+password or login+authtoken(md5 hash of password) instead of WolfRecorder serial. | ||
| + | |||
| + | You can set user credentials as raw GET variables or inside keys in " | ||
| + | |||
| + | < | ||
| + | curl -s -X POST ' | ||
| + | </ | ||
| + | |||
| + | or | ||
| + | |||
| + | < | ||
| + | curl -s -X POST ' | ||
| + | </ | ||
| + | |||
| + | |||
| + | ====== Supported objects and methods list ====== | ||
| + | |||
| + | ^ Object ^ Method ^ Parameters required ^ Action/ | ||
| + | | channels | ||
| + | |||
| + | |||
| + | ====== Usage examples ====== | ||
| + | |||
| + | ===== Normal request ===== | ||
| + | < | ||
| + | curl -s -X POST ' | ||
| + | </ | ||
| + | |||
| + | <code json> | ||
| + | { | ||
| + | |||
| + | " | ||
| + | " | ||
| + | { | ||
| + | " | ||
| + | " | ||
| + | " | ||
| + | " | ||
| + | " | ||
| + | " | ||
| + | " | ||
| + | }, | ||
| + | { | ||
| + | " | ||
| + | " | ||
| + | " | ||
| + | " | ||
| + | " | ||
| + | " | ||
| + | " | ||
| + | } | ||
| + | ] | ||
| + | |||
| + | } | ||
| + | </ | ||
| + | |||
| + | ===== Wrong credentials ===== | ||
| + | |||
| + | < | ||
| + | curl -s -X POST ' | ||
| + | </ | ||
| + | |||
| + | < | ||
| + | { | ||
| + | |||
| + | " | ||
| + | " | ||
| + | |||
| + | } | ||
| + | </ | ||
| + | |||
| + | |||
| + | ===== Wrong request format ===== | ||
| + | |||
| + | < | ||
| + | curl -s -X POST ' | ||
| + | </ | ||
| + | |||
| + | < | ||
| + | { | ||
| + | |||
| + | " | ||
| + | " | ||
| + | |||
| + | } | ||
| + | </ | ||
| + | |||
| + | |||