批量查询用户信息
POST
https://open.teambition.com/api/user/batchQuery该接口用于根据条件批量查询用户信息。
请求参数
Header 参数
Content-Type
string
可选
示例值:
application/json
Body 参数application/json
ids
array[string]
用户 ID 数组
openIds
array[string]
必需
pageSize
string
可选
单页获取任务数量(1-5000], 默认50
pageToken
string
可选
用于获取下一页数据的分页token
示例
{
"ids": [
"4",
"66",
"8",
"78",
"37"
],
"openIds": [
"15",
"11",
"53"
],
"pageToken": "elit culpa nostrud veniam",
"pageSize": "ad consectetur sed Ut labore"
}
示例代码
返回响应
成功(200)
HTTP 状态码: 200
内容格式: JSONapplication/json
数据结构
code
integer
必需
返回码,200 表示成功
errorMessage
string
必需
调用失败时的错误信息
nextPageToken
string
必需
用于请求下一页的 token
result
array [object {8}]
用户信息
avatarUrl
string
头像
birthday
null | string
生日
email
string
邮箱
location
string
地址
name
string
姓名
phone
string
联系方式
title
string
职位
userId
string
用户 ID
示例
{
"code": 200,
"errorMessage": "",
"nextPageToken": "",
"result": [
{
"avatarUrl": "https://static.xxx.com/media/lgQ9q26_226.jpg",
"birthday": null,
"email": "yuxia@xxx.com",
"location": "",
"name": "张三",
"phone": "1810624...",
"title": "",
"userId": "5b39c52..."
},
{
"avatarUrl": "https://tcs.xxx.net/thumbnail/fc2d1db6/w/200/h/200",
"birthday": "1990-10-14",
"email": "qimin@xx.com",
"location": "",
"name": "王五",
"phone": "182...",
"title": "后端工程师",
"userId": "5b512f..."
}
]
}
最后修改时间: 2 年前