返回顶部
c

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
安全检测
已通过
360
下载量
0
收藏
概述
安装方式
版本历史

composio-composer-xskill

# Composio Composer X Skill This skill enables posting tweets to Twitter/X through Composio's integration platform. It uses HTTP requests with BeautifulSoup to interact with Composio's web interface, providing a `post_tweet` function that can be called from OpenClaw. ## Installation 1. Install dependencies: ```bash pip install requests beautifulsoup4 python-dotenv ``` 2. Configure credentials in `.env` file or environment 3. Import and use the skill in your OpenClaw workflow ## Tool Definitions ### post_tweet Posts a tweet to Twitter/X using Composio. **Function Signature:** ```python def post_tweet(content: str, composio_auth_token: str) -> dict: ``` **Parameters:** - `content` (str): The tweet content (max 280 characters) - `composio_auth_token` (str): The Composio authentication token for authorization **Returns:** - `dict`: Contains: - `success` (bool): Whether the tweet was posted successfully - `tweet_id` (str): The posted tweet's ID (on success) - `tweet_url` (str): URL to view the tweet (on success) - `error` (str): Error message (on failure) **Example:** ```python result = post_tweet( content="Hello from OpenClaw! 🐾", composio_auth_token="your_composio_auth_token_here" ) print(f"Tweet posted: {result.get('tweet_url')}") ``` ### get_tweet Retrieves a tweet by ID. **Function Signature:** ```python def get_tweet(tweet_id: str, composio_auth_token: str) -> dict: ``` **Parameters:** - `tweet_id` (str): The tweet ID to retrieve - `composio_auth_token` (str): The Composio authentication token **Returns:** - `dict`: Contains tweet data or error information ### delete_tweet Deletes a tweet. **Function Signature:** ```python def delete_tweet(tweet_id: str, composio_auth_token: str) -> dict: ``` **Parameters:** - `tweet_id` (str): The tweet ID to delete - `composio_auth_token` (str): The Composio authentication token **Returns:** - `dict`: Contains `success` (bool) and status message ## Configuration The skill requires the following environment variables: - `COMPOSIO_CLIENT_ID`: Your Composio client ID - `COMPOSIO_API_KEY`: Your Composio API key - `COMPOSIO_SESSION_TOKEN`: Your Composio session token - `COMPOSIO_BEARER_TOKEN`: Your Composio bearer token - `COMPOSIO_USER_ID`: Your Composio user ID ## Notes - This implementation uses HTTP requests to emulate Composio interaction - Direct API access through OpenClaw is currently unavailable - Rate limits apply per Twitter/X and Composio policies - Session tokens expire after 7200 seconds (2 hours)

标签

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

下载 Zip 包

⬇ 下载 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.

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

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

p2p_official_large
返回顶部