https://api.sciener.com/v3/lockRecord/upload
开发者集成APP SDK来实现读取锁操作记录,然后调用该接口,将记录上传到云端,方便后续查询。
POST, ContentType:application/x-www-form-urlencoded
xxxxxxxxxxcurl --location -g --request POST 'https://api.sciener.com/v3/lockRecord/upload' \--data-urlencode 'clientId=4773aa036f7f49c68d876bb4be85c80c' \--data-urlencode 'accessToken=dfd5489d0cee31f0bdfaf59d0d42d71f' \--data-urlencode 'lockId=163377' \--data-urlencode 'records=[{"accessoryElectricQuantity":0,"deleteDate":0,"electricQuantity":60,"keyId":0,"operateDate":1628522539000,"recordId":1628522538,"recordType":1,"uid":1684037},{"password":"710577860","newPassword":"710577860","operateDate":1628499945000,"electricQuantity":60,"recordType":4}]' \--data-urlencode 'date=1625025703000'| 名称 | 类型 | 是否必需 | 描述 |
|---|---|---|---|
| clientId | String | Y | 创建应用分配的client_id |
| accessToken | String | Y | 访问令牌,通过获取访问令牌接口获取 |
| lockId | Int | Y | 锁ID,由锁初始化接口生成 |
| records | String | Y | 锁中存储的记录,请确保是用APP SDK 读取锁操作记录获取的,勿私自构造。 |
| date | Long | Y | 当前时间(时间戳,单位毫秒) |
| 参数 | 类型 | 描述 |
|---|---|---|
| errcode | Int | 错误码 |
| errmsg | String | 错误信息 |
| description | String | 错误描述 |
xxxxxxxxxx{"errcode": 0,"errmsg": "none error message","description":"表示成功或是"}