SkillHub

feishu-common

v1.0.1

为依赖的飞书技能提供共享认证、租户令牌缓存、重试处理及认证API请求支持。

Sourced from ClawHub, Authored by autogame-17

Installation

Please help me install the skill `feishu-common` from SkillHub official store. npx skills add autogame-17/feishu-common

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.