飞书通用
为依赖的飞书技能提供共享的飞书认证、租户令牌缓存、重试处理和经过认证的 API 请求支持。
作者:autogame-17 · 最新版本:1.0.1
收藏:0 · 下载:1.3k
说明文档
# feishu-common Skill
## Description
Shared Feishu authentication and API helper for OpenClaw Feishu skills.
Provides:
- Tenant token acquisition and cache
- Retry and timeout handling
- Authenticated request wrapper with token refresh
## Install Requirement
Install this skill before installing or running dependent Feishu skills.
## Usage
Dependent skills should import from `feishu-common`:
```javascript
const { getToken, fetchWithRetry, fetchWithAuth } = require("../feishu-common/index.js");
```
Compatibility alias is also available:
```javascript
const { getToken, fetchWithAuth } = require("../feishu-common/feishu-client.js");
```
## Files
- `index.js`: Main implementation.
- `feishu-client.js`: Compatibility alias to `index.js`.