Skip to content

获取一个文档正文​

GET
/v2/wiki/pages/{page_id}/content
  • 用于查看文档正文。

授权

企业令牌
企业令牌获取流程
令牌 URLhttps://{rest_api_root}/v1/auth/token
作用域
  • pcp:read:wiki:page
或
用户令牌
用户令牌获取流程
授权 URLhttps://{oauth2_root}/authorize
令牌 URLhttps://{rest_api_root}/v1/auth/token
作用域
  • pcp:read:wiki:page

参数​

路径参数

page_id*

页面的 id。

类型
string
必填

查询参数

format_type

正文格式。

类型
string
有效值
"text""markdown""html""block"
默认
"text"
version_id

页面版本的 id。默认值为页面当前版本的 id。

类型
string
include_public_image_token

包含获取图片资源 token 的属性。仅支持 content,参数示例 content。仅当 format_type 为 markdown、html 或 block 时有效。

类型
string

响应​

响应示例:

application/json

文档正文的 id。

文档正文的资源地址。

正文格式。

正文内容。format_type 为 text/markdown/html 时为字符串;为 block 时为块文档数组。

正文内图片资源的公开预览 token。传参 include_public_image_token=content 且 format_type 为 markdown、html 或 block 时返回。

示例​

举报邮箱:abuse@worktile.com