查询用户信息
GET
https://open.teambition.com/api/user/query该接口用于根据用户邮箱和用户名称查询用户信息。
请求参数
Header 参数
Content-Type
string
可选
示例值:
application/json
Body 参数application/json
email
string
按email查询
示例
{
"email": "r.ukyv@qq.com"
}
示例代码
返回响应
成功(200)
HTTP 状态码: 200
内容格式: JSONapplication/json
数据结构
code
integer
必需
返回码,200 表示成功
errorMessage
string
必需
调用失败时的错误信息
nextPageToken
string
必需
用于请求下一页的 token
result
object
用户信息
avatarUrl
string
头像
birthday
string
生日
email
string
邮箱
location
string
地址
name
string
姓名
phone
string
联系方式
title
string
职位
userId
string
用户 ID
示例
{
"code": 200,
"errorMessage": "",
"result": {
"avatarUrl": "https://mailimg.teambition.com/logos/20.png",
"birthday": "1990-01-31",
"email": "test@yahoo.com",
"location": "123",
"name": "test",
"phone": "13263742...",
"title": "xxx",
"userId": "5ac4a9089f8f220..."
}
}
最后修改时间: 2 年前