- discard(废弃)
- demo(模板-参考示例)
- usmile-wx(微信)
- uc(用户统一中心)
- user-web(健康&设备&我的)
- bff-cloud
- iot-sevice(IOT平台)
- cloud-admin(运营后台)
更新设备名称
开发中
POST
https://test.myusmile.online/user/modifyDeviceName
设备模块
请求参数
Query 参数
authUserId
string
可选
Header 参数
TOK
string
可选
默认值:
{{token}}
Body 参数application/json
loginType
string
登录类型
phone
string
手机号码
code
string
短信验证码
macId
string
可选
openId
string
微信OpenId
wxPhoneCode
string
微信手机号获取凭证
unionId
string
微信UnionId
wxNickName
string
微信昵称
wxImgUrl
string
微信头像
fastToken
string
一键登录token
reg
boolean
是否注册
默认值:
false
registrationId
string
极光设备注册ID
email
string
邮箱
pwd
string
可选
phoneCode
string
可选
示例
{
"loginType": "string",
"phone": "string",
"code": "string",
"macId": "string",
"openId": "string",
"wxPhoneCode": "string",
"unionId": "string",
"wxNickName": "string",
"wxImgUrl": "string",
"fastToken": "string",
"reg": "false",
"registrationId": "string",
"email": "string",
"pwd": "string",
"phoneCode": "string"
}
示例代码
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/modifyDeviceName?authUserId' \
--header 'TOK: ' \
--header 'Content-Type: application/json' \
--data-raw '{
"loginType": "string",
"phone": "string",
"code": "string",
"macId": "string",
"openId": "string",
"wxPhoneCode": "string",
"unionId": "string",
"wxNickName": "string",
"wxImgUrl": "string",
"fastToken": "string",
"reg": "false",
"registrationId": "string",
"email": "string",
"pwd": "string",
"phoneCode": "string"
}'
返回响应
🟢200成功
*/*
Body
Result
flag
boolean
可选
code
integer
可选
message
string
可选
data
object
可选
示例
{
"flag": true,
"code": 0,
"message": "string",
"data": {}
}