界面已本地化;技能介绍与说明文档按所选语言由 AI 自动翻译,代码、命令、路径和专业术语保留原文,以原作者文档为准。
探索技能
数据与研究 · SKILL.md

api-connector

api-connector

【数据与研究】Connect to external APIs, process responses, and build integrations. TRIGGERS - Use when user wants to connect APIs, build integrations, or process API data.

独立 GitHub 快照 · 自动分类 · 以原作者文档为准

技能说明

GitHub

name: api-connector description: | Connect to external APIs, process responses, and build integrations. TRIGGERS - Use when user wants to connect APIs, build integrations, or process API data.

API Connector

Overview

Designs and implements API integrations including authentication, request formatting, response parsing, and error handling.

Workflow

Step 1: Define the Integration

  1. API: Which service are you connecting to?
  2. Purpose: What data do you need or what action to trigger?
  3. Direction: Read data, write data, or both?
  4. Platform: Where is this running? (n8n, Make, Zapier, custom code)
  5. Frequency: One-time, on-demand, or scheduled?

Step 2: Map the Integration

[SOURCE] → [API Call] → [PROCESS] → [DESTINATION]

Step 3: Build the Connection

For each API call, document:

## API Call: [Name]

### Endpoint
`[METHOD] [URL]`

### Authentication
- **Type**: [API key, OAuth2, Bearer token]
- **Setup**: [How to get credentials]

### Request
**Headers:**
```json
{
  "Authorization": "Bearer {{API_KEY}}",
  "Content-Type": "application/json"
}

Body (if POST/PUT):

{
  "field": "{{value}}"
}

Response

Success (200):

{
  "data": { ... }
}

Fields to extract:

FieldPathUse
[name]response.data.name[purpose]

Error Handling

StatusMeaningAction
400Bad requestCheck input format
401UnauthorizedRefresh token
429Rate limitedWait and retry
500Server errorRetry with backoff

## Output Format
Complete integration documentation with code samples for the user's platform.

## Quality Checklist
- [ ] Authentication method documented
- [ ] Request format with examples
- [ ] Response parsing specified
- [ ] Error handling for common status codes
- [ ] Rate limiting considered
- [ ] Test endpoint provided
我的收藏