获取部门家长详情
GET
/cgi-bin/school/user/list_parent
服务端API企业内部开发
第三方应用需拥有「家校沟通」使用权限。
原文档地址:
https://open.work.weixin.qq.com/api/doc/90000/90135/92446
请求示例请求示例
Shell
JavaScript
Java
Swift
curl --location -g --request GET 'https://qyapi.weixin.qq.com/cgi-bin/school/user/list_parent?access_token={{access_token}}&department_id={{department_id}}'
响应示例响应示例
{
"errcode": 0,
"errmsg": "ok",
"parents": [
{
"parent_userid": "zhangsan_parent",
"mobile": "18900000000",
"is_subscribe": 1,
"external_userid": "xxx",
"children": [
{
"student_userid": "zhangsan",
"relation": "爸爸",
"name": "张三"
}
]
},
{
"parent_userid": "lisi_parent",
"mobile": "18900000001",
"is_subscribe": 0,
"children": [
{
"student_userid": "lisi",
"relation": "妈妈",
"name": "李四"
}
]
}
]
}
请求参数
Query 参数
access_token
调用接口凭证
示例值:
{{access_token}}
department_id
获取的部门id
示例值:
{{department_id}}
返回响应
修改于 2022-12-02 03:00:30