π¦ ClawHub
feishu-doc-editor
by @zhuligu
Feishu document creation and editing operations using OpenAPI. Activate when user needs to create, edit, or read Feishu documents programmatically.
βοΈ Configuration
1. App Creation and Configuration
Create enterprise self-built app: Login to Feishu Open Platform, create an app and add "Bot" capability.
Apply for API permissions: In "Permission Management", apply for the following permissions:
docx:document:write_onlydocx:document:readonlyPublish app: Submit version and publish, ensuring the app coverage includes target users/departments.
2. Get Access Token
Call the self-built app get tenant_access_token interface:
curl -X POST https://open.feishu.cn/open-apis/auth/v3/tenant_access_token/internal \
-H "Content-Type: application/json" \
-d '{"app_id": "your_app_id", "app_secret": "your_app_secret"}'
Response example:
{
"code": 0,
"tenant_access_token": "t-xxx",
"expire": 7200
}
TERMINAL
clawhub install feishu-doc-editor