- discard(废弃)
- demo(模板-参考示例)
- usmile-wx(微信)
- uc(用户统一中心)
- user-web(健康&设备&我的)
- bff-cloud
- iot-sevice(IOT平台)
- cloud-admin(运营后台)
上传设备绑定信息
POST
https://test.myusmile.online/user/device/saveAccountDevice/v2
此接口可用于 修改表app_account_device brushheadResetTime刷头时间
请求参数
Header 参数
TOK
string
可选
默认值:
{{token}}
Body 参数application/json
mebId
string
用户id
modelId
string
设备型号id
deviceId
string
设备唯一标识
deviceNickname
string
用户为设备设置的昵称
originName
string
原始蓝牙名称
brushheadResetTime
string
当前刷头开始使用时间
status
string
设备状态
示例
{
"data": [
{
"modelId": 33,
"brushheadResetTime": 1695190507,
"deviceId": "d0:11:14:35:59:fa"
}
]
}
示例代码
Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
请求示例请求示例
Shell
JavaScript
Java
Swift
curl --location --request POST 'https://test.myusmile.online/user/device/saveAccountDevice/v2' \
--header 'TOK: ' \
--header 'Content-Type: application/json' \
--data-raw '{
"data": [
{
"modelId": 33,
"brushheadResetTime": 1695190507,
"deviceId": "d0:11:14:35:59:fa"
}
]
}'
返回响应
🟢200成功
application/json
Body
object {0}
示例
{
"flag": true,
"code": 20000,
"message": "data updated",
"data": [
{
"id": 103501,
"updateTimestamp": 1695200264205,
"createTimestamp": 1695178676,
"brushheadResetTime": 1695190507,
"mebId": "1701847139726852097",
"deviceId": "d0:11:14:35:59:fa"
}
]
}