如需获取该分组及其子分组的所有企业详情,需先获取该分组下的所有子分组,然后再获取子分组下的企业,逐层递归获取。
curl --location --request GET 'https://qyapi.weixin.qq.com/cgi-bin/corpgroup/corp/get_chain_corpinfo_list?access_token=ACCESS_TOKEN' \
--header 'Content-Type: application/json' \
--data-raw '{
"chain_id":"Chxxxxxx",
"groupid":1,
"need_pending":false,
"cursor": "",
"limit": 0
}'
{
"errcode": 0,
"errmsg": "ok",
"has_more": false,
"next_cursor": "xxx",
"group_corps": [
{
"groupid": 2,
"corpid": "wwxxxx",
"corp_name": "美馨粮油公司",
"custom_id": "custom_id",
"invite_userid": "zhangsan",
"pending_corpid": "wwxxxx",
"is_joined": 1
}
]
}