This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision | ||
api [2023/05/08 17:36] nightfly |
api [2023/07/22 12:19] (current) nightfly |
||
---|---|---|---|
Line 48: | Line 48: | ||
| | getscreenshotsall | | returns array of all available channel screenshots | | | | getscreenshotsall | | returns array of all available channel screenshots | | ||
| | getscreenshot | channelid | | | getscreenshot | channelid | ||
- | | | getlivestream | channelid | + | | | getlivestream | channelid |
| recorders | | recorders | ||
| | isrunning | cameraid | | | isrunning | cameraid | ||
Line 210: | Line 210: | ||
[active] => 1 | [active] => 1 | ||
[storageid] => 1 | [storageid] => 1 | ||
- | [channel] => kjqidmubme1 | + | [channel] => kiqgdmrbma1 |
[comment] => Here some camera description | [comment] => Here some camera description | ||
) | ) | ||
Line 238: | Line 238: | ||
.... | .... | ||
</ | </ | ||
+ | |||
+ | |||
+ | ===== User creation ===== | ||
+ | |||
+ | **Request** | ||
+ | < | ||
+ | http:// | ||
+ | </ | ||
+ | |||
+ | **Request data** | ||
+ | < | ||
+ | $requestData=array( | ||
+ | ' | ||
+ | ' | ||
+ | ); | ||
+ | </ | ||
+ | |||
+ | **POST variable ' | ||
+ | < | ||
+ | |||
+ | {" | ||
+ | </ | ||
+ | |||
+ | **Reply** | ||
+ | < | ||
+ | |||
+ | |||
+ | Array | ||
+ | ( | ||
+ | [error] => 0 | ||
+ | [message] => Success | ||
+ | ) | ||
+ | </ | ||
+ | |||
+ | ===== Attempt to create existing user ===== | ||
+ | |||
+ | **Request** | ||
+ | < | ||
+ | http:// | ||
+ | </ | ||
+ | |||
+ | **Request data** | ||
+ | < | ||
+ | $requestData=array( | ||
+ | ' | ||
+ | ' | ||
+ | ); | ||
+ | </ | ||
+ | |||
+ | **POST variable ' | ||
+ | < | ||
+ | |||
+ | {" | ||
+ | </ | ||
+ | |||
+ | **Reply** | ||
+ | < | ||
+ | Array | ||
+ | ( | ||
+ | [error] => 7 | ||
+ | [message] => User already exists | ||
+ | ) | ||
+ | </ | ||
+ | |||
+ | |||
+ | We hope it is clear how it works. You can also check out a sample implementation of this API at [[https:// | ||