getsessionconfig
https://myhs.homeseer.com/json?request=getsessionconfig
Returns JSON that gives some information about the current connection such as the HS version, location settings and labels, the logged in user name and user permissions. The permissions are set in HS3 setup on the network tab. uiser_permissions is a bit mask defined as follows:
CODE
Public Enum UserRight
User_Guest = 1
User_Admin = 2
User_Local = 4
User_Normal = 8
User_Guest_Local = 5
User_Admin_Local = 6
User_Normal_Local = 12
User_Invalid = -1
End Enum
Example return:
JSON
{
"hsVersion":"3.0.0.527",
"isLocation1First":false,
"useLocation2":true,
"location1Label":"Room",
"location2Label":"Area",
"username":"bill",
"userPermissions":{
"user_permissions":6,
"user_permissions_valid":true,
"eventAccess":true,
"cameraAdd":true
}