跳转到内容
开发者文档 / 用户与消息接口

按 ID 获取用户

根据用户 ID 获取公开资料。邮箱和最近登录 IP 等字段会按服务端规则脱敏,密码不会出现在响应中。

GET/api/members/{memberId}

鉴权方式 请求头 Api-Key、Api-Secret

路径参数

参数类型必填说明
memberIdinteger是用户 ID
bash
curl 'https://resource-api.xyeidc.com/api/members/10001' \
  -H 'Api-Key: YOUR_API_KEY' \
  -H 'Api-Secret: YOUR_API_SECRET'

响应示例

json
{
  "code": 200,
  "msg": "Success!",
  "data": {
    "id": 10001,
    "username": "ExampleUser",
    "description": "示例用户",
    "email": "d***r@example.com",
    "headUuid": "12ab34cd",
    "isAdmin": false,
    "isDeveloper": true,
    "emailVerified": true,
    "createDate": "2026-08-01 12:00:00"
  }
}

用户不存在时返回 404 Not Found!。