返回 Skill 列表
extension
分类: 安全与合规需要 API Key

Feishu Common

提供共享飞书认证、租户令牌缓存、重试处理和针对依赖飞书技能的身份验证 API 请求支持。

person作者: autogame-17hubclawhub

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:

const { getToken, fetchWithRetry, fetchWithAuth } = require("../feishu-common/index.js");

Compatibility alias is also available:

const { getToken, fetchWithAuth } = require("../feishu-common/feishu-client.js");

Files

  • index.js: Main implementation.
  • feishu-client.js: Compatibility alias to index.js.