4.2.1.1 Login

The login helps you get access to the selected HTTPS session using a username and password. The login is Admin by default and the password is identical with the 2N launcher configuration access password.

URL:

https://<IP>/api/v1/login

HTTP method:

PUT

Request body:

{"login":"<username>","password":"<password>"}

Response code:

200 if everything is OK, otherwise 401,405,...

Response data:

N/A

In case the solution requires the 2N® Indoor Touch input/output control from 2N IP Intercom, you can use an unsecured login to 2N® Indoor Touch. Set the parameters in the Launcher settings: in the Launcher Configuration, Software section or the web 2N® Indoor Touch, Device / Maintenance section. Having enabled this option, you can use the following URL for login:

https://<IP>/api/v1/login?login=Admin&password=<set_password>

Example of use:

1. Event.KeyPressed Key=1
2. Action.SendHttpRequest uri=https://10.27.1.32/api/v1/login?login=Admin&password=2n; event=1

As  a result, 2N IP Intercom logs in to 2N® Indoor Touch HTTP API when you press button 1.