Records of Door Sensor

https://api.sciener.com/v3/doorSensor/listRecord

Retrieve door sensor opening and closing records

Note: Only operation records within the last six months are retained in the cloud; records older than six months cannot be retrieved.

1 Request example

2 Request parameters

NameTypeRequiredDescription
clientIdStringYClient_id from Create application
accessTokenStringYAccess token,refer to: Get access token
lockIdIntYLock ID,Generate by lock initialize
pageNoIntYPage numbers start from 1
pageSizeIntYNumber of pages per page: 20 by default, 200 by maximum.
dateLongYCurrent time (timestamp, in milliseconds)

3 Response and example

ParameterTypeDescription
listJSONArrayRecord list
pageNoIntPage numbers start from 1
pageSizeIntNumber of pages per page, maximum 200
pagesIntTotal pages
totalIntTotal number of items

Objects in the list

ParameterTypeDescription
recordIdLongRecord ID
recordTypeFromLockIntFor lock record types, please refer to record Type From Lock
recordTypeIntFor record types, please refer to record Type From Cloud
successIntSuccess status: 0 - No, 1 - Yes
lockDateLongThe time (timestamp, in milliseconds) during the operation is locked.
serverDateLongRecord the time (timestamp, in milliseconds) when the data was uploaded to the server.