Appearance
授权:客户端,查询用户信息
1 接口名称
客户端
2 接口描述
- 无
3 请求地址
Plain
{apiAddress}/auth/client/authorize4 请求方式
POST
5 请求参数
5.1 Header 参数
| 参数名 | 必选 | 类型/参数值 | 说明 |
|---|---|---|---|
| Content-Type | 是 | application/json | 请求参数类型 |
5.2 Body 参数
json
{
"channelId":40, // 渠道ID,此处必须为客户端的渠道
"accountId":"63ede01b37fa3d6566e61f13", // accountID,前端提供
"sessionId":"123", // sessionId,前端提供
"spaceId":1 // 空间ID
}6 返回示例
JSON
{
"message": "success",
"code": 0,
"success": true,
"data": {
"id": 1, // 用户ID
"spaceId": 1, // 空间ID
"accountOpenId": "63ede01b37fa3d6566e61f13", // accountID或者openID
"channelType": 1, // 渠道类型,1客户端,2微信
"channelId": 40, // 渠道ID
"nickName": "读友_渔夫", // 昵称
"phone": "16754904303", // 手机号
"avatar": "https://preimg.tmuyun.com/assets/20200103/1578037591781_5e0ef15783c766268ac7c66c.png" // 头像
}
}