5. HTTP API
HTTP API is an application interface for control of selected 2N
This interface helps you integrate 2N
automation systems, security and monitoring systems, etc.
•
based on cgi using several server paths (cgi scripts)
•
used by integrated web client
•
customer can use his own client
•
usually json is used for data transfer
•
there are parameters to influence behavior (parameters can be in url and in body)
•
authentication is provided by username and password login
•
unactive client is automatically logged out after configured timeout
•
client has to send session variable (cookie) named "SID" obtained from device in first
response
Authorization Levels
0
1
2
3
Users
•
There are two fixed public users: Admin with admin authorization and Guest with guest
authorization.
•
The My2N user with my2n authorization is logged automatically and from My2N cloud
only.
•
The default password of the Admin user is 2n and after login change is required.
•
The default password of the Guest user is unset and login is disabled until the password is
set.
®
LiftGate 2 easily with third party products such as house
none
guest
admin
my2n
®
LiftGate 2 functions via HTTP.
get status of device only
full access without my2n functionality
full access including my2n functionality
2N® LiftGate User Manual
69 / 85