返回顶部
r

rapidapi-universal-skill

Template-driven RapidAPI client with auto-registered actions and a universal call entrypoint

作者: admin | 来源: ClawHub
源自
ClawHub
版本
V 0.1.0
安全检测
已通过
286
下载量
0
收藏
概述
安装方式
版本历史

rapidapi-universal-skill

Use `{baseDir}/index.js` to call RapidAPI with templates from `{baseDir}/templates`. Prefer this skill when the task involves RapidAPI endpoints or template-defined actions. ## What This Skill Actually Does This skill is a minimal RapidAPI client that turns RapidAPI endpoint definitions into callable actions. It is meant for: - converting a RapidAPI endpoint into a stable action name - standardizing inputs into query/body/header/path params - returning a consistent `ok/status/data/error/meta` shape It is not a server. It is a small local client you can call from scripts or other skills. ## Key Capabilities - Auto-registers templates from `{baseDir}/templates/*.json` - `listActions()` enumerates all registered actions with schemas - `callAction(name, params)` calls a template-defined endpoint - `callRapidApi(payload)` allows direct RapidAPI calls without a template - `scripts/import-endpoint.js` converts a RapidAPI endpoint JSON payload into a template file ## Basic Usage Use config-driven init (recommended): ```js import { createRapidApiSkill } from "{baseDir}/index.js"; import config from "{baseDir}/config.json" assert { type: "json" }; const skill = await createRapidApiSkill({ config }); const res = await skill.callAction("get_user_tweets", { user: "2455740283", count: 20 }); ``` Or direct call (no template): ```js const skill = await createRapidApiSkill({ config }); const res = await skill.callRapidApi({ host: "twitter241.p.rapidapi.com", path: "/user-tweets", method: "GET", query: { user: "2455740283", count: 20 } }); ``` ## Template Design Notes Templates are plain JSON. They should contain: - `name`, `host`, `path`, `method` - `querySchema` (and optionally `bodySchema`, `headerSchema`, `pathParams`) Example snippet: ```json { "name": "get_user_tweets", "host": "twitter241.p.rapidapi.com", "path": "/user-tweets", "method": "GET", "querySchema": { "user": {"type": "string", "required": true}, "count": {"type": "number", "required": true}, "cursor": {"type": "string"} } } ``` ## Where It Fits Use this skill when you need a consistent, reusable RapidAPI interface without building a backend. It is especially useful for: - social data APIs (X/Twitter, TikTok, LinkedIn) - search/aggregation APIs - repeated RapidAPI calls across multiple tasks or workflows

标签

skill ai

通过对话安装

该技能支持在以下平台通过对话安装:

OpenClaw WorkBuddy QClaw Kimi Claude

方式一:安装 SkillHub 和技能

帮我安装 SkillHub 和 rapidapi-1776197541 技能

方式二:设置 SkillHub 为优先技能安装源

设置 SkillHub 为我的优先技能安装源,然后帮我安装 rapidapi-1776197541 技能

通过命令行安装

skillhub install rapidapi-1776197541

下载 Zip 包

⬇ 下载 rapidapi-universal-skill v0.1.0

文件大小: 12.53 KB | 发布时间: 2026-4-15 10:53

v0.1.0 最新 2026-4-15 10:53
- Initial release of rapidapi-universal-skill: a minimal, template-driven RapidAPI client.
- Auto-registers all RapidAPI action templates from the templates directory.
- Provides consistent actions: listActions(), callAction(name, params), and callRapidApi(payload).
- Includes helper script (import-endpoint.js) to convert RapidAPI endpoints to templates.
- Designed for stable, repeatable calls to RapidAPI endpoints in local scripts or workflows.

Archiver·手机版·闲社网·闲社论坛·羊毛社区· 多链控股集团有限公司 · 苏ICP备2025199260号-1

Powered by Discuz! X5.0   © 2024-2025 闲社网·线报更新论坛·羊毛分享社区·http://xianshe.com

p2p_official_large
返回顶部