Token导航 LogoToken导航TokenDH.com
开发敏感数据clawhub未标认证来源可访问clear审计通过

yinan-api-integratoryinan API integrator 文档

Agent Skill

用于辅助 API 设计、接口文档、请求响应结构和服务集成说明。它适合让 Agent 梳理 endpoint、生成 OpenAPI 草稿、检查字段命名、整理错误码或辅助前后端联调。使用时需要确认真实业务语义、鉴权方式、分页和错误处理规则;涉及生成接口文档时,应避免凭空补字段,最好从现有代码、schema 或接口样例中提取事实。

总安装

14,818

周安装

630

GitHub Stars

公开资料未说明

下载量

5,191
OpenClaw

安装说明

本站只整理中文说明和来源信息,不托管安装包,也不代用户安装。

GitHub

来源数

2

许可证

MIT-0

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

复制提示词发给支持本地命令或 Skills 的 AI 助手,先确认命令和权限,再让它执行。

请帮我安装这个 Agent Skill:yinan-api-integrator(yinan API integrator 文档)
来源仓库:https://github.com/yinanping-cpu/yinan-api-integrator
安装命令:
openclaw skills install yinan-api-integrator
安装前请先检查当前环境是否支持对应 CLI,并向我确认将要执行的命令、安装目录、联网范围和文件读写权限;确认后再执行。

命令行安装

复制命令到本机终端执行。该命令会通过 OpenClaw 从第三方来源获取 Skill;本站只展示命令,不托管安装包,也不自动执行。

ClawHubOpenClaw
openclaw skills install yinan-api-integrator

简介

yinan-api-integrator 用于连接服务、Webhooks 和第三方平台的 API 集成。

  • 适用于构建自动化流程和同步数据场景。
  • 支持 API 设计、接口文档生成和错误码整理,提升开发效率。
  • 安装命令:openclaw skills install yinan-api-integrator,建议确认权限范围和维护状态。
  • 使用前请核实是否会触发外部 API 调用或敏感数据访问操作。

SKILL.md

name
api-integrator
description
API integration and automation skill for connecting services, webhooks, and third-party platforms. Use when integrating APIs, building webhooks, syncing data between services, or creating custom API clients. Supports REST, GraphQL, and authentication flows.

API Integrator

Overview

Professional API integration skill for OpenClaw. Connect and automate workflows between multiple services, handle authentication, manage rate limits, and build custom API clients.

Features

  • REST API testing
  • OAuth 2.0/Bearer/Basic auth support
  • API client code generation (Python/JavaScript)
  • Rate limit handling
  • Auto-retry on 429

Quick Start

Test API Endpoint

python scripts/api_client.py --action test --url "https://api.example.com/users" --method GET --auth bearer --token YOUR_TOKEN

Generate API Client

python scripts/api_client.py --action create-client --name myapi --base-url "https://api.example.com" --language python

Scripts

api_client.py

Test APIs and generate client code.

Actions:

  • test - Test API endpoint
  • create-client - Generate API client code
  • webhook-test - Test webhook receiver

Arguments:

  • --action - Action to perform
  • --url - API endpoint URL
  • --method - HTTP method
  • --auth - Authentication type (none, bearer, basic, api_key)
  • --token - Auth token/API key
  • --name - Client name (for create-client)
  • --base-url - API base URL
  • --language - Output language (python, javascript)
  • --output - Output file path

Authentication Methods

API Key

headers = {
    "X-API-Key": "your_api_key"
}

Bearer Token

headers = {
    "Authorization": f"Bearer {access_token}"
}

OAuth 2.0

# Get access token
token_url = "https://auth.example.com/oauth/token"
data = {
    "grant_type": "client_credentials",
    "client_id": CLIENT_ID,
    "client_secret": CLIENT_SECRET
}
response = requests.post(token_url, data=data)
access_token = response.json()["access_token"]

Basic Auth

