User Related Recent
1. Log In
| Parameter | Type | Description | Remark |
|---|---|---|---|
fun | String | /config/user/login | |
phone | String | Phone number | |
password | String | Password | |
utag | Integer | Sub-account | 1-10 |
json
{
"fun": "/config/user/login",
"data": {
"phone": "13999999999",
"password": "sdfsdfdsf",
"utag": 2
}
}Response Fields:
| Field | Description |
|---|---|
total_license | Number of authorizations |
local_total_license | Test authorization number |
create_time | Registration time |
overdue_time | Expiration time |
user_state | 1=Formal, other=Test |
pass | Verification passed |
dev_num | Number of users |
dev_online_num | Online count |
utag | Sub-account |
2. Log Out
Request: fun = /config/user/logout
bash
curl --request GET \
--url 'http://192.168.9.9:9911/api/config/user/logout'3. Get User Information
Request: fun = /config/user/info
bash
curl --request GET \
--url 'http://192.168.9.9:9911/api/config/user/info'Returns the same fields as the login response.
4. Switch Sub-Account
| Parameter | Type | Description |
|---|---|---|
fun | String | /config/user/switch |
id | String | 1 to 10 |
json
{
"fun": "/config/user/switch",
"data": {
"id": "3"
}
}