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

按邮箱获取用户

根据邮箱精确查找用户公开资料。

GET/api/members/email

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

查询参数

参数类型必填说明
emailstring是要查询的用户邮箱,发送前应进行 URL 编码
bash
curl 'https://resource-api.xyeidc.com/api/members/email?email=developer%40example.com' \
  -H 'Api-Key: YOUR_API_KEY' \
  -H 'Api-Secret: YOUR_API_SECRET'

响应示例

json
{
  "code": 200,
  "msg": "Success!",
  "data": {
    "id": 10001,
    "username": "ExampleUser",
    "email": "d***r@example.com",
    "isDeveloper": true,
    "emailVerified": true
  }
}

响应仍遵循用户公开视图和脱敏规则,不应把该接口用于收集用户隐私信息。