用于批量获取指定页面中的 Block 信息。
请求方式:POST(HTTPS)
请求地址:https://qyapi.weixin.qq.com/cgi-bin/wedoc/smartdoc/get_block_list?access_token=ACCESS_TOKEN
请求包体
{
"docid": "DOC_ID",
"page_id": "PAGE_ID",
"ids": ["BLOCK_ID_1", "BLOCK_ID_2"],
"start": 0,
"limit": 200
}
参数说明
| 参数 | 类型 | 是否必须 | 说明 |
|---|---|---|---|
| docid | string | 是 | 智能文档的文档 id |
| page_id | string | 是 | 页面的 id |
| ids | string[] | 否 | 需要获取的 Block ID 列表 |
| start | int32 | 否 | 分批起始点,最小为0 |
| limit | int32 | 否 | 分批大小,最大为200,默认为200 |
权限说明
返回示例
{
"errcode": 0,
"errmsg": "ok",
"blocks": [
{
"id": "BLOCK_ID",
"type": "BLOCK_TYPE_TEXT",
"content": "Hello World",
"parent_id": "PARENT_BLOCK_ID",
"children": ["CHILD_BLOCK_ID_1"],
"props": {}
}
],
"has_more": "true",
"next_start": 201
}
参数说明
| 参数 | 类型 | 说明 |
|---|---|---|
| errcode | int32 | 错误码 |
| errmsg | string | 错误码说明 |
| blocks | object[](BlockInfo) | 返回的 Block 列表 |
| has_more | string | true表示还有更多,false表示没有 |
| next_start | int32 | 下一批的起始点 |
