ThinkChat2.0新版上线,更智能更精彩,支持会话、画图、阅读、搜索等,送10W Token,即刻开启你的AI之旅 广告
>[info] 获取子部门ID列表 调用本接口获取企业部门下的所有直属子部门列表。 **官方文档地址:** [链接](https://open.dingtalk.com/document/orgapp-server/obtain-a-sub-department-id-list-v2) * 代码: ~~~ $dept_id = 1; $res = Department::listsubid($dept_id); echo($res); ~~~ * 返回: ``` { "errcode": 0, "errmsg": "ok", "result": { "dept_id_list": [ 709636861, 808179795, 721279636, 808357313 ] }, "request_id": "16m0r1c23ea9y" } ```