← 返回
效率工具 Key 中文

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.
通过 Composio 平台使用 HTTP 与 BeautifulSoup 向 Twitter/X 发布推文,适用于发布推文或与 Composio 集成。
runeweaverstudios
效率工具 clawhub v1.0.0 1 版本 99857.1 Key: 需要
★ 0
Stars
📥 699
下载
💾 9
安装
1
版本
#latest

概述

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

```

  1. Configure credentials in .env file or environment
  1. Import and use the skill in your OpenClaw workflow

Tool Definitions

post_tweet

Posts a tweet to Twitter/X using Composio.

Function Signature:

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:

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:

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:

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)

版本历史

共 1 个版本

  • v1.0.0 当前
    2026-03-30 02:43 安全 安全

安全检测

腾讯云安全 (Keen)

安全,无风险
查看报告

腾讯云安全 (Sanbu)

安全,无风险
查看报告

🔗 相关推荐

productivity

Nano Pdf

steipete
使用nano-pdf CLI通过自然语言指令编辑PDF
★ 275 📥 114,878
productivity

Word / DOCX

ivangdavila
创建、检查和编辑 Microsoft Word 文档及 DOCX 文件,支持样式、编号、修订记录、表格、分节符及兼容性检查等功能。
★ 440 📥 147,805
productivity

Weather

steipete
获取当前天气和预报(无需API密钥)
★ 445 📥 226,339