闲社服务运行正常AI智能体自动化平台
c

Composio发推工具

技能标识:composio-composer-xskill

Enables posting tweets to Twitter/X through Composio's integration platform via HTTP and BeautifulSoup. Use when posting tweets or integrating with Composio.

作者:admin | 来源记录:ClawHub
登记来源
ClawHub
版本
V 1.0.0
检测标记
后台标记通过
免费
免费获取
0
收藏
来源与检测标记为平台登记信息,并不代表已展示可复核的检测报告。使用前请核对版本、依赖和所需权限,建议先在隔离环境中运行。
概述
安装方式
版本历史

Composio发推工具

Composio Composer X 技能

该技能能够通过Composio的集成平台在Twitter/X上发布推文。它使用HTTP请求配合BeautifulSoup与Composio的Web界面交互,提供了一个可从OpenClaw调用的post_tweet函数。

安装

  1. 1. 安装依赖:
bash pip install requests beautifulsoup4 python-dotenv
  1. 2. 在.env文件或环境中配置凭证
  1. 3. 在OpenClaw工作流中导入并使用该技能

工具定义

post_tweet

使用Composio在Twitter/X上发布推文。

函数签名:
python
def posttweet(content: str, composioauth_token: str) -> dict:

参数:

  • - content (str):推文内容(最多280个字符)
  • composioauthtoken (str):用于授权的Composio认证令牌

返回值:

  • - dict:包含:

- success (bool):推文是否发布成功
- tweet_id (str):已发布推文的ID(成功时)
- tweet_url (str):查看推文的URL(成功时)
- error (str):错误信息(失败时)

示例:
python
result = post_tweet(
content=来自OpenClaw的问候!🐾,
composioauthtoken=你的composioauthtoken在此
)
print(f推文已发布:{result.get(tweet_url)})

get_tweet

根据ID获取推文。

函数签名:
python
def gettweet(tweetid: str, composioauthtoken: str) -> dict:

参数:

  • - tweetid (str):要获取的推文ID
  • composioauth_token (str):Composio认证令牌

返回值:

  • - dict:包含推文数据或错误信息

delete_tweet

删除推文。

函数签名:
python
def deletetweet(tweetid: str, composioauthtoken: str) -> dict:

参数:

  • - tweetid (str):要删除的推文ID
  • composioauth_token (str):Composio认证令牌

返回值:

  • - dict:包含success(布尔值)和状态信息

配置

该技能需要以下环境变量:

  • - COMPOSIOCLIENTID:你的Composio客户端ID
  • COMPOSIOAPIKEY:你的Composio API密钥
  • COMPOSIOSESSIONTOKEN:你的Composio会话令牌
  • COMPOSIOBEARERTOKEN:你的Composio承载令牌
  • COMPOSIOUSERID:你的Composio用户ID

注意事项

  • - 此实现使用HTTP请求模拟Composio交互
  • 目前无法通过OpenClaw直接访问API
  • 速率限制遵循Twitter/X和Composio的政策
  • 会话令牌在7200秒(2小时)后过期

标签

skill ai

通过对话安装

以下为平台配置的接入选项,并非逐项实测通过。能否安装取决于客户端支持、技能来源和运行环境:

OpenClaw WorkBuddy QClaw Kimi Claude

方式一:安装 SkillHub 和技能

帮我安装 SkillHub 和 composio-composer-xskill-1776294304 技能

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

设置 SkillHub 为我的优先技能安装源,然后帮我安装 composio-composer-xskill-1776294304 技能

通过命令行安装

skillhub install composio-composer-xskill-1776294304

下载

⬇ 下载 composio-composer-xskill v1.0.0(免费)

文件大小: 10.03 KB | 发布时间: 2026-4-16 17:29

v1.0.0 最新 2026-4-16 17:29
Initial release of Composio Composer X Skill.

- Enables posting, retrieving, and deleting tweets on Twitter/X via Composio's integration platform.
- Provides easy-to-use Python functions: `post_tweet`, `get_tweet`, and `delete_tweet`.
- Requires configuration of authentication tokens and credentials in environment variables.
- Uses HTTP and BeautifulSoup to interact with Composio's web interface.
- Includes clear installation and usage instructions in the documentation.
返回顶部