Obtain Cat1 lock network information
https://cnapi.sciener.com/v3/wifiLock/catOneDetail
Retrieve network information for Cat1 lock. If it has not been configured with a network, return error code -1.
1 Request example
POST, ContentType:application/x-www-form-urlencoded
javascript
curl --location -g --request POST 'https://cnapi.sciener.com/v3/wifiLock/catOneDetail' \
--data-urlencode 'clientId=4773aa036f7f49c68d876bb4be85c80c' \
--data-urlencode 'accessToken=dfd5489d0cee31f0bdfaf59d0d42d71f' \
--data-urlencode 'lockId=163377' \
--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 |
| lockId | Int | Y | Lock ID, generated by Lock init |
| date | Long | Y | Current time (timestamp in millisecond) |
3 Response and example
| Parameter | Type | Description |
|---|---|---|
| isOnline | Int | Online status: 0 - No, 1 - Yes |
| rssiGrade | Int | Signal strength levels: 3 - Strong, 2 - Medium, 1 - Poor, 0 - Unknown |
| catOneNodeId | String | Module number |
| catOneCardNumber | String | Card number |
| catOneOperator | String | For telecom operators, China Mobile, China Telecom, and China Unicom return specific text descriptions, while others return codes. |
| catOneImsi | String | Phone number |
| catOneApn | String | APN |
| overseaCard | Int | Foreign card flag: 1 - Foreign card, 0 - No |
{
"isOnline": 1,
"rssiGrade": 3,
"catOneNodeId": "860717087140669",
"catOneCardNumber": "89860833122690003724",
"catOneOperator": "China Mobile",
"catOneImsi": "460240139703824",
"catOneApn": "cmnet",
"overseaCard": 0
}