User account

addAccount
FunctionAdd user account
privilegeadmin
Usage/cgi-bin/CGIProxy.fcgi?cmd=addAccount
Param
usrNameuser name
usrPwduser password
privilege
0Visitor
1Operator
2Administrator
Example/cgi-bin/CGIProxy.fcgi?cmd=addAccount&usrName=test&usrPwd=test&privilege=0&usr=admin&pwd=

delAccount
FunctionDelete user account
privilegeadmin
Usage/cgi-bin/CGIProxy.fcgi?cmd=delAccount
Param
usrNameuser name
Example/cgi-bin/CGIProxy.fcgi?cmd=delAccount&usrName=test&usr=admin&pwd=

changePassword
FunctionChange password
privilege visitor
Usage/cgi-bin/CGIProxy.fcgi?cmd=changePassword
Param
usrNameThe user you want to change password
oldPwdold password
newPwdnew password
NoteAdmin can change every user’s password, visitor and operator can only change their own password
Example/cgi-bin/CGIProxy.fcgi?cmd=changePassword&usrName=admin&oldPwd=&newPwd=test&usr=admin&pwd=

changeUserName
FunctionChange user name
privilegevisitor
Usage/cgi-bin/CGIProxy.fcgi?cmd=changeUserName
Param
usrNameThe user you want to change name
newUsrNameThe new user name
NoteAdmin can change every user’s name, visitor and operator can only change their own name
Example/cgi-bin/CGIProxy.fcgi?cmd=changeUserName&usrName=admin&newUsrName=newname&usr=admin&pwd=

logIn
FunctionUser log in to camera
privilegevisitor
Usage/cgi-bin/CGIProxy.fcgi?cmd=logIn
Param
usrNameUser name
ipAccess IP
groupIdAn id use to distinguish different users,can be set to current cpu tick
Return
logInResult
0Login success
-1Parameter check error
-2Exceed max user
-4User not exist
-6Password error
-7Access deny
privilege
0Visitor
1Operator
2Administrator
Example/cgi-bin/CGIProxy.fcgi?cmd=logIn&usrName=admin&ip=192.168.1.12&pwd=&groupId=673982479&usr=admin&pwd=

logOut
FunctionUser log out to camera
privilegevisitor
Usage/cgi-bin/CGIProxy.fcgi?cmd=logOut
Param
usrNameUser name
ipAccess IP
groupIdAn id use to distinguish different users,can be set to current cpu tick
Return
logOutResult
Example/cgi-bin/CGIProxy.fcgi?cmd=logOut&usrName=admin&ip=192.168.1.12&groupId=673982479&usr=admin&pwd=

getSessionList
FunctionGet current session list of the camera
privilegevisitor
Usage/cgi-bin/CGIProxy.fcgi?cmd=getSessionList
ParamNone
Return
usrCntsession count
usrNUser name of session N
Example/cgi-bin/CGIProxy.fcgi?cmd=getSessionList&usr=admin&pwd=

getUserList
FunctionGet user account list of the camera
privilegevisitor
Usage/cgi-bin/CGIProxy.fcgi?cmd=getUserList
ParamNone
Return
usrCntUser count
usrNUser name of accnount N
Example/cgi-bin/CGIProxy.fcgi?cmd=getUserList&usr=admin&pwd=

usrBeatHeart
Functionuser checks connection with camera
privilegevisitor
Usage/cgi-bin/CGIProxy.fcgi?cmd=usrBeatHeart
Param
usrNameUser name
remoteIpAccess IP
groupIdAn id use to distinguish different users,can be set to current cpu tick
ReturncheckResult(0-success,-1-error)
Example/cgi-bin/CGIProxy.fcgi?cmd=usrBeatHeart&usrName=admin&ip=192.168.1.13&groupId=673982479&usr=admin&pwd=