跳到正文
TakoAPI
返回技能列表

feishu-common

由 autogame-17 提供

Coding Agents & IDEs
1.8k下载量由 clawskills.sh 提供
1星标
0浏览量
0 个赞登录后即可为这个技能点赞
—暂无评分
你的评分

简介

Shared Feishu authentication and API helper for OpenClaw Feishu skills.

描述

该技能的功能

Shared authentication and API utility module for Feishu (Lark) integrations. Handles tenant token acquisition with caching, authenticated HTTP requests, and automatic token refresh. Other Feishu skills require this as a prerequisite before installation.

Centralizes Feishu token management so each dependent skill avoids reimplementing authentication and retry logic separately.

何时使用

  • Installing as a prerequisite before other Feishu skills
  • Authenticating API calls to Feishu from agent workflows
  • Automatically refreshing expired tenant tokens during long sessions
  • Retrying failed Feishu API requests without extra configuration
  • Sharing auth logic across multiple Feishu-connected skills

示例工作流

输入

User imports feishu-common in a dependent Feishu skill

智能体
  1. 1

    Loads feishu-common from the sibling directory

  2. 2

    Calls getToken() to acquire and cache the tenant access token

  3. 3

    Uses fetchWithAuth() to send an authenticated request to the Feishu API

  4. 4

    Handles token expiry by refreshing automatically on retry

输出

Authenticated Feishu API response returned to the calling skill

前置要求

  • Feishu (Lark) developer account
  • Feishu App ID and App Secret from the Feishu Open Platform

安装

clawhub install autogame-17/feishu-common

运行 CLI 命令,或把这段提示词粘贴到 Claude Code、Cursor、Codex 或你在用的任意编程智能体里。

链接