This is an old revision of the document!
http://yourhost.com/wr/?module=remoteapi&key=WRxxxxxxxxxxxx&action=rest&object=method
Where:
Parameters to methods may be specified as POST variable with name “data”, that contains JSON array as key⇒value inside. All request results will be returned as JSON too.
Object | Method | Parameters required |
---|---|---|
models | getall | - |
storages | getall | - |
getstate | - | |
cameras | getall | - |
create | modelid + ip + login + password + active + storageid + description | |
activate | cameraid | |
deactivate cameraid | ||
setdescription | cameraid + description | |
delete | cameraid | |
isregistered | ip | |
users | getall | |
create | login + password | |
changepassword login + password | ||
delete | login | |
isregistered | login | |
checkauth | login + password | |
models: + getall storages: + getall + getstate cameras: + getall + create [modelid + ip + login + password + active + storageid + description] + activate [cameraid] + deactivate [cameraid] + setdescription [cameraid + description] + delete [cameraid] + isregistered [ip] users: + getall + create [login + password] + changepassword [login + password] + delete [login] + isregistered [login] + checkauth [login + password] acls: + getall + getallcameras + getallchannels + getchannels [login] + getcameras [login] + assignchannel [login + channelid] + assigncamera [login + cameraid] + deassignchannel [login + channelid] + deassigncamera [login + cameraid] channels: + getall + getscreenshotsall + getscreenshot [channelid] getlivestream [channelid] recorders: + getall + isrunning [cameraid] system: + gethealth