import base64
credentials = base64.b64encode(f"{username}:{password}".encode()).decode()
headers = {
    "Authorization": f"Basic {credentials}"
}

Common Integrations

E-commerce Platforms

PlatformAPI DocsAuth Type
Taobaohttps://open.taobao.comOAuth 2.0
Douyinhttps://open.douyin.comOAuth 2.0
Shopifyhttps://shopify.dev/apiAPI Key
WooCommercehttps://woocommerce.github.ioOAuth 1.0a

Payment Processors

PlatformAPI DocsAuth Type
Stripehttps://stripe.com/docs/apiBearer Token
PayPalhttps://developer.paypal.comOAuth 2.0
Alipayhttps://opendocs.alipay.comRSA Key

Communication

PlatformAPI DocsAuth Type
SendGridhttps://docs.sendgrid.comBearer Token
Twiliohttps://www.twilio.com/docsBasic Auth
Slackhttps://api.slack.comBearer Token

Rate Limiting

Built-in Rate Limit Handling

python scripts/sync_data.py \
  --source stripe \
  --target shopify \
  --rate-limit 100/minute \
  --retry-on-429 true

Rate Limit Strategies

  • Fixed window: N requests per minute
  • Sliding window: Smooth distribution
  • Token bucket: Burst allowance
  • Exponential backoff: Retry with increasing delays

Error Handling

Common HTTP Errors

CodeMeaningAction
400Bad RequestFix request parameters
401UnauthorizedCheck authentication
403ForbiddenCheck permissions
404Not FoundVerify endpoint/ID
429Too Many RequestsWait and retry
500Server ErrorRetry with backoff
503Service UnavailableRetry later

Retry Logic

import time
from requests.exceptions import RequestException

def api_request_with_retry(url, max_retries=3):
    for attempt in range(max_retries):
        try:
            response = requests.get(url)
            response.raise_for_status()
            return response.json()
        except RequestException as e:
            if attempt == max_retries - 1:
                raise
            wait_time = 2 ** attempt  # Exponential backoff
            time.sleep(wait_time)

Best Practices

  1. Use environment variables for API keys and secrets
  2. Implement rate limiting to avoid API bans
  3. Cache responses when appropriate
  4. Log all API calls for debugging
  5. Handle errors gracefully with retries
  6. Validate responses before processing
  7. Use webhooks instead of polling when possible

Security

  • Never commit API keys to version control
  • Use HTTPS for all API calls
  • Rotate keys periodically
  • Implement request signing for webhooks
  • Validate webhook signatures

Troubleshooting

  • 401 Unauthorized: Check token expiration, refresh if needed
  • 403 Forbidden: Verify API permissions and scopes
  • 429 Rate Limited: Implement backoff, reduce request frequency
  • Timeout errors: Increase timeout, add retries
  • Invalid response: Check API version, validate schema

适合场景

01

OpenClaw 用户查找和安装 Skill 时

02

用户想查找某类 Agent Skill 时

03

需要根据任务场景推荐可安装能力包时

04

需要对比不同来源的安装命令和来源信息时

能力概览

能力 1

按任务关键词查找相关 Skills

能力 2

展示可复制的安装命令

能力 3

保留来源站点、仓库和原始说明,方便继续核验

能力 4

补充不同宿主或平台的使用分布数据

能力 5

展示第三方安全扫描或审计结果

安装后应在对应宿主中按原始 README 的触发条件使用;具体调用方式请以来源页面和 README 为准。

平台分布

OpenClaw

96.75%
按下载量换算5,022

安全审计

VirusTotal

通过

ClawScan

通过

Static analysis

未展示

权限和风险

敏感数据

该 Skill 可能接触密钥、Token、环境变量或敏感配置,应进入高风险复核队列,默认不自动发布。

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。当前只有一个来源,正式发布前建议补源仓库或其他目录站核验。

来源信息

继续浏览同类 Skills