SKILL

x-api

X/Twitter API integration for posting tweets and threads, reading timelines, searching, and analytics. Covers OAuth authentication patterns, rate limits, and platform-native content publishing. Use when the user wants to interact with X programmatically.

Machine translation
Read the original Chinese text

X/Twitter API集成,用于发布推文、线程、读取时间线、搜索和分析。涵盖OAuth认证模式、速率限制和平台原生内容发布。当用户希望以编程方式与X交互时使用。

Target: Software development & testing. Automatically collected · unverified.

Excerpt from the author’s documentation

Extracted from a fixed version of SKILL.md in its original language. This is the author’s documentation; installation, compatibility and runtime results have not been verified by this site.

Read the original Chinese text

Topics in the source

  • X API
  • 何时激活
  • 认证
  • OAuth 2.0 Bearer 令牌(仅应用)
  • OAuth 1.0a(用户上下文)
  • 核心操作
  • 发布一条推文
  • 发布一个帖子串

以编程方式与 X(Twitter)交互,用于发布、读取、搜索和分析。 用户希望以编程方式发布推文或帖子串 从 X 读取时间线、提及或用户数据 在 X 上搜索内容、趋势或对话 构建 X 集成或机器人 分析和参与度跟踪 用户提及"发布到 X"、"发推"、"X API"或"Twitter API" 最佳适用场景:读取密集型操作、搜索、公开数据。 必需用于:发布推文、管理账户、私信。 X API 的速率限制因端点、认证方法和账户等级而异,并且会随时间变化。请始终: 在硬编码假设之前,查看当前的 X 开发者文档 在运行时读取 x-rate-limit-remaining 和 x-rate-limit-reset 头部信息 自动退避,而不是依赖代码中的静态表格 切勿硬编码令牌。 使用环境变量或 .env 文件。 切勿提交 .env 文件。 将其添加到 .gitignore。 如果令牌暴露,请轮换令牌。 在 developer.x.com 重新生成。 当不需要写权限时,使用只读令牌。 安全存储 OAuth 密钥 — 不要存储在源代码或日志中。 使用 content-engine 技能生成平台原生内容,然后通过 X API 发布: 1. 使用内容引擎生成内容(X 平台格式) 2. 验证长度(单条推文 280 字符) 3. 使用上述模式通过 X API 发布 4. 通过 public\metrics 跟踪参与度 content-engine — 为 X 生成平台原生内容 crosspost — 在 X、LinkedIn 和其他平台分发内容

Source repository
affaan-m/ECC
Source file
docs/zh-CN/skills/x-api/SKILL.md
Fixed revision
d2ef2680594f9a17526a6e1a2e18b3d242c5d17b
Read the complete original documentation ↗

Requirements

  • Only the author’s Skill metadata is included. Read the full instructions to check dependencies, licensing and conditions of use.

A small first task

先阅读原作者说明,再决定是否在自己的 AI 工具中使用。

Instructions for your AI tool

Author documentation is not live verification by this site. Without evidence, we do not mark a resource as compatible, safe or free.

Sources and evidence

This record was collected automatically. Its documentation, suitability and runtime behavior have not been manually verified.

Author: affaan-m/ECC · original repository metadata. Documentation review: Not reviewed. Last source check: 2026-11-09T15:01:42.712Z.

Categories are inferred from names, descriptions and paths. They do not establish compatibility.

License and attribution

MIT. Third-party content and copyright remain with their authors. Refer to the original license and terms.

Original license ↗

Synchronization, copying and user-reported success do not mark a resource as runtime-tested.

Limitations and notes

  • Collecting metadata does not mean this site has installed, adapted, runtime-tested or security-reviewed the resource.