WeChat.Work.Contacts.Department.list
You're seeing just the function
list
, go back to WeChat.Work.Contacts.Department module for more information.
Link to this function
list(client)
Specs
list(WeChat.Work.client()) :: WeChat.response()
获取部门列表 - 官方文档
获取指定部门及其下的子部门(以及及子部门的子部门等等,递归)。
如果不填 department_id
,默认获取全量组织架构
Link to this function
list(client, department_id)
Specs
list(WeChat.Work.client(), department_id()) :: WeChat.response()