批量查询用户信息
POST
https://open.teambition.com/api/user/batchQuery
请求示例请求示例
Shell
JavaScript
Java
Swift
curl --location --request POST 'https://open.teambition.com/api/user/batchQuery' \
--header 'Authorization: Bearer <appAccessToken>' \
--header 'X-Tenant-Id: 50c32af35a87e6b2...' \
--header 'X-Tenant-Type: organization' \
--header 'Content-Type: application/json' \
--data-raw '{
"ids": [
"4",
"66",
"8",
"78",
"37"
],
"openIds": [
"15",
"11",
"53"
],
"pageToken": "elit culpa nostrud veniam",
"pageSize": "ad consectetur sed Ut labore"
}'
响应示例响应示例
{
"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..."
}
]
}
请求参数
Header 参数
Content-Type
string
可选
示例值:
application/json
Authorization
string
可选
默认值:
{{Authorization}}
X-Tenant-Id
string
企业 ID
默认值:
{{X-Tenant-Id}}
X-Tenant-Type
string
可选
默认值:
organization
Body 参数application/json
返回响应
修改于 2023-01-06 07:09:10