Bỏ qua tới nội dung
TakoAPI
Quay lại kỹ năng

twitter-x-api

bởi klemenska

Search & Research
669Lượt tải do clawskills.sh công bố
0Lượt xem
0 lượt thíchĐăng nhập để thích kỹ năng này
—Chưa có đánh giá
Đánh giá của bạn

Tóm tắt

X/Twitter messaging management via API.

Mô tả

Kỹ năng này làm gì

Connects an agent to X (Twitter) via API v2. Supports reading timelines, posting tweets, replying, sending DMs, searching, and retrieving tweet analytics. Credentials can be stored as environment variables or in a local config file.

Covers the full read-write Twitter API surface in one script, including DMs and media uploads, without requiring a separate app or dashboard.

Khi nào nên dùng

  • Post a tweet or thread from the command line
  • Monitor mentions and reply to relevant conversations
  • Send a DM to a specific user automatically
  • Search for tweets by keyword or hashtag
  • Check engagement analytics on a specific tweet

Quy trình ví dụ

ĐẦU VÀO

User asks: post a thread about our product launch with three tweets

AGENT
  1. 1

    Load Twitter credentials from environment variables

  2. 2

    Prepare three tweet texts within the 280-character limit

  3. 3

    Call tweet.py thread with all three texts as arguments

  4. 4

    Confirm each tweet ID returned by the API

ĐẦU RA

A three-tweet thread posted to the user's account, with tweet IDs for each part

Yêu cầu

  • TWITTER_API_KEY environment variable
  • TWITTER_API_SECRET environment variable
  • TWITTER_ACCESS_TOKEN environment variable
  • TWITTER_ACCESS_SECRET environment variable
  • TWITTER_BEARER_TOKEN environment variable (for read-only operations)
  • Twitter Developer account with an approved app
  • Twitter API Basic tier or higher for read and search access

Cài đặt

clawhub install klemenska/twitter-x-api

Chạy lệnh CLI, hoặc dán prompt vào Claude Code, Cursor, Codex hay coding agent bạn đang dùng.

Liên kết