Modify the validity period of the tenant's open door methods
https://cnapi.sciener.com/v3/ttrenting/updateRenterUnlockPeriod
Use the TTRenting apartment manager's account and password to obtain the accessToken.
1 Request example
POST, ContentType:application/x-www-form-urlencoded
js
curl --location -g --request POST 'https://cnapi.sciener.com/v3/electricMeterUser/detail'\
--data-urlencode 'clientId=4773aa036f7f49c68d876bb4be85c80c' \
--data-urlencode 'accessToken=dfd5489d0cee31f0bdfaf59d0d42d71f' \
--data-urlencode 'startDate=1625025703000' \
--data-urlencode 'endDate=1725025703000' \
--data-urlencode 'date=1625025703000'2 Request parameters
| Name | Type | Required | Description |
|---|---|---|---|
| clientId | String | Y | Client_id from Create application |
| accessToken | String | Y | Access token,refer to: Get access token, |
| countryCode | String | N | Tenant's mobile phone country code |
| mobile | String | N | Tenant's Email Address Note: Either phone number or email address is required. |
| startDate | Long | Y | The time when it becomes valid (timestamp in millisecond) |
| endDate | Long | Y | The time when it is expired (timestamp in millisecond) |
| date | Long | Y | Current time (timestamp in millisecond) |
3 Response and example
| Parameter | Type | Desciption |
|---|---|---|
| errcode | Int | Error code, 3804 indicates that the tenant does not exist, and 3821 indicates that there are multiple tenants. |
| errmsg | String | Error message |
js
{
"errcode": 3804,
"errmsg": "The tenant does not exist",
}