Skip to content
关注公众号,获取新课通知

获取用户详情

接口URL

https://sqapi2.dishawang.com/api/v1/user_info/:id

请求方式

GET

Content-Type

form-data

请求Header参数

参数名示例值参数类型是否必填参数描述
token36040cbcde65e482739afca7a5465ab750c1c5d5String用户token

路径变量

参数名示例值参数描述
id1349用户ID

成功响应示例

json
{
  "code": 1,
  "msg": "ok",
  "data": {
    "name": "lucky",
    "id": 1349,
    "avatar": "https://ceshi2.dishait.cn/uploads/20230919/5f3438d61e87402ae5eefc60b4c95afb.png",
    "status": 1,
    "age": 0,
    "sex": 2,
    "qg": 0,
    "job": null,
    "path": null,
    "birthday": null,
    "desc": null,
    "fans_count": 0,
    "follows_count": 0,
    "articles_count": 0,
    "comments_count": 0,
    "isfollow": true,
    "isblacked": false
  }
}

错误响应示例

json
{
  "code": 0,
  "msg": "没有找到数据"
}