生产环境HOST:https://digitalman.h5no1.com
测试环境HOST:https://test.digitalman.h5no1.com
使用场景:
获取用户信息,当前用户的账号密码、头像昵称、利余兔币、累计兔币,数字人时长、融合时长
接口地址 /open/platform/userData/getUserInfo
请求方式 GET
接口描述
请求参数
查询条件
参数名称 | 参数说明 | 请求类型 | 是否必须 | 数据类型 | 备注 |
---|---|---|---|---|---|
thirdId | 第三方用户id | true | String | 二选一 | |
userId | 数字人平台用户id | false | Long | 二选一 |
请求示例
https://digitalman.h5no1.com/open/platform/userData/getUserInfo?thirdId=102503242914000000840100
响应参数
参数名称 | 参数说明 | 请求类型 | 是否必须 | 数据类型 | schema |
---|---|---|---|---|---|
code | 状态码 | body | true | string | |
showMsg | 错误描述 | body | true | string | |
errorMsg | 错误描述 对开放者 | body | true | string | |
data | 响应数据 | body | true | object | UserDataReportFormatDTO |
UserDataReportFormatDTO
参数名称 | 参数说明 | 请求类型 | 是否必须 | 数据类型 | schema |
---|---|---|---|---|---|
userId | 数字人平台用户id | body | true | string | |
thirdId | 第三方用户ID | body | true | string | |
wxNickname | 微信昵称 | ||||
userName | 用户账号 | ||||
wxHeadimgurl | 微信用户头像 | ||||
phone | 手机号 | ||||
tuBitBalance | 剩余兔币 | ||||
tuBitBalanceTotal | 总兔币 | ||||
customizeDigitalManDuration | 定制数字人剩余时长:单位分钟 | ||||
fusionDigitalManDuration | 融合数字人剩余时长:单位分钟 | ||||
soundReproduction | 声音复刻权限 |
响应状态
状态码 | 说明 | schema |
---|---|---|
0 | OK |
响应示例
{
"code": "0",
"showMsg": null,
"errorMsg": null,
"requestId": "17124804196127752",
"data": {
"serialNumber": 1,
"userId": "237525420687594496",
"thirdId": "102503242914000000840100",
"wxNickname": null,
"userName": "a51P4v5f",
"password": "80840160",
"wxHeadimgurl": null,
"phone": null,
"bindTime": "2024-04-07 10:41:13",
"tuBitBalance": 179,
"tuBitBalanceTotal": 200,
"customizeDigitalManDuration": "0",
"fusionDigitalManDuration": "0",
"soundReproduction": 0
}
}