获取服务号订阅用户
接口地址
域名:https://open.mindoffice.cn
uri : /open-platform/api/user/list
请求地址
https://open.mindoffice.cn/open-platform/api/user/list请求方式
GET
请求Header
app-id 系统分配
app-secret 系统分配
x-request-id 请求id
返回参数
| 字段 | 类型 | 必须 | 描述 | 默认 | 示例值 |
|---|---|---|---|---|---|
| code | string | 是 | 状态码 | 200 | 200:成功 非200:失败 |
| msg | string | 是 | 提示 | ||
| data | object | 是 |
data参数
| 字段 | 类型 | 必须 | 描述 | 默认 | 示例值 | |
|---|---|---|---|---|---|---|
| users | array | 是 | 无 | [] | ||
| nick_name | string | 是 | 用户名 | 无 | 如易 | |
| union_id | string | 是 | union_id | 无 | xxx | |
| open_id | string | 是 | 订阅用户的open_id | 无 | zzzzzff | |
{
"code": 200,
"msg": "OK",
"data": {
"users": [
{
"union_id": "on_620d169927f8e9c3a4a61b94bc5c05a1",
"open_id": "ou_e085ab1bdec1437fbfa05c1304e3a5fc",
"nick_name": "刚子"
}
]
}
}
Curl 格式
curl --location "https://open.mindoffice.cn/open-platform/api/user/list" \
-H "Content-Type: application/json" \
-H "APP-ID: robot_f7rsbv1o253g2j3g" \
-H "APP-Secret: lJ8f6pn5vCe8jjEQFBVPPmL6SW8QmV8d" \
-H "X-Request-ID: 1"
更新时间:2026-03-26